Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Request for PDF/A-3b Full Compliance Support in Flutter PDF Library #2348

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
axelpichon opened this issue May 4, 2025 · 2 comments
Open
Labels
open Open pdf PDF component

Comments

@axelpichon
Copy link

Use case

Hello Syncfusion Support Team,

I hope you’re doing well. I am building a client-side Flutter application using syncfusion_flutter_pdf: ^29.1.40 to produce fully compliant PDF/A-3b invoices (Factur-X) with an embedded XML attachment. So far, I am:
Generating a base PDF via my existing template service.

Re-loading it into PdfDocument(conformanceLevel: PdfConformanceLevel.a3b).
Adding the Factur-X XML as a PdfAttachment (relationship alternative).
When I validate the result with VeraPDF / Adobe Preflight, I still get errors for:
Missing OutputIntent (no ICC profile embedded, so /OutputIntent is not present).
Missing XMP metadata stream (/Metadata key not found, no XMP schemas like PDF/A ID, Dublin Core, etc.).

I’d like to avoid any server-side or third-party conversion step (e.g. Ghostscript) and rely purely on the Flutter SDK to produce a valid PDF/A-3b.

Could you please advise:
Which Syncfusion Flutter PDF APIs or properties allow embedding an ICC output intent (e.g. sRGB profile)?
How to inject the required XMP metadata (basic PDF/A schemas) into the document?
If these features are not yet exposed in the Flutter package, is there a planned timeline for adding full OutputIntent and XMP support?
Any recommended client-side workaround using only Syncfusion libraries?

Thank you for your help. Having native support for OutputIntent and XMP metadata would greatly simplify client-side PDF/A-3b generation without external dependencies.

Best regards,

Proposal

Add native support in syncfusion_flutter_pdf for full PDF/A-3b compliance without external tools:

  1. Embed an ICC OutputIntent

    • Expose a new API (e.g. PdfDocument.addOutputIntent or PdfOutputIntent class)
    • Allow passing a byte array of an ICC profile (sRGB, etc.) and associated metadata
    • Automatically write the /OutputIntent dictionary into the PDF catalog
  2. Inject XMP metadata stream

    • Provide a DocumentInformation.xmpMetadata property returning an XmpMetadata wrapper
    • Expose common schemas (BasicSchema, DublinCoreSchema, PDFSchema, pdfaid:part/conformance)
    • Automatically add a /Metadata entry in the document catalog pointing to the embedded XMP
  3. Ensure the generated PDF/A-3b passes preflight without Ghostscript or server-side conversion

    • Unit tests and sample code demonstrating a single-step Flutter-only workflow
@LavanyaGowtham2021 LavanyaGowtham2021 added pdf PDF component open Open labels May 5, 2025
@irfanajaffer
Copy link

Hi Axelpichon,

Thank you for reaching out to Syncfusion support.
We understand that you're building a client-side Flutter application using the syncfusion_flutter_pdf package to generate fully compliant PDF/A-3b invoices (Factur-X/ZUGFeRD), including the embedding of XML attachments. You've mentioned that the resulting document still fails PDF/A-3b validation due to missing OutputIntent (ICC profile) and XMP metadata—which are essential for conformance.
At this time, the Syncfusion Flutter PDF library does not support embedding ICC-based OutputIntent or injecting XMP metadata, both of which are necessary to achieve full PDF/A-3b or ZUGFeRD (Factur-X) compliance. Unfortunately, we currently do not have any workaround to achieve this purely on the client side using Flutter.
However, we recognize the value of this feature and have logged the following items as feature requests:

Add support to provide ZUGFeRD conformance in the Flutter PDF
Add support to convert existing PDF to PDF/A conformance document

These enhancements are currently not scheduled for immediate development, but we typically plan features for inclusion in one of our quarterly releases. We will keep track of demand and feasibility, and prioritize accordingly.

Regards,
Irfana J.

@axelpichon
Copy link
Author

Thank you very much for your response, Irfana.
I hope this feature will be available by September 2027.

Best regards,

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
open Open pdf PDF component
Projects
None yet
Development

No branches or pull requests

3 participants