Hello!
Example-PNG-Image.png (13.0 . KB)
We have some problems converting files to valid PDF/A-1b with the groupdocs apis. We use veraPDF (https://verapdf.org/) for PDFA validation.
This applies to formats like docx, xlsx, png, eml. PDF to PDF/A-1b works however.
We are using Groupdocs.Conversion 24.5.
Here’s the conversion code (in kotlin):
val pdfOptions = PdfOptions()
pdfOptions.pdfFormat = PdfFormats.PdfA_1B
val convertOptions = PdfConvertOptions()
convertOptions.format = PdfFileType.Pdf
convertOptions.pdfOptions = pdfOptions
val byteArrayInputStream = { ByteArrayInputStream(documentFromUrl) }
val converter = Converter(byteArrayInputStream)
val pdfOutputStream = ByteArrayOutputStream()
val pdf = { pdfOutputStream }
converter.convert(pdf, convertOptions)
Here’s the validation error we get from veraPDF:
The value of Producer entry from the document information dictionary, <span>if</span> present, and its analogous XMP property pdf:Producer shall be equivalent.
The value of Creator entry from the document information dictionary, <span>if</span> present, and its analogous XMP property xmp:CreatorTool shall be equivalent.
A Group object with an S key with a value of Transparency shall not be included in a form XObject. A Group object with an S key with a value of Transparency shall not be included in a page dictionary
The PDF/A version and conformance level of a file shall be specified using the PDF/A Identification extension schema.