Igor Vernelen wrote: > Hi, > > We use iText to fill out formfields in PDF-documents (kind of > mailmerge). However after using the formflattening option the generated > pdf-document does no longer begin with %PDF <version number>. This gives > a problem for some users (seems to be Adobe Reader 7 related ?) ... > > How can we use the formflattening an still have correct PDF-documents > (i.e. containing %PDF <version> in the beginning of the document) ?
I think there's something else going on here, because PdfStamper usually produces valid PDF files starting with %PDF. A first check: are you sure you are closing the PdfStamper object? Because if you forget, the file will have 0 bytes. This being said: are you sure the program isn't throwing an exception before the stamper is closed? Have you looked at the file that is produced? If you're producing it in a web application, are you sure, it's not an HTML error page sent to you by the webserver because the app threw an exception? br, Bruno ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ iText-questions mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://itext.ugent.be/itext-in-action/
