  | Mailing List | | Home | | Forum Home | | JBoss - Java Application Server | | Tomcat - JSP/Servlet container | | Struts - A MVC web framework | | iText - An open source PDF Java Library | | JDOM - JDOM XML Parser | | JSP - A mailing list about Java Server Pages specification and reference | | J2EE - A mailing list for Java(tm) 2 Platform, Enterprise Edition | | J2EE Pattern - An interest list for Sun Java Center J2EE Pattern Catalog | | Servlet - A mailing list for discussion about Sun Microsystem's Java Servlet API Technology | |
Struts & Hibernate
|
|
|
  | | | -none- | -none- 2007-10-01 - By Paulo Soares
Back Only text is supported (for now). Can you send me privately one of those PDF?
Paulo
> -- --Original Message-- -- > From: itext-questions-bounces@(protected) > [mailto:itext-questions-bounces@(protected)] On > Behalf Of Jamie Badman > Sent: Monday, October 01, 2007 10:54 AM > To: Post all your questions about iText here > Subject: Re: [iText-questions] Concatenating Form Based V8 Documents > > > Yes. The single PDF page is generated fine - the image > displays etc - but regen+flatten loses the image > unfortunately. The image is base-64 (See http://ase-64.ora-code.com) encoded in the dataset > and is bound to an image field in the document using > LiveCycle Designer. I'm trying to use iText to perform the > concatenation of a series of generated pages but it looks > like the images get lost during the flatten process somehow. > > Jamie. > > -- ---- ---- ---- ---- ---- ---- ---- ------ > Jamie Badman > Deutsche Bank > Information Enterprise Services > Cross Platform Engineering > > Office: +44 207 5457280 > > itext-questions-bounces@(protected) wrote on > 01/10/2007 10:50:05: > > > You have an image in the dataset? > > > > Paulo > > > > > -- --Original Message-- -- > > > From: itext-questions-bounces@(protected) > > > [mailto:itext-questions-bounces@(protected)] On > > > Behalf Of Jamie Badman > > > Sent: Monday, October 01, 2007 10:14 AM > > > To: Post all your questions about iText here > > > Subject: Re: [iText-questions] Concatenating Form Based > V8 Documents > > > > > > > > > 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. > > > > > > itext-questions-bounces@(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: itext-questions-bounces@(protected) > > > > > [mailto:itext-questions-bounces@(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 > > > > > > > > > > itext-questions-bounces@(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: itext-questions-bounces@(protected) > > > > > > > [mailto:itext-questions-bounces@(protected)] On > > > > > > > Behalf Of Jamie Badman > > > > > > > Sent: Friday, September 28, 2007 4:57 PM > > > > > > > To: itext-questions@(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 iText-questions@(protected) https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://itext.ugent.be/itext-in-action/
|
|
 |