如何找出哪些字体被引用以及哪些嵌入在PDF文档中?(How to find out which fonts are referenced and which are embedded in a PDF document)
我们对PDF文档中的字体有一点问题。 为了把手指放在我想要检查的问题上,哪些字体实际上嵌入在pdf文档中,哪些字体仅被引用。 有没有一个容易(和便宜的免费)的方法呢?
We have a little problem with fonts in PDF documents. In order to put the finger on the problem I'd like to inspect, which fonts are actually embedded in the pdf document and which are only referenced. Is there an easy (and cheap as in free) way to do that?
原文:https://stackoverflow.com/questions/614619
最满意答案
如果你想使用这个代码,你应该使用这个:
<script> $("#items a").click(function() { var id = $(this).attr("id"); $("#pages div, #pages2 div").siblings().hide("slow"); $("#pages div#" + id + "").toggle("slow"); }); </script>
我不确定我是否正确理解了代码段,因为我不知道你的其余代码:-)但是,这不是解决问题的好方法。 正如在已经提到的评论中那样,用类来处理它会好得多。 这是一个可以轻松解决问题的jsfiddle : JSFiddle
但是,您可能只会更改效果,但这只是一件小事。
If you want to go with this code you should maybe use this:
<script> $("#items a").click(function() { var id = $(this).attr("id"); $("#pages div, #pages2 div").siblings().hide("slow"); $("#pages div#" + id + "").toggle("slow"); }); </script>
I'm not sure if I understand the snippet correctly since I don't know the rest of your code :-) However, this isn't a good way to solve your issue. As in the comments already mentioned, it's a lot better to handle it with classes. Here is a jsfiddle which can easily solve your problem: JSFiddle
However you might only change the effect, but this is a minor thing.
相关问答
更多-
单击打开和关闭的功能(Click function that opens and closes)[2022-11-16]
如果你想使用这个代码,你应该使用这个: 我不确定我是否正确理解了代码段,因为我不知道你的其余代 ... -
使用函数调用调用Colorbox,但它一打开就会关闭(Calling Colorbox with function call but it closes as soon as it opens)[2021-12-19]
您需要在提交点击时使用preventDefault() 。 现在您的页面已重新加载或更改: You need preventDefault() on your submit click. Now your page is reloaded OR change: -
jquery ui工具提示修改为仅在点击时工作打开和关闭一次(jquery ui tooltips modified to work on click only opens and closes one time)[2024-02-27]
关闭工具提示后,尝试设置“.tooltip-tick”的title-attribute: $(".tooltip-tick").attr("title", ""); 打开工具提示需要标题,但不知何故,它将在关闭后删除。 这只是一个小小的解决办法;) Try to set title-attribute of ".tooltip-tick" after closing the tooltip: $(".tooltip-tick").attr("title", ""); The title is neede ... -
要在调整容器大小后更新owl,需要在其data上调用.onResize() _ handle 。 updateOwl()函数应如下所示: updateOwl = function(){ $(".owl-carousel").each(function() { $(this).data('owl.carousel').onResize(); }); }; 唯一需要注意的是完全调用此函数 。 我假设侧边栏没有跳到位置,而是平滑地动画。 对.onResize()的调用需要延迟动画的持续时间,因此 ...
-
调整大小功能的问题,打开导航然后点击关闭(Issues with resize function, navigation opens then closes on click)[2022-04-20]
我想现在发生的事情是,当你的页面小于1300px ,第一if if ($(window).width() < 1300)的onclick事件被绑定。 然后当你调整大小时, $(window).on("resize", function(){ resize函数中的第二个事件被绑定。 所以只需点击一次,这两个事件就会首先打开,然后同时关闭菜单。 你需要纠正这一点,并确保只有1个事件被绑定。 也许在使用$( "#foo" ).unbind( "click", handler );应用第二个之前unbind之一$( ... -
尝试使用dblclick , $('.dropdown-menu').click(function() { $('.dropdown-menu').children('ul').slideUp("slow");// slideUp all drop-downs $(this).children('ul').slideDown("slow");// use slideDown instead slideToggle }); $('.dropdown-menu').dblclick(functio ...
-
jQuery自定义选项卡处于活动状态,单击相同选项卡关闭并再次打(jQuery custom tab active, click same tab closes and opens again)[2022-06-12]
逻辑非常复杂,我已将tabClick代码更改为: TL; DR if (!$(x).hasClass("active")) { $(x).addClass("active"); $('#tab_description h6').removeClass("active"); $(accordionContent).slideUp(swapSpeed); $(x).addClass("active"); $(x).nextUntil('h6').slideDown(swapSpeed).pr ... -
我相信你只需要一个变量来检查你是否应该显示或隐藏该框。 检查是否有效: var settings = document.getElementById('cog'); settings.onclick = Cog; var cogShow = false; function Cog(){ cogShow = !cogShow; document.getElementById('settings').style.display = (cogShow ? "block" : "none"); ...
-
使用this仅指代您点击的元素,而不是指所有具有相同类的div: $(document).ready(function(){ $(".help_box").click(function(){ $(this).find(".help_box_answer").toggle(400); }); }); jsFiddle例子 Use this to refer to only the element you're clicking on instead of all the di ...
-
您正在研究的是使用SimpleModal中内置的选项来实现您的需求。 这部分代码: success: function() { $("#message-sent").fadeIn().modal({ closeClass: 'close-btn' }); } 应该修改为使用SimpleModal提供的内置结构来启动模式框。 dialog.overlay.fadeIn()是你正在寻找使背景淡入淡出的东西: success: function() { $("#mess ...