Page is damaged

Page is damaged

Forum member · Apr 11, 2006
Can you please try. http://www.aspdev.esh.dk and check all items, and click on "Beskrivelser" i got a fail, but, if i click 90-95% of them, it works.

Re: Page is damaged

Forum member · Apr 11, 2006
Can it be somthing abount max numbers of pages, is there any limits?

Re: Page is damaged

Support · Apr 11, 2006
Hello, There is no limit to the size of pdf document and the number of pages it can have. Can you please explain us in more detail, what you are trying to do and what exact stack trace or error you are getting? Also when we tried clicking on the link you posted in the earlier thread, it asks for username and password. Thanks, ceTe Software Support Team

Re: Page is damaged

Forum member · Apr 11, 2006
The site should be public now.

Re: Page is damaged

Support · Apr 11, 2006
Hello, This is most likely happening because there is some HTML being output or appended to the content stream after the PDF has been created. Different versions of acrobat respond differently to this. The easiest solution is to add a Response.End() directly after the Document's DrawToWeb method. Also, are you trying to merge multiple PDF documents? If yes, one of the PDF you are trying to merge might be corrupt. Try narrowing down by checking individual checkboxes and finding which checkbox causes the error to be thrown. Thanks, ceTe Software Support Team

Re: Page is damaged

Forum member · Apr 11, 2006
Response.End() Did the trick, Thanks

Re: Page is damaged

Forum member · Apr 21, 2006
Thanks. Worked for me too. Although your Console example has the same problem.

Re: Page is damaged

Forum member · Apr 25, 2006
I recently upgraded to DynamicPDF V4.0 and we get a similar error: "There was an error opening this document. The file is damaged and could not be repaired" There have been no changes to the code and it works fine on the previous version of DynamicPDF. We have the "Response.End();" line of code directly after the PDF.DrawToWeb call. Any ideas???

Re: Page is damaged

Support · Apr 25, 2006
Hello, It sounds like this could be an issue with the HTTP headers. Use a trace tool like ieHTTPHeaders to view the headers when the PDF is being created. Send these headers over to [^a|MAILTO:support@cete.com|support^]. We can take a look at them to see if we can find any problem. Make sure to use the pages that you are currently having trouble with. Thanks, ceTe Software Support Team

Re: Page is damaged

Forum member · Apr 25, 2006
I have noticed that the headers are slightly different from our live site which works, and my test site which doesn't work. I have emailed support the headers for the problematic page. Thanks again