ZUGFeRDVisualizer.toPDF(): generate PDF/A-3b.

PDF/A-1b doesn't support embedded files, but when converting e.g. an XRechnung with an
attached document, the visualizer tries (and fails) to attach it to the generated PDF.
This commit is contained in:
Matthias Kilian
2024-06-27 13:19:46 +02:00
parent 53391eaf13
commit 3ca078a10c

View File

@@ -332,7 +332,7 @@ public class ZUGFeRDVisualizer {
FOUserAgent userAgent = fopFactory.newFOUserAgent();
userAgent.getRendererOptions().put("pdf-a-mode", "PDF/A-1b");
userAgent.getRendererOptions().put("pdf-a-mode", "PDF/A-3b");
// Step 2: Set up output stream.
// Note: Using BufferedOutputStream for performance reasons (helpful with FileOutputStreams).