PDFlib+PDI:导入未被平整的带有标记的PDF文件

huangapple go评论52阅读模式
英文:

PDFlib+PDI: Importing PDFs with markup that was not flattened

问题

我们有成千上万份PDF文档,我们在上面做了标记。当您在PDF查看器中打开PDF或甚至在浏览器的PDF查看器中查看时,这些标记是可见的。

然而,我正在尝试使用PDFLib+PDI合并其中一些文档。合并过程我已经熟悉,但是使用open_pdi_document/open_pdi_page导入这些页面时,添加的文本并没有被带过来。

我在手册或教程中找不到任何相关信息。我希望有人在这方面有经验,可以指点我一个不涉及平铺数千个PDF的方法。

英文:

We have thousands of PDFs we have made markup on. That markup is visible when you pull the PDF up in a PDF Viewer, or even a browser PDF viewer.

However, I'm attempting to merge some of these using PDFLib+PDI. I have the merging process down, but importing these pages with open_pdi_document/open_pdi_page does not bring over the added text.

I can't find anything in the manuals or tutorials on this. I'm hoping someone out there has experienced this and can point me in a direction that doesn't involve flattening a few thousand PDFs.

答案1

得分: 1

答案取决于您使用的PDFlib版本。如果您使用的是PDFlib+PDI 9或更早版本,那么无法导入注释和表单字段是正确的。这在PDFlib教程中有明确的文档记录。引用自PDFlib 9.4教程,“8.3.2 使用PDFlib+PDI”:

“重要的是要理解,PDI只导入实际页面内容,而不导入导入的PDF文档中可能存在的任何交互功能(如声音、电影、嵌入文件、超文本链接、表单字段、JavaScript、书签、缩略图和注释)。”

PDFlib+PDI 10能够导入表单字段和注释。请参阅PDFlib 10教程,“8.3.4 导入注释、表单字段和操作”。

英文:

The answer depends on the version of PDFlib that you are using. If you are using PDFlib+PDI 9 or older, it is true that it cannot import annotations and form fields. This is clearly documented in the PDFlib Tutorial. Quote from the PDFlib 9.4 Tutorial, "8.3.2 Using PDFlib+PDI":

"It is important to understand that PDI only imports the actual
page contents, but not any interactive features (such as sound, movies, embedded files, hypertext links, form fields, JavaScript, bookmarks, thumbnails, and notes) which may be present in the imported PDF document."

PDFlib+PDI 10 it is capable of importing form fields and annotations. See the PDFlib 10 Tutorial, "8.3.4 Importing Annotations, Form Fields and Actions".

huangapple
  • 本文由 发表于 2023年6月2日 02:41:01
  • 转载请务必保留本文链接:https://go.coder-hub.com/76384805.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定