{"id":2731,"date":"2024-09-09T16:35:23","date_gmt":"2024-09-09T08:35:23","guid":{"rendered":"https:\/\/support.foxitsoftware.cn\/?p=2731"},"modified":"2024-09-09T16:35:24","modified_gmt":"2024-09-09T08:35:24","slug":"%e5%a6%82%e4%bd%95%e5%90%88%e5%b9%b6pdf%e6%96%87%e4%bb%b6%e5%b9%b6%e8%ae%be%e7%bd%ae%e5%90%88%e5%b9%b6%e5%90%8e%e6%96%87%e4%bb%b6%e5%b1%9e%e6%80%a7%ef%bc%9f","status":"publish","type":"post","link":"https:\/\/support.fuxinsoft.cn\/?p=2731","title":{"rendered":"\u5982\u4f55\u5408\u5e76PDF\u6587\u4ef6\u5e76\u8bbe\u7f6e\u5408\u5e76\u540e\u6587\u4ef6\u5c5e\u6027\uff1f"},"content":{"rendered":"\n<p>\u5728\u6863\u6848\u7cfb\u7edf\u4e2d\u5bf9\u6587\u4ef6\u7ba1\u7406\u6709\u9700\u6c42\u7684\u5ba2\u6237\u7ecf\u5e38\u95ee\u5230: \u5982\u4f55\u5c06\u591a\u4e2a\u6587\u4ef6\u5408\u5e76\uff0c\u5e76\u4e14\u5408\u5e76\u540e\u7684\u6587\u4ef6\u5982\u4f55\u4fdd\u7559\u6e90\u6587\u4ef6\u76ee\u5f55, \u6807\u7b7e? \u7b49\u7b49.<\/p>\n\n\n\n<p>java\u793a\u4f8b\u4ee3\u7801\u5982\u4e0b\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code has-body-font-family\"><code>CombineDocumentInfoArray info_array = new CombineDocumentInfoArray();\ninfo_array.add(new CombineDocumentInfo( \"AboutFoxit1.pdf\", \"\"));\ninfo_array.add(new CombineDocumentInfo( \"AboutFoxit2.pdf\", \"\"));\ninfo_array.add(new CombineDocumentInfo( \"AboutFoxit3.pdf\", \"\"));\n\nString savepath =  \"Test_Combined.pdf\";\n\/\/\u6e90PDF\u6587\u4ef6\u7684\u4e66\u7b7e\u5c06\u8f93\u51fa\u5230\u7ec4\u5408\u7ed3\u679cPDF\u6587\u4ef6\u3002\nint option = (int)(<em>e_CombineDocsOptionBookmark\n\n        <\/em>\/\/\u5177\u6709\u76f8\u540c\u540d\u79f0\u7684\u5b57\u6bb5\u5c06\u5728\u7ec4\u5408\u7ed3\u679cPDF\u6587\u4ef6\u4e2d\u91cd\u547d\u540d\u3002\n        | <em>e_CombineDocsOptionAcroformRename\n        <\/em>\/\/\u6e90PDF\u6587\u4ef6\u7684\u7ed3\u6784\u6811\u5c06\u8f93\u51fa\u5230\u7ec4\u5408\u7ed3\u679cPDF\u6587\u4ef6\u3002\n        | <em>e_CombineDocsOptionStructrueTree\n        <\/em>\/\/\u6e90PDF\u6587\u4ef6\u7684OutputIntents\u5c06\u8f93\u51fa\u5230\u7ec4\u5408\u7ed3\u679cPDF\u6587\u4ef6\n        | <em>e_CombineDocsOptionOutputIntents\n        <\/em>\/\/\u6e90PDF\u6587\u4ef6\u7684\u201cOCProperties\u201d\u5c06\u8f93\u51fa\u5230\u7ec4\u5408\u7ed3\u679cPDF\u6587\u4ef6\u3002\n        | <em>e_CombineDocsOptionOCProperties\n        <\/em>\/\/\u6e90PDF\u6587\u4ef6\u7684\u201cMarkInfo\u201d\u5c06\u8f93\u51fa\u5230\u7ec4\u5408\u7ed3\u679cPDF\u6587\u4ef6\u3002\n        | <em>e_CombineDocsOptionMarkInfos\n        <\/em>\/\/\u6e90PDF\u6587\u4ef6\u7684\u9875\u9762\u6807\u7b7e\u5c06\u8f93\u51fa\u5230\u7ec4\u5408\u7ed3\u679cPDF\u6587\u4ef6\n        | <em>e_CombineDocsOptionPageLabels\n        <\/em>\/\/\u6e90PDF\u6587\u4ef6\u7684\u201cDestins\u201d\u540d\u79f0\u6811\u548c\u201cEmbeddedFiles\u201d\u540d\u79f0\u6811\u5c06\u8f93\u51fa\u5230\u7ec4\u5408\u7ed3\u679cPDF\u6587\u4ef6\u4e2d\u3002\n        | <em>e_CombineDocsOptionNames\n        <\/em>\/\/\u5c06\u4f7f\u7528\u5bf9\u8c61\u6d41\u6765\u751f\u6210\u7ec4\u5408\u7ed3\u679cPDF\u6587\u4ef6\uff0c\u4ee5\u51cf\u5c0f\u7ed3\u679c\u6587\u4ef6\u7684\u5927\u5c0f\u3002\n        | <em>e_CombineDocsOptionObjectStream\n        <\/em>\/\/\u6e90PDF\u6587\u4ef6\u4e2d\u7684\u91cd\u590d\u6d41\u5bf9\u8c61\u5c06\u8f93\u51fa\u5230\u7ec4\u5408\u7ed3\u679cPDF\u6587\u4ef6\u4e2d\n        | <em>e_CombineDocsOptionDuplicateStream<\/em>);\nProgressive progressive = Combination.<em>startCombineDocuments<\/em>(savepath, info_array, option, null);\nif (progressive.getRateOfProgress() != 100) {\n    int state = Progressive.<em>e_ToBeContinued<\/em>;\n    while (Progressive.<em>e_ToBeContinued <\/em>== state) {\n        state = progressive.resume();\n    }\n}<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-preformatted has-body-font-family has-medium-font-size\">\u5373\u53ef\u5408\u5e76PDF\u6587\u4ef6\u5e76\u8bbe\u7f6e\u5408\u5e76\u540e\u60f3\u8981\u7684\u6587\u4ef6\u5c5e\u6027\u3002<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>\u5728\u6863\u6848\u7cfb\u7edf\u4e2d\u5bf9\u6587\u4ef6\u7ba1\u7406\u6709\u9700\u6c42\u7684\u5ba2\u6237\u7ecf\u5e38\u95ee\u5230: \u5982\u4f55\u5c06\u591a\u4e2a\u6587\u4ef6\u5408\u5e76\uff0c\u5e76\u4e14\u5408\u5e76\u540e\u7684\u6587\u4ef6\u5982\u4f55\u4fdd\u7559\u6e90\u6587\u4ef6\u76ee\u5f55, \u6807\u7b7e? [&hellip;]<\/p>\n","protected":false},"author":30,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[77],"tags":[],"class_list":["post-2731","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\/2731","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\/30"}],"replies":[{"embeddable":true,"href":"https:\/\/support.fuxinsoft.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2731"}],"version-history":[{"count":3,"href":"https:\/\/support.fuxinsoft.cn\/index.php?rest_route=\/wp\/v2\/posts\/2731\/revisions"}],"predecessor-version":[{"id":2764,"href":"https:\/\/support.fuxinsoft.cn\/index.php?rest_route=\/wp\/v2\/posts\/2731\/revisions\/2764"}],"wp:attachment":[{"href":"https:\/\/support.fuxinsoft.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2731"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/support.fuxinsoft.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2731"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/support.fuxinsoft.cn\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2731"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}