{"id":2610,"date":"2024-09-02T10:39:47","date_gmt":"2024-09-02T02:39:47","guid":{"rendered":"https:\/\/support.foxitsoftware.cn\/?p=2610"},"modified":"2025-03-06T10:56:10","modified_gmt":"2025-03-06T02:56:10","slug":"sdk%e6%8a%a5%e9%94%99%ef%bc%9anot-loaded-error-current-object-has-not-been-loaded-yet-%e6%98%af%e4%bb%80%e4%b9%88%e5%8e%9f%e5%9b%a0%e5%af%bc%e8%87%b4%e7%9a%84%ef%bc%9f","status":"publish","type":"post","link":"https:\/\/support.fuxinsoft.cn\/?p=2610","title":{"rendered":"SDK\u62a5\u9519[Not loaded error]: current object has not been loaded yet.\u662f\u4ec0\u4e48\u539f\u56e0\u5bfc\u81f4\u7684\uff1f"},"content":{"rendered":"\n<p>\u56e0\u4e3a\u798f\u6615SDK(\u5168\u5e73\u53f0)\u5728\u5904\u7406PDF\u6587\u6863\u65f6\uff0c\u9700\u8981\u8c03\u7528PDF\u52a0\u8f7d\u63a5\u53e3\u540e\u624d\u80fd\u505a\u5177\u4f53\u64cd\u4f5c\uff1b\u6240\u4ee5\u5982\u679c\u6ca1\u6709\u8c03\u7528\u76f8\u5173\u63a5\u53e3\uff0c\u5219\u4f1a\u62a5\u4e0a\u8ff0\u9519\u8bef\u3002<\/p>\n\n\n\n<p>\u89e3\u51b3\u6b64\u7c7b\u62a5\u9519\u4fe1\u606f\u7684\u5177\u4f53\u4ee3\u7801\uff0c\u53ef\u53c2\u8003SDK\u5f00\u53d1\u5305\/\/example\/\/simpledemo\u76ee\u5f55\u4e0b\u7684\u4efb\u610f\u6837\u4f8b\uff0c\u52a0\u5165\u8fd9\u90e8\u5206\u4ee3\u7801\u540e\u5c31\u4e0d\u4f1a\u62a5\u4e0a\u8ff0\u9519\u8bef\uff0c\u4ee3\u7801\u5982\u4e0b(Java\u4e3a\u4f8b) \uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code has-body-font-family has-medium-font-size\"><code>PDFDoc doc = new PDFDoc(<em>input_file<\/em>);\nerror_code = doc.load(null);\nif (error_code != <em>e_ErrSuccess<\/em>) {\n    System.<em>out<\/em>.println(String.<em>format<\/em>(\"The Doc &#91;%s] Error: %d\\n\", <em>input_file<\/em>, error_code));\n    return;\n}<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-preformatted\"><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>\u56e0\u4e3a\u798f\u6615SDK(\u5168\u5e73\u53f0)\u5728\u5904\u7406PDF\u6587\u6863\u65f6\uff0c\u9700\u8981\u8c03\u7528PDF\u52a0\u8f7d\u63a5\u53e3\u540e\u624d\u80fd\u505a\u5177\u4f53\u64cd\u4f5c\uff1b\u6240\u4ee5\u5982\u679c\u6ca1\u6709\u8c03\u7528\u76f8\u5173\u63a5\u53e3\uff0c [&hellip;]<\/p>\n","protected":false},"author":29,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[77],"tags":[],"class_list":["post-2610","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\/2610","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\/29"}],"replies":[{"embeddable":true,"href":"https:\/\/support.fuxinsoft.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2610"}],"version-history":[{"count":6,"href":"https:\/\/support.fuxinsoft.cn\/index.php?rest_route=\/wp\/v2\/posts\/2610\/revisions"}],"predecessor-version":[{"id":2653,"href":"https:\/\/support.fuxinsoft.cn\/index.php?rest_route=\/wp\/v2\/posts\/2610\/revisions\/2653"}],"wp:attachment":[{"href":"https:\/\/support.fuxinsoft.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2610"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/support.fuxinsoft.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2610"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/support.fuxinsoft.cn\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2610"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}