If you don't rename the fields it doesn't make sense not to flatten. If you want to keep the fields they must be renamed and after stamping use PdfCopyFields to concatenate them. The problem you have is not renaming but PdfCopy.
----- Original Message ----- From: "Raul Carlin" <[EMAIL PROTECTED]> To: "Paulo Soares" <[EMAIL PROTECTED]> Cc: <[email protected]> Sent: Monday, November 07, 2005 3:54 PM Subject: Re: [iText-questions] Missing fields after Filling Raul CarlinThis is the method that I use every page added... protected byte[] getPage(String templateFileName, PdfPageGenerator generator) throws IOException, DocumentException { PdfReader pdf = new PdfReader(PegasusUtility.getInputStream(templateFileName)); // PegasusUtility é uma classe utilitária, o método getInputStream retorna um InputStream de dentro // do JAR da aplicação. ByteArrayOutputStream baos = new ByteArrayOutputStream(); PdfStamper stamp = new PdfStamper(pdf, baos); AcroFields fields = stamp.getAcroFields(); generator.fillPage(fields); // Classe utilitária que preenche os campos de acordo com o layout passado. stamp.setFormFlattening(false); baos.flush(); stamp.close(); return baos.toByteArray(); } I've tried to rename the fields but it doesn't work... Paulo Soares wrote: How do you repeat the detail pages? -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Raul Carlin Sent: Monday, November 07, 2005 1:30 PM To: [email protected] Subject: [iText-questions] Missing fields after Filling Well, here is my situation... I have two different files, one is the front page and the othere its something like a detailed page that is repeated as necessary. The problem is, when I use PDFStamper - setFormFlattening(true), all the pages are correctly filled, but, when I use setFormFlattening(false), all the pages in the middle are not filled and the forms disapear, only the front page and the last page are correctly filled... Any ideas?????? Raul Carlin Java Developer Analyst DHL Brazil Information Services Av. Chucri Zaidan, 80 - 8th Floor Vila Cordeiro - São Paulo - SP Brazil, 04705-000 55 (11) 5042 5440 55 (11) 9898 2245 [EMAIL PROTECTED] ------------------------------------------------------- SF.Net email is sponsored by: Tame your development challenges with Apache's Geronimo App Server. Download it for free - -and be entered to win a 42" plasma tv or your very own Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php _______________________________________________ iText-questions mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/itext-questions -- Raul Carlin Java Developer Analyst DHL Brazil Information Services Av. Chucri Zaidan, 80 - 8th Floor Vila Cordeiro - São Paulo - SP Brazil, 04705-000 55 (11) 5042 5440 55 (11) 9898 2245 [EMAIL PROTECTED] ------------------------------------------------------- SF.Net email is sponsored by: Tame your development challenges with Apache's Geronimo App Server. Download it for free - -and be entered to win a 42" plasma tv or your very own Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php _______________________________________________ iText-questions mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/itext-questions ------------------------------------------------------- SF.Net email is sponsored by: Tame your development challenges with Apache's Geronimo App Server. Download it for free - -and be entered to win a 42" plasma tv or your very own Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php _______________________________________________ iText-questions mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/itext-questions
