I would like to signal a problem raised from one of our partners (a print service provider). We are providing him a large number of PDF files generated from a Word doc template. Recently, he had to do some further modifications to these pdf files, but when he tried to open them, the software he is using complained about the pdf files being corrupted.
We’ve started doing some investigations, but were not able to found any errors using common pdf viewers.
After some further research, we’ve tested the generated documents with a thirdy part tools specifically built to check and repair pdf files, and it actually reports some errors. This happens even when starting from a very simple Word files, and saving it as pdf.
Here is the code to convert the simple attached docx file
string srcFile = @“MySample.docx” ;
string destFile = @“MySample.pdf” ;
var doc = new Document(srcFile) ;
When submitting the resulting file to this verifier, two errors are listed
- “the First key is required but missing” (while analyzing outlines)
- “the file is corrupt” (while analyzing pages)
I don’t know if I can post here the name of the verifier and the software used by our customer. Let me know if you need the name of these products.
PS. currenly using Aspose.Words.dll v11.10