We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Set flag `NeedAppearances` to false after flattening and conversion to PDFA-1b

I have a PDF document which had an Acroform inside it. This document has the flag NeedAppearances set to true. When I convert this document to PDFA-1b format, then the document is invalid.


I use https://www.pdf-online.com/osa/validate.aspx as tool to validate the PDF document. The error message is:

Validating file “converted_file.pdf” for conformance level pdfa-1b
The value of the key NeedAppearances is True but must be False.
The document does not conform to the requested standard.
The document contains annotations or form fields with ambigous or without appropriate appearances.

Is there a way to set the flag NeedAppearances to false?

My test code:

PdfFormatConversionOptions options = new PdfFormatConversionOptions(“conversion-log.xml”, PdfFormat.PDF_A_1B, ConvertErrorAction.Delete);
Document pdf = new Document(“source_document.pdf”);
pdf.flatten();
pdf.convert(options);
pdf.save(“converted_document.pdf”);


Hi There,


Thanks for contacting support.

I have tested the scenario of PDF to PDF/A_1b and as per my observations, the resultant file is PDF/A_1b compliant. During my testing with Adobe Acrobat pre-flight tool, I am able to notice that PDF compliance check is properly being passed. I have attached the PDF compliance report for your reference.

Please note our output is based on PDF specifications from Adobe so please try using Adobe Acrobat for PDF/A compliance verification.

We are sorry for the inconvenience.

Best Regards