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