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