Problems converting PNG to PDFA

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.
1 Like

@JohnnyP
We have opened the following new ticket(s) in our internal issue tracking system and will deliver their fixes according to the terms mentioned in Free Support Policies.

Issue ID(s): CONVERSIONJAVA-2428

You can obtain Paid Support Services if you need support on a priority basis, along with the direct access to our Paid Support management team.

@JohnnyP this issue fixed in the GroupDocs.Conversion for Java 24.9.

1 Like