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:
@@ -332,7 +332,7 @@ public class ZUGFeRDVisualizer {
|
|||||||
|
|
||||||
FOUserAgent userAgent = fopFactory.newFOUserAgent();
|
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.
|
// Step 2: Set up output stream.
|
||||||
// Note: Using BufferedOutputStream for performance reasons (helpful with FileOutputStreams).
|
// Note: Using BufferedOutputStream for performance reasons (helpful with FileOutputStreams).
|
||||||
|
|||||||
Reference in New Issue
Block a user