Op 23/03/2011 18:30, Jeff Sodeman schreef: > A sample of one of the forms after having some fields filled in by > iTextSharp is at: http://spark9.com/example.pdf OK, but can you also provide the original PDF?
I downloaded your example.pdf, opened it in a text editor, and the first thing I saw was that it ended with: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head><link href="App_Themes/arc/arc.css" type="text/css" rel="stylesheet" /><link href="App_Themes/arc/sdn.css" type="text/css" rel="stylesheet" /><link href="App_Themes/arc/thickbox.css" type="text/css" rel="stylesheet" /><title> Untitled Page </title></head> <body> <form name="form1" method="post" action="pj_getpdf.aspx?sample=100" id="form1"> <div> <input type="hidden" name="__VIEWSTATE" id="__VIEWSTATE" value="/wEPDwUJNzgzNDMwNTMzZGTf1BCLNMEH+l0VW7sAsqb9bsYY/g==" /> </div> <div> </div> </form> </body> </html> In other words: your application has been adding HTML to the PDF file. Please make sure this doesn't happen. Then I looked at the occurences of %%EOF. The final %%EOF was added by iText(Sharp). Normally, if you remove all the bytes after the previous %%EOF, you should end up with the original file. When I did this with your file, I ended up with a document that was NOT reader enabled. Are you sure you didn't remove the usage rights? Also: which iText(Sharp) version are you using? I don't think you're using the latest version. ------------------------------------------------------------------------------ Enable your software for Intel(R) Active Management Technology to meet the growing manageability and security demands of your customers. Businesses are taking advantage of Intel(R) vPro (TM) technology - will your software be a part of the solution? Download the Intel(R) Manageability Checker today! http://p.sf.net/sfu/intel-dev2devmar _______________________________________________ iText-questions mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/itext-questions iText(R) is a registered trademark of 1T3XT BVBA. Many questions posted to this list can (and will) be answered with a reference to the iText book: http://www.itextpdf.com/book/ Please check the keywords list before you ask for examples: http://itextpdf.com/themes/keywords.php
