New Forum | Previous | Next | (P-PDF) Developers
Topic: File damaged after editing
Conf: (P-PDF) Developers, Msg: 53318
Date: 5/29/2002 04:58 PM
I have a non-optimized PDF with a few pieces of text that I want to change. I basically open the PDF in ASCII mode using PERL, replace the text, then save the file again. All works well if I replace the text with the same number of characters. If I add or subtract 1 or more characters I get "file is damaged but is being repaired" error message. Since this is done programmatically I won't have the ability to open and save every PDF to fix them.
What is the cause of this and how do I correct it? Are there better ways to do this sort of procedure?
Thanks for your help.