{"id":2988,"date":"2024-10-09T16:57:16","date_gmt":"2024-10-09T08:57:16","guid":{"rendered":"https:\/\/support.foxitsoftware.cn\/?p=2988"},"modified":"2024-10-10T09:43:57","modified_gmt":"2024-10-10T01:43:57","slug":"%e5%a6%82%e4%bd%95%e5%9c%a8%e7%94%a8%e6%88%b7%e7%82%b9%e5%87%bb%e4%bd%8d%e7%bd%ae%e6%b7%bb%e5%8a%a0%e6%b3%a8%e9%87%8a%ef%bc%9f","status":"publish","type":"post","link":"https:\/\/support.fuxinsoft.cn\/?p=2988","title":{"rendered":"\u5982\u4f55\u5728\u7528\u6237\u70b9\u51fb\u4f4d\u7f6e\u6dfb\u52a0\u6ce8\u91ca\uff1f"},"content":{"rendered":"\n<p>\u9700\u8981\u5728\u7528\u6237\u70b9\u51fb\u4f4d\u7f6e\u6dfb\u52a0\u6ce8\u91ca(\u5982\u4e0b\u56fe\u6ce8\u91ca)\uff0c\u6700\u91cd\u8981\u7684\u662f\u5c06 ActiveX \u63a7\u4ef6\u7684\u7a97\u53e3\u5750\u6807\u8f6c\u6362\u4e3a PDF \u9875\u9762\u5750\u6807\u3002\u9700\u8981\u4f7f\u7528\u63a5\u53e3\uff1aConvertClientCoordToPageCoord\uff08\uff09\u3002<\/p>\n\n\n\n<p>\u4ee5C# FrameWork\u9879\u76ee\u4e3a\u4f8b\uff1a<\/p>\n\n\n\n<p style=\"text-decoration:underline\">\u6b65\u9aa41<\/p>\n\n\n\n<p>\u521b\u5efaonclick\u9f20\u6807\u70b9\u51fb\u4e8b\u4ef6\uff1a\u5728\u8bbe\u8ba1\u754c\u9762\u91cc\uff0c\u9009\u4e2dActiveX\u63a7\u4ef6,\u53f3\u952e\u67e5\u770b\u5c5e\u6027\uff0c\u5728\u5c5e\u6027\u754c\u9762\u91cc\u627e\u5230\u4e8b\u4ef6\uff0c\u5e76\u53cc\u5229\u4e8b\u4ef6\u91cc\u7684OnClick\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img fetchpriority=\"high\" decoding=\"async\" width=\"1024\" height=\"458\" src=\"https:\/\/support.fuxinsoft.cn\/wp-content\/uploads\/2024\/10\/image-1-1024x458.png\" alt=\"\" class=\"wp-image-3005\" srcset=\"https:\/\/support.fuxinsoft.cn\/wp-content\/uploads\/2024\/10\/image-1-1024x458.png 1024w, https:\/\/support.fuxinsoft.cn\/wp-content\/uploads\/2024\/10\/image-1-300x134.png 300w, https:\/\/support.fuxinsoft.cn\/wp-content\/uploads\/2024\/10\/image-1-768x343.png 768w, https:\/\/support.fuxinsoft.cn\/wp-content\/uploads\/2024\/10\/image-1-1536x687.png 1536w, https:\/\/support.fuxinsoft.cn\/wp-content\/uploads\/2024\/10\/image-1.png 1698w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>\u53cc\u51fb\u540e\uff0c\u4f1a\u81ea\u52a8\u5728\u4ee3\u7801\u91cc\u521b\u5efa\u70b9\u51fb\u4e8b\u4ef6\u5904\u7406\u5668\uff1a <\/p>\n\n\n\n<pre class=\"wp-block-code has-body-font-family has-medium-font-size\"><code>private void axFoxitPDFSDK1_OnClick(object sender, AxFoxitPDFSDKProLib._DFoxitPDFSDKEvents_OnClickEvent e)\n {}<\/code><\/pre>\n\n\n\n<p style=\"text-decoration:underline\">\u6b65\u9aa42<\/p>\n\n\n\n<p>\u4ee3\u7801\u5b9e\u73b0\u3002\u5728\u70b9\u51fb\u5904\u521b\u5efa\u6ce8\u91ca\uff0c\u793a\u4f8b\u4ee3\u7801\u5982\u4e0b\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code has-body-font-family\"><code>private void axFoxitPDFSDK1_OnClick(object sender, AxFoxitPDFSDKProLib._DFoxitPDFSDKEvents_OnClickEvent e)\n { \nint pageIndex = axFoxitPDFSDK1.CurPage; FoxitPDFSDKProLib.IPDFPageAnnots annots= axFoxitPDFSDK1.GetPageAnnots(pageIndex); \nfloat posX = 0;\n float posY = 0;\n \/\/\u56fe\u50cf\u5bbd\u9ad8\n float imgW = 80;\n float imgH = 50;\n \/\/\u5750\u6807\u8f6c\u6362 axFoxitPDFSDK1.ConvertClientCoordToPageCoord(e.clientX,e.clientY, ref pageIndex, ref posX,ref posY); \n\/\/\u5728\u7528\u6237\u70b9\u51fb\u4f4d\u7f6e\u521b\u5efa\u56fe\u50cf\u6ce8\u91ca\n FoxitPDFSDKProLib.IPDFAnnot annot= annots.AddAnnot(null, \"Image\", posX-imgW\/2, posY - imgH\/2, posX +imgW\/2, posY+imgH\/2); annot.SetMediaPoster(\"D:\\\\FoxitLogo.jpg\"); \n}<\/code><\/pre>\n\n\n\n<p>\u6548\u679c\u663e\u793a\u5982\u4e0b\uff1a<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"1024\" height=\"605\" src=\"https:\/\/support.fuxinsoft.cn\/wp-content\/uploads\/2024\/10\/image-1024x605.png\" alt=\"\" class=\"wp-image-3004\" srcset=\"https:\/\/support.fuxinsoft.cn\/wp-content\/uploads\/2024\/10\/image-1024x605.png 1024w, https:\/\/support.fuxinsoft.cn\/wp-content\/uploads\/2024\/10\/image-300x177.png 300w, https:\/\/support.fuxinsoft.cn\/wp-content\/uploads\/2024\/10\/image-768x454.png 768w, https:\/\/support.fuxinsoft.cn\/wp-content\/uploads\/2024\/10\/image.png 1331w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u9700\u8981\u5728\u7528\u6237\u70b9\u51fb\u4f4d\u7f6e\u6dfb\u52a0\u6ce8\u91ca(\u5982\u4e0b\u56fe\u6ce8\u91ca)\uff0c\u6700\u91cd\u8981\u7684\u662f\u5c06 ActiveX \u63a7\u4ef6\u7684\u7a97\u53e3\u5750\u6807\u8f6c\u6362\u4e3a PDF \u9875\u9762\u5750\u6807 [&hellip;]<\/p>\n","protected":false},"author":31,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[132],"tags":[],"class_list":["post-2988","post","type-post","status-publish","format-standard","hentry","category-activex"],"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\/2988","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=2988"}],"version-history":[{"count":8,"href":"https:\/\/support.fuxinsoft.cn\/index.php?rest_route=\/wp\/v2\/posts\/2988\/revisions"}],"predecessor-version":[{"id":3050,"href":"https:\/\/support.fuxinsoft.cn\/index.php?rest_route=\/wp\/v2\/posts\/2988\/revisions\/3050"}],"wp:attachment":[{"href":"https:\/\/support.fuxinsoft.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2988"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/support.fuxinsoft.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2988"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/support.fuxinsoft.cn\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2988"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}