{"id":209,"date":"2023-06-02T15:14:15","date_gmt":"2023-06-02T07:14:15","guid":{"rendered":""},"modified":"2025-01-20T15:50:14","modified_gmt":"2025-01-20T07:50:14","slug":"article-slug-169","status":"publish","type":"post","link":"https:\/\/support.fuxinsoft.cn\/?p=209","title":{"rendered":"\u3010Foxit PDF SDK\u3011Linux\u5e73\u53f0\u4e0b\u8fd0\u884chtml2pdf Demo\u5e38\u89c1\u95ee\u9898\u53ca\u89e3\u51b3\u65b9\u6cd5"},"content":{"rendered":"<p><span style=\"font-family:\u7b49\u7ebf\">\u5728<\/span>Linux<span style=\"font-family:\u7b49\u7ebf\">\u5e73\u53f0\u4e0a\u8fd0\u884c<\/span>html2pdf demo<span style=\"font-family:\u7b49\u7ebf\">\u65f6\uff0c\u53ef\u80fd\u4f1a\u9047\u5230\u4e00\u4e9b\u95ee\u9898\u3002<\/span> <span style=\"font-family:\u7b49\u7ebf\">\u4e00\u4e9b\u5e38\u89c1\u95ee\u9898\u548c\u89e3\u51b3\u65b9\u6cd5\u5982\u4e0b\uff1a<\/span><\/p>\n<p><span style=\"font-family: \u7b49\u7ebf\">&#8211; \u7f3a\u4e4f\u5f15\u64ce<\/span><\/p>\n<p><span style=\"font-family:\u7b49\u7ebf\">\u60a8\u53ef\u80fd\u4f1a\u6536\u5230\u5982\u4e0b\u9519\u8bef\u6d88\u606f\uff1a<\/span><\/p>\n<p><img decoding=\"async\" src=\"https:\/\/support.fuxinsoft.cn\/wp-content\/uploads\/2023\/06\/c25d1a1d94bd885bd5f3ae342811f780.png\" title=\"1685689276855077.png\" alt=\"Picture1.png\" \/><\/p>\n<p><span style=\"font-size:15px;line-height: 107%;font-family:\u7b49\u7ebf\">\u8fd9\u662f\u56e0\u4e3a\u60a8\u8fd8\u6ca1\u6709\u914d\u7f6e<\/span><span style=\"font-size:15px;line-height:107%;,sans-serif\"> HTML <\/span><span style=\"font-size: 15px;line-height:107%;font-family:\u7b49\u7ebf\">\u8f6c\u6362\u5f15\u64ce\u3002<\/span> <span style=\"font-size:15px;line-height:107%;font-family:\u7b49\u7ebf\">\u8bf7\u8bbe\u7f6e<\/span><span style=\"font-size:15px;line-height:107%;,sans-serif\">demo<\/span><span style=\"font-size:15px;line-height:107%;font-family:\u7b49\u7ebf\">\u7684\u5f15\u64ce\u8def\u5f84\uff1a<\/span><\/p>\n<p><span style=\"font-size:15px;line-height:107%;font-family:\u7b49\u7ebf\"><img decoding=\"async\" src=\"https:\/\/support.fuxinsoft.cn\/wp-content\/uploads\/2023\/06\/1e6f595e5995638ab4224f3c08d2c9bc.png\" title=\"1685689328242101.png\" alt=\"Picture3.png\" \/><\/span><\/p>\n<p><span style=\"font-size:15px;line-height:107%;font-family:\u7b49\u7ebf\"><span style=\"font-size: 14px\">&#8211; \u6ca1\u6709\u6743\u9650<\/span><\/span><\/p>\n<p><span style=\"font-size:15px;line-height:107%;font-family:\u7b49\u7ebf\"><span style=\"font-size: 14px\"><span style=\"font-family: \u7b49\u7ebf;font-size: 15px\">\u60a8\u53ef\u80fd\u4f1a\u6536\u5230\u4ee5\u4e0b\u9519\u8bef\u6d88\u606f<\/span><\/span><\/span><\/p>\n<p><img decoding=\"async\" src=\"https:\/\/support.fuxinsoft.cn\/wp-content\/uploads\/2023\/06\/0ae4c233b7a43b0a9e0146f57bc9d323.png\" title=\"1685689408248834.png\" alt=\"Picture4.png\" \/><\/p>\n<p><span style=\"font-size:15px;line-height: 107%;font-family:\u7b49\u7ebf\">\u8fd9\u662f\u56e0\u4e3a<\/span><span style=\"font-size:15px;line-height:107%;,sans-serif\">HTML<\/span><span style=\"font-size: 15px;line-height:107%;font-family:\u7b49\u7ebf\">\u8f6c\u6362\u7684\u76ee\u5f55\u6ca1\u6709\u6743\u9650\u3002<\/span> <span style=\"font-size:15px;line-height:107%;font-family:\u7b49\u7ebf\">\u60a8\u9700\u8981\u6388\u4e88\u76ee\u5f55\u6743\u9650\uff1a<\/span><\/p>\n<p><span style=\"font-size:15px;line-height:107%;font-family:\u7b49\u7ebf\"><img decoding=\"async\" src=\"https:\/\/support.fuxinsoft.cn\/wp-content\/uploads\/2023\/06\/5e4da4608e7cccd3d2654ee52dec08cd.png\" title=\"1685689449303928.png\" alt=\"Picture5.png\" \/><\/span><\/p>\n<p><span style=\"font-size:15px;line-height:107%;font-family:\u7b49\u7ebf\"><span style=\"font-size: 14px;font-family: Symbol\"><span style=\"font-size: 9px;line-height: normal\">&#8211;&nbsp;&nbsp;<\/span><\/span><span style=\"font-family: sans-serif;font-size: 14px\">glibc <\/span><span style=\"font-size: 14px\">\u7248\u672c\u592a\u4f4e<\/span><\/span><\/p>\n<p><span style=\"font-size:15px;line-height:107%;font-family:\u7b49\u7ebf\"><\/span><img decoding=\"async\" src=\"https:\/\/support.fuxinsoft.cn\/wp-content\/uploads\/2023\/06\/1c61f3db0f157a6f81d2b26ecd1d2c38.png\" title=\"1685689503388411.png\" alt=\"Picture6.png\" \/><\/p>\n<p>glibc<span style=\"font-family:\u7b49\u7ebf\">\u7248\u672c\u4f4e\u4e8e<\/span>V2.18<span style=\"font-family:\u7b49\u7ebf\">\uff0c\u9700\u8981\u5347\u7ea7\u3002<\/span> <span style=\"font-family:\u7b49\u7ebf\">\u60a8\u53ef\u4ee5\u4f7f\u7528<\/span> $ ldd &#8211;version<span style=\"font-family:\u7b49\u7ebf\">\u6765\u83b7\u53d6<\/span>glibc <span style=\"font-family:\u7b49\u7ebf\">\u7248\u672c\uff1a<\/span><\/p>\n<p><span style=\"font-family:\u7b49\u7ebf\"><img decoding=\"async\" src=\"https:\/\/support.fuxinsoft.cn\/wp-content\/uploads\/2023\/06\/2283ad45087ff9f7ae0f501400de8fa9.png\" title=\"1685689545451979.png\" alt=\"Picture7.png\" \/><\/span><\/p>\n<p><span style=\"font-size:15px;line-height:107%;font-family:\u7b49\u7ebf\"><\/span><\/p>\n<p><span style=\"font-family:\u7b49\u7ebf\">\u7136\u540e\u6309\u7167\u4ee5\u4e0b\u6b65\u9aa4\u4e0b\u8f7d\u5e76\u5347\u7ea7<\/span>glibc<span style=\"font-family:\u7b49\u7ebf\">\uff1a<\/span><\/p>\n<p>&nbsp; &nbsp; &nbsp;1.&nbsp;<span style=\"font-family: \u7b49\u7ebf\">\u4e0b\u8f7d<\/span> glibc-2.18 <span style=\"font-family: \u7b49\u7ebf\">\u5e76\u89e3\u538b<\/span><\/p>\n<p style=\"margin-left:.25in\">curl -O http:\/\/ftp.gnu.org\/gnu\/glibc\/glibc-2.18.tar.gz<\/p>\n<p style=\"margin-left:.25in\">tar zxf glibc-2.18.tar.gz<\/p>\n<p style=\"margin-left:.25in\"><span style=\"line-height: normal\">2.&nbsp;<\/span><span style=\"font-family: \u7b49\u7ebf\">\u7f16\u8bd1\u5e76\u5b89\u88c5\u5b83\u3002<\/span> <span style=\"font-family: \u7b49\u7ebf\">\u4e24\u79cd\u65b9\u6cd5\uff0c\u8bf7\u62e9\u4e00\u3002<\/span><\/p>\n<p>&nbsp; &nbsp; &nbsp; &nbsp; 1)<span style=\"font-size: 9px;line-height: normal\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span><span style=\"font-family:\u7b49\u7ebf\">\u65b9\u6cd5\u4e00\uff1a<\/span><\/p>\n<p style=\"margin-left:.25in\">..\/configure &#8211;prefix=\/usr<\/p>\n<p style=\"margin-left:.25in\">make j2<\/p>\n<p>&nbsp; &nbsp; &nbsp; &nbsp; 2)<span style=\"font-size: 9px;line-height: normal\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span><span style=\"font-family:\u7b49\u7ebf\">\u65b9\u6cd5\u4e8c\uff1a<\/span><\/p>\n<p style=\"margin-left:.25in\">..\/configure &#8211;prefix=\/usr &#8211;disable-profile &#8211;enable-add-ons &#8211;with-headers=\/usr\/include &#8211;with-binutils=\/usr\/bin<\/p>\n<p style=\"margin-left:.25in\">make -j 8<\/p>\n<p style=\"margin-left:.25in\">make install<\/p>\n<p><span style=\"font-size:15px;line-height:107%;font-family:\u7b49\u7ebf\">\u7136\u540e\u60a8\u4f1a\u5f97\u5230\u6210\u529f\u7684\u63d0\u793a\u5982\u4e0b\uff1a<\/span><\/p>\n<p><span style=\"font-size:15px;line-height:107%;font-family:\u7b49\u7ebf\"><img decoding=\"async\" src=\"https:\/\/support.fuxinsoft.cn\/wp-content\/uploads\/2023\/06\/ee777598256a3765d9cc1f4a315c2b01.png\" title=\"1685689749468390.png\" alt=\"Picture9.png\" \/><\/span><\/p>\n<p><span style=\"line-height: 107%\"><span style=\"line-height: normal\">&nbsp; &nbsp; &nbsp;3.&nbsp;<\/span><span style=\"font-size: 9px;line-height: normal\">&nbsp;<\/span><span style=\"font-family: \u7b49\u7ebf;font-size: 14px\">\u6253\u5f00\u4e00\u4e2a\u65b0\u7684\u547d\u4ee4\u884c\u7a97\u53e3\uff0c\u91cd\u65b0\u7f16\u8bd1\u5e76\u8fd0\u884c<\/span><span style=\"font-family: sans-serif;font-size: 14px\"> html2pdf <\/span><span style=\"font-family: \u7b49\u7ebf;font-size: 14px\">\u6f14\u793a<\/span><\/span><\/p>\n<p>&nbsp; &nbsp; &nbsp; &nbsp;1)<span>&nbsp;<\/span><span style=\"font-family:\u7b49\u7ebf\">\u52a0\u8f7d\u8d85\u65f6<\/span><\/p>\n<p><img decoding=\"async\" src=\"https:\/\/support.fuxinsoft.cn\/wp-content\/uploads\/2023\/06\/7eae92ef9400817897f05b45f17cfc63.png\" title=\"1685689995369498.png\" alt=\"Picture12.png\" \/><\/p>\n<p><span style=\"font-family: \u7b49\u7ebf;font-size: 15px\">&nbsp; &nbsp; &nbsp; &nbsp;<\/span><span style=\"font-family: \u7b49\u7ebf;font-size: 15px\">2)<\/span><span style=\"font-size: 9px;line-height: normal\">&nbsp;<\/span><span style=\"font-family: \u7b49\u7ebf;font-size: 15px\">\u60a8\u53ef\u4ee5\u6269\u5927\u8d85\u65f6\u503c<\/span><\/p>\n<p><span style=\"font-size:15px;line-height:107%;font-family:\u7b49\u7ebf\"><img decoding=\"async\" src=\"https:\/\/support.fuxinsoft.cn\/wp-content\/uploads\/2023\/06\/f6cbc3b38072e6e3d29e74dd83a4ad80.png\" title=\"1685690024929994.png\" alt=\"Picture11.png\" \/><\/span><\/p>\n<p><span style=\"font-size:15px;line-height:107%;font-family:\u7b49\u7ebf\"><br \/><\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u5728Linux\u5e73\u53f0\u4e0a\u8fd0\u884chtml2pdf demo\u65f6\uff0c\u53ef\u80fd\u4f1a\u9047\u5230\u4e00\u4e9b\u95ee\u9898\u3002 \u4e00\u4e9b\u5e38\u89c1\u95ee\u9898\u548c\u89e3\u51b3\u65b9\u6cd5\u5982\u4e0b\uff1a &#038;#8 [&hellip;]<\/p>\n","protected":false},"author":11,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[38],"tags":[],"class_list":["post-209","post","type-post","status-publish","format-standard","hentry","category-software-development-kit"],"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\/209","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\/11"}],"replies":[{"embeddable":true,"href":"https:\/\/support.fuxinsoft.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=209"}],"version-history":[{"count":1,"href":"https:\/\/support.fuxinsoft.cn\/index.php?rest_route=\/wp\/v2\/posts\/209\/revisions"}],"predecessor-version":[{"id":4009,"href":"https:\/\/support.fuxinsoft.cn\/index.php?rest_route=\/wp\/v2\/posts\/209\/revisions\/4009"}],"wp:attachment":[{"href":"https:\/\/support.fuxinsoft.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=209"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/support.fuxinsoft.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=209"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/support.fuxinsoft.cn\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=209"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}