PDF to PDF/A-2 conversion leads to "PDF-Syntax" Error

Hello!

I want to convert input.pdf (56.7 KB) to pdf/a:

Document document = new Document(new ByteArrayInputStream(input.pdf));

PdfFormatConversionOptions options = new PdfFormatConversionOptions(PdfFormat.PDF_A_2B, ConvertErrorAction.Delete);
document.convert(options);

document.save(“output.pdf”);

The document is converted without any problems output.pdf (57.9 KB), but it has no pdf/a conformance and Adobe Preflight shows a “PDF-Syntax” Error: screenshot.png (19.5 KB)

PAC 2021 - PDF Accessibility Checker show also a syntax error: Error while parsing the PDF Document (name object expected (56029))

How can this problem be solved?

Kind regards

@dvtdaten

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): PDFJAVA-44603

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.