Merge pull request #1456 from andreiaugustin/docs_pdfa_update

Added note to docs regarding PDF/A not supporting the standard AFM fonts
This commit is contained in:
Libor M 2023-07-13 12:28:24 +02:00 committed by GitHub
commit 4ec77ddc8c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -287,6 +287,8 @@ For PDF/A-2 and PDF/A-3, the `pdfVersion` needs to be set to at least `1.7` and
In order to verify the generated document for PDF/A and its subsets conformance, veraPDF is an excellent open source validator.
Please note that PDF/A requires fonts to be embedded, as such the standard fonts PDFKit comes with cannot be used because they are in AFM format, which only provides neccessary metrics, without the font data. You should use `registerFont()` and use embeddable fonts such as `ttf`.
### Adding content
Once you've created a `PDFDocument` instance, you can add content to the