Hi,
Thanks for that! This was a happy surprise. I have one question though: if I use the new version in my test prorgram (referred to in the third message of this thread), the output file is marked as PDF/A 1B if I request PDF/A 1A as output format. I am afraid that would still not be good enough for my customers, because they need to follow a guideline by the Dutch government, that specifies PDF/A 1A as the minimum acceptable compliance level for archiving.
When experimenting around a bit, I found that one line of code appears to make the difference:
format = Aspose.Pdf.PdfFormat.PDF_A_1A…
pdfdoc.RemoveMetadata()
pdfdoc.IgnoreCorruptedObjects = True
pdfdoc.Convert(msLog, format, erroraction)
pdfdoc.Save(sTargetFile)
When I add a call to RemoveMetadata() to the existing test code, the output format is PDF/A 1A as requested. Is this the correct way to ensure the desired output format, or is there another option that I can use to guarantee the requested output format to be applied?
Please note:
- Test program and document are still available for download at:
http://support.decos.nl/berend/AsposeTest-20120919.zip
(zip contains old Aspose.Pdf dll and does not have the RemoveMetaData call)
- I am aware that Aspose.Words now supports direct PDF/A 1A output. This is intentionally not used in the test program because we want to test a generic fallback for all input document formats.
Thanks and best regards,
Berend