Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在寻找一种方法将我们的客户将上传到我们的 Java 后端服务器的 PDF 文档转换为“更简单”的表单,以便以后可以在 iPad 应用程序中正确呈现它们。我不是 PDF 专家,但据我所知,我需要删除交互式表单元素和/或将 PDF 转换为 PDF-X 版本。
我查看了 iText 的“setPDFXConformance(PdfWriter.PDFXNONE)”,但它没有做太多。我想用 PDFBox 来做,因为它是友好的许可证,但我会接受任何建议。
我设法用 GhostScript 做到这一点:
gs -o output.pdf -sDEVICE=pdfwrite -dPDFSETTINGS=/printer broken.pdf