Hello,
I have a form set up to fill in all fields of a PDF. When I submit it on a Mac it works fine, filled in and all. But when I do it on a PC, I get and error "This file is damaged and could not be repaired" from the adobe reader.
Anyone have this problem? Solutions?
Thanks
Jason
jamster@redken.com
Ducument Damaged
Re: Ducument Damaged
Support · Dec 9, 2005Hello Jason,
This is most likely happening because there is some stray HTML being output or appeneded 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 or by removing the HTML tags that are causing this.
Thanks
ceTe Software Support Team
Re: Ducument Damaged
Forum member · Jul 1, 2008How to remove the extra html tags. All the html is being built in the background I guess. I am using the table object.
Re: Ducument Damaged
Support · Jul 1, 2008Hello,
It is not possible to remove the extra html tags using our product. You can add the following line of code right after the DrawToWeb method to stop the stray HTML getting added.
Visible = false;
Thanks,
ceTe Software Support Team.
Re: Ducument Damaged
Forum member · Sep 17, 2008Hi
I am having this problem, and the "response.end()" or "visiblle=true" is not working for me.
If I write the pdf to a file, it works fine, but my drawtoweb is consistantly giving me this problem.
I am merging a couple of PDF's
This works just fine :
MyDocument.Draw("E:\Sites\Atacand\wwwroot\pdf\MergedPDFs.pdf")
Response.Redirect("/pdf/MergedPDFs.pdf")
But we will have issues with multiple people hitting the site at the same time
This does not work - I get the document damaged error every time:
MyDocument.DrawToWeb(Me, False)
Response.End()
Any ideas?
Re: Ducument Damaged
Support · Sep 17, 2008Hello,
We will need to take a look at the headers from the page calling the PDF. We would recommend using ieHTTPHeaders
tool which allows you to capture all http headers. Run your example once again and send us the headers it returns.
Also can you please send over the saved PDF document to our [^a|mailto:support@cete.com|Support Team^] so that they can look into it further?
Thanks,
ceTe Software Support Team.