This works perfectly now - for the text fields - but fields containing 
images still don't show. Nearly there though - any ideas on what might be 
causing the images to stay hidden?

Cheers,

Jamie.

[EMAIL PROTECTED] wrote on 28/09/2007 
17:56:18:

> I suspect that the XML binding is not creating the appearances. You'll
> have to call AcroFields.regenerateField() for each field to recreate the
> appearances.
> 
> Paulo 
> 
> > -----Original Message-----
> > From: [EMAIL PROTECTED] 
> > [mailto:[EMAIL PROTECTED] On 
> > Behalf Of Jamie Badman
> > Sent: Friday, September 28, 2007 5:43 PM
> > To: Post all your questions about iText here
> > Subject: Re: [iText-questions] Concatenating Form Based V8 Documents
> > 
> > 
> > Cheers Paulo - here's what I'm trying now: 
> > 
> >         try{ 
> >                     // Now flatten the PDF 
> >                     flattenedDest = "flat_" + destination; 
> >                     PdfReader reader = new PdfReader(pdfDir + 
> > "/" + destination); 
> >                     PdfStamper stamper = new 
> > PdfStamper(reader, new FileOutputStream(pdfDir + "/" + 
> > flattenedDest)); 
> >                     stamper.setFormFlattening(true); 
> >                     stamper.close(); 
> >         } catch (Exception e){ 
> >                 System.out.println("Error flattening PDF"); 
> >         } 
> > 
> > But this doesn't seem to do the trick - do I need to do more 
> > than call setFormFlattening(true) ? 
> > 
> > Thanks, 
> > 
> > Jamie. 
> > 
> > --------------------------------------------
> > Jamie Badman
> > Deutsche Bank
> > Information Enterprise Services
> > Cross Platform Engineering
> > 
> > Office: +44 207 5457280 
> > 
> > [EMAIL PROTECTED] wrote on 
> > 28/09/2007 17:05:26:
> > 
> > > Use PdfStamper first to flatten the docs, this will remove 
> > the fields,
> > > leaving the field appearances, and will also remove the 
> > XFA. Then, use
> > > PdfCopy to concatenate the PDFs.
> > > 
> > > Paulo 
> > > 
> > > > -----Original Message-----
> > > > From: [EMAIL PROTECTED] 
> > > > [mailto:[EMAIL PROTECTED] On 
> > > > Behalf Of Jamie Badman
> > > > Sent: Friday, September 28, 2007 4:57 PM
> > > > To: [email protected]
> > > > Subject: [iText-questions] Concatenating Form Based V8 Documents
> > > > 
> > > > 
> > > > Hi, 
> > > > 
> > > > Wonder if someone can help... 
> > > > 
> > > > I'm generating some individual PDF pages using Adobe 
> > > > LiveCycle DS by creating template PDF files using LiveCycle 
> > > > Designer and then binding an XML dataset to the document to 
> > > > create a data-populated PDF. 
> > > > 
> > > > I then want to concatenate the pages together - but when I 
> > > > try to do this using iText, only static text shows on each 
> > > > page, except for the final page. 
> > > > 
> > > > I try merging the pages by hand using Acrobat and I get an 
> > > > error that says "Adobe XML Forms Cannot be Merged". When I 
> > > > use Acrobat to assemble the files into a PDF package, 
> > it's all good. 
> > > > 
> > > > So I'm guessing that iText is having the same problem - that 
> > > > it's trying to do a basic merging of the files but in fact I 
> > > > need it to assemble a package... 
> > > > 
> > > > Can iText do this? 
> > > > 
> > > > I'm currently using pdfCopyFields to merge the files. 
> > > > 
> > > > Incidentally, when I look at the version of the resulting PDF 
> > > > file that iText creates, it's PDF Version 1.4 (Acrobat V5). 
> > > > The source files are PDF Version 1.7 (Acrobat V8). I tried 
> > > > using the 'Version' parameter with pdfCopyFields, setting it 
> > > > to '8' but it gets ignored - guess I'm doing that wrong! 
> > > > 
> > > > Is it possible to somehow 'flatten' the individual PDF files 
> > > > so that they are no longer form-based PDF's? I really don't 
> > > > need them to be, once they have the data inside. If I could 
> > > > do this, I think the problem is solved. 
> > > > 
> > > > Anyway, to summarize... is iText able to accomplish the 
> > > > concatenation I'm attempting? If so, how... if not then does 
> > > > anyone have any thoughts on what other product I might try? 
> > > > 
> > > > Thanks for your time and patience ;-) 
> > > > 
> > > > Cheers, 
> > > > 
> > > > Jamie. 
> 
> 
> Aviso Legal:
> 
> Esta mensagem é destinada exclusivamente ao destinatário. Pode 
> conter informação confidencial ou legalmente protegida. A incorrecta
> transmissão desta mensagem não significa a perca de 
> confidencialidade. Se esta mensagem for recebida por engano, por 
> favor envie-a de volta para o remetente e apague-a do seu sistema de
> imediato. É proibido a qualquer pessoa que não o destinatário de 
> usar, revelar ou distribuir qualquer parte desta mensagem. 
> 
> 
> 
> Disclaimer:
> 
> This message is destined exclusively to the intended receiver. It 
> may contain confidential or legally protected information. The 
> incorrect transmission of this message does not mean the loss of its
> confidentiality. If this message is received by mistake, please send
> it back to the sender and delete it from your system immediately. It
> is forbidden to any person who is not the intended receiver to use, 
> distribute or copy any part of this message.
> 
> 
> 
> 
-------------------------------------------------------------------------
> This SF.net email is sponsored by: Microsoft
> Defy all challenges. Microsoft(R) Visual Studio 2005.
> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
> _______________________________________________
> 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/


---

This e-mail may contain confidential and/or privileged information. If you are 
not the intended recipient (or have received this e-mail in error) please 
notify the sender immediately and delete this e-mail. Any unauthorized copying, 
disclosure or distribution of the material in this e-mail is strictly forbidden.

Please refer to http://www.db.com/en/content/eu_disclosures.htm for additional 
EU corporate and regulatory disclosures.
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
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/

Reply via email to