Convert PDF to PDF/A

Hi there,

We’re currently evaluating conversion from PDF to PDF/A with your product.

I tried multiple cases. My input is a simple Wikipedia article that has been saved as PDF. When trying to convert via Aspose.PDF, I always get a result (no exceptions or anything).

However, when checking the resulting PDF (PDF Tools AG) for PDF/A validity, I only get errors:

Validating file pdfa1b_1.pdf for conformance level pdfa-1b

The value of the key N is 4 but must be 3.

A device-specific color space (DeviceRGB) without an appropriate output intent is used.

The document does not conform to the requested standard.

The document doesn’t conform to the PDF reference (missing required entries, wrong value types, etc.).

The document contains device-specific color spaces.

Done.

I attached my input and one output file. I would expect Aspose to throw exceptions in case conversion did not work. Am I doing something wrong? - Or am I supposed to parse the log file that is written?

Here is the code snippet I’m using:

Document pdfDocument = new Document(is);
pdfDocument.validate(los, PdfFormat.PDF_A_1B);
pdfDocument.convert(los, PdfFormat.PDF_A_1B, ConvertErrorAction.Delete);
pdfDocument.save(baos);

“los” and “baos” are OutputStreams, “is” is an InputStream.

Thanks,
Tim

Hi Tim,


Thanks for contacting support.

We are testing this scenario in our environment and will get back to you soon. We are sorry for this inconvenience.

Hi Tim,


Thanks for your patience.

I have tested the scenario using Aspose.Pdf for Java 10.1.0 in Eclipse Juno application running over Windows 7 (x64) with JDK 1.7 and as per my observations, when performing pre-flight validation against PDF/A_1b standard over PDF file, the test is properly passing. Please note that Aspose.Pdf for .NET is based on Acrobat PDF specifications and it confirms the PDF/A validation standards of Acrobat. I am afraid we might not be able to make our API compatible with any third party applications/utilities as they have their own standards and it might not be possible to support all open standards.

For your reference, I have also attached the resultant PDF/A_1b file and screenshot showing Acrobat PreFlight validation results.