Use Flate Decode for attachments

This commit is contained in:
Timo Jacobs
2026-02-11 14:07:14 +01:00
parent 720fbd34d4
commit 96d5b0899e

View File

@@ -392,7 +392,7 @@ public class ZUGFeRDExporterFromA3 extends XRExporter implements IZUGFeRDExporte
dict.setString("Desc", description); dict.setString("Desc", description);
ByteArrayInputStream fakeFile = new ByteArrayInputStream(data); ByteArrayInputStream fakeFile = new ByteArrayInputStream(data);
PDEmbeddedFile ef = new PDEmbeddedFile(doc, fakeFile); PDEmbeddedFile ef = new PDEmbeddedFile(doc, fakeFile, COSName.FLATE_DECODE);
// ef.addCompression(); // ef.addCompression();
ef.setSubtype(subType); ef.setSubtype(subType);
ef.setSize(data.length); ef.setSize(data.length);