Open
Description
I'm opening this issue to track work to ensure PDF/A-compliant can be generated using fpdf2
.
Wikipedia page about PDF/A: https://en.wikipedia.org/wiki/PDF/A
PDF/A is an ISO-standardized version of the Portable Document Format (PDF) specialized for use in the archiving and long-term preservation of electronic documents.
My current idea would to provide a get_pdfa_compliance()
method
that would return None
or 'PDF/A-1'
depending on several criteria:
- document language is set
- all images have alternate descriptions
- no encryption is used
- document has as an author, document title, creation data, and source program name in XMP metadata
not pdf.allow_images_transparency
- the XMP metadata specifies the PDF/A level:
<rdf:Description rdf:about=""
xmlns:pdfaExtension="http://www.aiim.org/pdfa/ns/extension/"
xmlns:pdfaSchema="http://www.aiim.org/pdfa/ns/schema#"
xmlns:pdfaProperty="http://www.aiim.org/pdfa/ns/property#"
xmlns:pdfaType="http://www.aiim.org/pdfa/ns/type#"
xmlns:pdfaField="http://www.aiim.org/pdfa/ns/field#" >
...
<rdf:Description rdf:about="" xmlns:pdfaid="http://www.aiim.org/pdfa/ns/id/">
<pdfaid:part>1</pdfaid:part>
<pdfaid:conformance>A</pdfaid:conformance>
</rdf:Description>
Feedback & all contributions are welcome on this subject