Cannot open generated PDF doc in older readers

Cannot open generated PDF doc in older readers

Forum member · Sep 8, 2008
The PDF document I'm generating cannot be opened in version 7 of Adobe Reader (or older). Opening in version 8 works fine. Error message is "There was an error opening this document. The file is damaged and could not be repaired". Opening the PDF in Adobe Illustrator yields messages about a missing font and that different color formats are used. What could be the cause of this?

Re: Cannot open generated PDF doc in older readers

Support · Sep 8, 2008
Hello, This is most probably because of some stray HTML getting outputted along with the PDF stream. Please try adding the following line of code right after the DrawToWeb method of the document and it will likely solve your problem. Visible = false; Thanks, ceTe Software Support Team

Re: Cannot open generated PDF doc in older readers

Forum member · Sep 8, 2008
I guess I was a bit unclear. The PDF shows up fine in the browser. I save it to disc as a file and that file cannot be opened in version 7.

Re: Cannot open generated PDF doc in older readers

Support · Sep 8, 2008
Hello, Can you please send the PDF document that you are saving to disk to our [^a|mailto:support@cete.com|Support Team^] and they can take a look at it and see what could be causing this error message? Thanks, ceTe Software Support Team