Skip to content

v0.0.21

Pre-release
Pre-release

Choose a tag to compare

@gulien gulien released this 26 Nov 07:36

Important

This is still very much a work in progress, so expect breaking changes.

Fixes

  • PDF/A remediation adds /DefaultCMYK only to the pages that paint DeviceCMYK. Once it added an sRGB output intent, remediation put a 28 KB CMYK profile on every page, including pages that paint only RGB. A one-page Chromium invoice remediated to PDF/A-3b drops from 48,203 to 19,608 bytes, and veraPDF still passes it (#8).
  • Embedded files are written under FlateDecode when that makes them smaller. This covers Writer.AddAttachment, Writer.AddAssociatedFile and the invoice XML that Writer.RemediateFacturX embeds. /Params /Size keeps the decoded length. The EN 16931 sample invoice drops from 3,814 to 1,052 bytes (#8).