{"id":3385,"date":"2024-11-20T15:21:49","date_gmt":"2024-11-20T07:21:49","guid":{"rendered":"https:\/\/support.foxitsoftware.cn\/?p=3385"},"modified":"2024-11-20T15:21:50","modified_gmt":"2024-11-20T07:21:50","slug":"%e5%a6%82%e4%bd%95%e5%88%a4%e6%96%ad%e6%96%87%e6%a1%a3%e4%b8%ad%e7%9a%84%e5%ad%97%e4%bd%93%e6%98%af%e5%90%a6%e5%b7%b2%e5%b5%8c%e5%85%a5%ef%bc%9f","status":"publish","type":"post","link":"https:\/\/support.fuxinsoft.cn\/?p=3385","title":{"rendered":"\u5982\u4f55\u5224\u65ad\u6587\u6863\u4e2d\u7684\u5b57\u4f53\u662f\u5426\u5df2\u5d4c\u5165\uff1f"},"content":{"rendered":"\n<p>\u5b57\u4f53\u662f\u5426\u5d4c\u5165\uff0c\u5728\u4fdd\u6301\u6587\u6863\u8bbe\u8ba1\u6027\u3001\u8de8\u5e73\u53f0\u663e\u793a\u4e00\u81f4\u6027\u3001\u6587\u4ef6\u72ec\u7acb\u6027\u3001\u5224\u65ad\u4f7f\u7528\u5b57\u4f53\u662f\u5426\u4fb5\u6743\u5d4c\u5165\u7b49\u65b9\u9762\u8d77\u5230\u91cd\u8981\u4f5c\u7528\u3002\u5982\u4f55\u5224\u65adPDF\u4e2d\u7684\u5b57\u4f53\u662f\u5426\u5df2\u5d4c\u5165\uff1f\u53ef\u4ee5\u901a\u8fc7Font.IsEmbedded\uff08\uff09\u63a5\u53e3\u83b7\u53d6\u6587\u6863\u4e2d\u7684\u5b57\u4f53\uff0c\u5e76\u6807\u6ce8\u54ea\u4e9b\u5b57\u4f53\u6ca1\u6709\u88ab\u5d4c\u5165\u7684C#\u8bed\u8a00\u793a\u4f8b\u4ee3\u7801\u5982\u4e0b\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code has-body-font-family has-medium-font-size\"><code>  using (PDFDoc doc = new PDFDoc(@\"D:\\.pdf\"))\n  {\n      ErrorCode error_code = doc.Load(null);\n      if (ErrorCode.e_ErrSuccess != error_code)\n      {\n          Console.WriteLine(\"Fail to open the signed PDF file.\");\n          return;\n      }\n      {\n          int fontCount = doc.GetFontCount();\n          for (int i = 0; i &lt; fontCount; i++)\n          {\n              Font font = doc.GetFont(i);\n              String strBaseName = Encoding.UTF8.GetString(font.GetBaseFontName(doc));\n              Console.WriteLine(\"Font:\" + strBaseName);\n              if (font.IsEmbedded(doc) == false)\n              {\n                  Console.WriteLine(\"***unEmbedded Font:\" + strBaseName);\n              }\n          }\n      }<\/code><\/pre>\n\n\n\n<p>\u8f93\u51fa\u7ed3\u679c\uff1a<\/p>\n\n\n\n<figure class=\"wp-block-image size-full is-resized\"><img fetchpriority=\"high\" decoding=\"async\" width=\"362\" height=\"223\" src=\"https:\/\/support.fuxinsoft.cn\/wp-content\/uploads\/2024\/11\/image-53.png\" alt=\"\" class=\"wp-image-3386\" style=\"width:619px;height:auto\" srcset=\"https:\/\/support.fuxinsoft.cn\/wp-content\/uploads\/2024\/11\/image-53.png 362w, https:\/\/support.fuxinsoft.cn\/wp-content\/uploads\/2024\/11\/image-53-300x185.png 300w\" sizes=\"(max-width: 362px) 100vw, 362px\" \/><\/figure>\n\n\n\n<p>\u4e0e\u798f\u6615\u9ad8\u7ea7PDF\u7f16\u8f91\u5668\u663e\u793a\u7ed3\u679c\u4e00\u81f4\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image size-full is-resized\"><img decoding=\"async\" width=\"593\" height=\"755\" src=\"https:\/\/support.fuxinsoft.cn\/wp-content\/uploads\/2024\/11\/image-54.png\" alt=\"\" class=\"wp-image-3387\" style=\"width:620px;height:auto\" srcset=\"https:\/\/support.fuxinsoft.cn\/wp-content\/uploads\/2024\/11\/image-54.png 593w, https:\/\/support.fuxinsoft.cn\/wp-content\/uploads\/2024\/11\/image-54-236x300.png 236w\" sizes=\"(max-width: 593px) 100vw, 593px\" \/><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>\u5b57\u4f53\u662f\u5426\u5d4c\u5165\uff0c\u5728\u4fdd\u6301\u6587\u6863\u8bbe\u8ba1\u6027\u3001\u8de8\u5e73\u53f0\u663e\u793a\u4e00\u81f4\u6027\u3001\u6587\u4ef6\u72ec\u7acb\u6027\u3001\u5224\u65ad\u4f7f\u7528\u5b57\u4f53\u662f\u5426\u4fb5\u6743\u5d4c\u5165\u7b49\u65b9\u9762\u8d77\u5230\u91cd\u8981\u4f5c\u7528\u3002\u5982\u4f55 [&hellip;]<\/p>\n","protected":false},"author":31,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[77],"tags":[],"class_list":["post-3385","post","type-post","status-publish","format-standard","hentry","category-gsdk"],"pp_statuses_selecting_workflow":false,"pp_workflow_action":"current","pp_status_selection":"publish","_links":{"self":[{"href":"https:\/\/support.fuxinsoft.cn\/index.php?rest_route=\/wp\/v2\/posts\/3385","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/support.fuxinsoft.cn\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/support.fuxinsoft.cn\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/support.fuxinsoft.cn\/index.php?rest_route=\/wp\/v2\/users\/31"}],"replies":[{"embeddable":true,"href":"https:\/\/support.fuxinsoft.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=3385"}],"version-history":[{"count":2,"href":"https:\/\/support.fuxinsoft.cn\/index.php?rest_route=\/wp\/v2\/posts\/3385\/revisions"}],"predecessor-version":[{"id":3393,"href":"https:\/\/support.fuxinsoft.cn\/index.php?rest_route=\/wp\/v2\/posts\/3385\/revisions\/3393"}],"wp:attachment":[{"href":"https:\/\/support.fuxinsoft.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=3385"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/support.fuxinsoft.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=3385"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/support.fuxinsoft.cn\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=3385"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}