简体   繁体   English

如何使用PDFReactor生成非透明PDF?

[英]How to generate NON-transparent PDFs with PDFReactor?

I'm using PDFReactor 5 in Java to generate PDF files. 我正在Java中使用PDFReactor 5生成PDF文件。 The generated files must conform to the PDF/A1-a standard which does not allow transparency. 生成的文件必须符合不允许透明的PDF / A1-a标准。

I use the PDFA conformance mode in PDFReactor like so pdfReactor.setConformance(PDFreactor.CONFORMANCE_PDFA); 我在PDFReactor中使用PDFA一致性模式,就像pdfReactor.setConformance(PDFreactor.CONFORMANCE_PDFA); but the validator at http://www.pdf-tools.com/pdf/validate-pdfa-online.aspx says my generated files are not valid PDF/A1-a since they contain transparency. 但是位于http://www.pdf-tools.com/pdf/validate-pdfa-online.aspx的验证器说,我生成的文件不是有效的PDF / A1-a,因为它们包含透明性。

Any idea how one can configure PDFReactor to generate an opaque document? 知道如何配置PDFReactor生成不透明的文档吗?

The way to generate is the one you used, so it's correct to set: 生成方式是您使用的方式,因此设置正确:

pdfReactor.setConformance(PDFreactor.CONFORMANCE_PDFA);

I have seen that pdfreactor5 generates pdf not fully compatible with the pdf-a specs (transparency and others). 我已经看到pdfreactor5生成的pdf与pdf-a规范不完全兼容(透明度和其他规范)。

Upgrade to pdfreactor6 . 升级到pdfreactor6

After the upgrade my pdf was validated against http://www.pdf-tools.com/pdf/validate-pdfa-online.aspx 升级后,我的pdf已针对http://www.pdf-tools.com/pdf/validate-pdfa-online.aspx进行了验证

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

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