简体   繁体   English

PDF XFA 文件转换为“普通”PDF 文件

[英]PDF XFA File convert to “normal” PDF file

I´m searching for a way to convert PDF XFA files to normal PDF files which could be than processed and / or compressed via Imagemagick or ghostscript for example.我正在寻找一种将 PDF XFA 文件转换为普通 PDF 文件的方法,例如可以通过 Imagemagick 或 ghostscript 处理和/或压缩这些文件。 All options I found are just removing the the XFA tags resulting in an empty file.我发现的所有选项都只是删除导致空文件的 XFA 标签。

One way would be to use Adobe acrobat reader and print the file via virtual printer.一种方法是使用 Adob​​e acrobat 阅读器并通过虚拟打印机打印文件。 But that is not an acceptable option on an server.但这在服务器上是不可接受的选项。

IText is also out of option because it is too expensive for what we need. IText 也是不可取的,因为它对于我们需要的东西来说太贵了。 Anyone got an idea or have a better way?有人有想法或有更好的方法吗?

I have been able to convert forms created with XFA features using a free toolkit from PDFLabs called PDFtk.我已经能够使用来自PDFLabs 的名为 PDFtk 的免费工具包转换使用 XFA 功能创建的表单。 The interface is not quite as intuitive as I would hope but it does get the job done.界面并不像我希望的那样直观,但它确实完成了工作。

Also, Debenu has a product called the Quick PDF Library.此外, Debenu有一个名为 Quick PDF Library 的产品。 I have not tried its function called RemoveXFAEntries but I think that will do what you want also.我还没有尝试过它的名为 RemoveXFAEntries 的功能,但我认为它也可以满足您的需求。 I am thinking about writing a utility to just encapsulate this feature to make my job easier.我正在考虑编写一个实用程序来封装此功能,以使我的工作更轻松。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM