pdf 3.13.0
SDKdartflutter
Platformandroidioswindowslinuxmacosweb
A pdf producer for Dart. It can create pdf files for both web or flutter.
Here are some classes to help you creating PDF/A compliant PDFs plus embedding Facturx invoices.
Rules
- Your PDF must only use embedded Fonts,
- For now you cannot use any Annotations in your PDF
- You must include a special Meta-XML, use below "PdfaRdf" and put the reuslting XML document into your documents metadata
- You must include a Colorprofile, use the below "PdfaColorProfile" and embed the contents of "sRGB2014.icc"
- Optionally attach an InvoiceXML using "PdfaFacturxRdf" and "PdfaAttachedFiles"
Example
pw.Document pdf = pw.Document(
...
metadata: PdfaRdf(
...
invoiceRdf: PdfaFacturxRdf().create()
).create(),
);
PdfaColorProfile(
pdf.document,
File('sRGB2014.icc').readAsBytesSync(),
);
PdfaAttachedFiles(
pdf.document,
[
PdfaAttachedFile(
name: 'factur-x.xml',
data: '<MyInvoiceXmlString></MyInvoiceXmlString>',
AFRelationship: '/Alternative',
subType: '/text/xml',
)
],
);
Validating
https://demo.verapdf.org https://avepdf.com/pdfa-validation https://www.mustangproject.org https://services.fnfe-mpe.org/