Hi. I just begin to use PdfStamper. I'm not sure if it's possible to merge 2 PDFs. What I want is append a PDF to another PDF.
I found that when I stamp a page from a PDF to another, it doesn't create a new page. Imagine a page from PDF1 ends in the middle of the page, and we want to append a page from PDF2 there. the result should be more than one page, but it doesn't create automatically. Is it possible with PdfStamper? How could I do that? How can I know the point(x,y) when stamper begins to stamp? PdfContentByte under = stamp.getUnderContent(pageNumber); Thanks in advance, Ana El lun, 12-01-2004 a las 17:11, Gao, Ping escribió: > Thanks a lot, Paulo! I will do that! > -----Original Message----- > From: Paulo Soares [mailto:[EMAIL PROTECTED] > Sent: Monday, January 12, 2004 10:09 AM > To: Gao, Ping; tom smith; > [EMAIL PROTECTED] > Subject: RE: stamped.java example /Merging PDF files > > > > There no automated ways to find the boxes. You need to open > the pdf in full Acrobat and add the form fields on top of the > boxes. > > Best Regards, > > Paulo Soares > > -----Original Message----- > > From: Gao, Ping [SMTP:[EMAIL PROTECTED] > > Sent: Monday, January 12, 2004 15:06 > > To: Paulo Soares; tom smith; > [EMAIL PROTECTED] > > Subject: RE: stamped.java example /Merging PDF > files > > Does anyone know how to locate the specific locations > of PDF forms (Note: the pdf form looks like a form, > but it doesn’t have form fields when I was using > PdfReader.getAcroFields().getFields() and only returns > an empty HashMap). Are there any other ways to get > those locations other than manually measure the > printed forms in this situation? ;=) > > I appreciated any help anyone could offer! > > > > Ping > > -----Original Message----- > From: Paulo Soares > [mailto:[EMAIL PROTECTED] > Sent: Friday, January 09, 2004 4:57 AM > To: Gao, Ping; tom smith; > [EMAIL PROTECTED] > Subject: RE: stamped.java example /Merging PDF > files > > > > > > -----Original Message----- > > From: Gao, Ping > [SMTP:[EMAIL PROTECTED] > > Sent: Thursday, January 08, 2004 23:56 > > To: Paulo Soares; tom smith; > [EMAIL PROTECTED] > > Subject: RE: stamped.java example > /Merging PDF files > > Hello everyone, > > > > I'm learning the iText, and played with the > examples and very happy with what I saw. This > is what I am trying to do: > > Input an exist PDF file (with the forms can’t > be filled out by hand), and output a PDF file > which only has the forms pages from the input > file, and it either can't be saved after fill > in the form by hand or can't be modified after > is filled out and saved. Is this doable? > Please someone give me some hints or any > examples will be greatly appreciated. > > > > The questions I have regarding this problem > is: > > > > 1. In an exist PDF file, how do I know which > page has forms? > > PdfReader.getAcroFields(). The page numbers > are at AcroFields.Item.page. You'll need the > iText version at itextpdf.sf.net. > > 2. How can I change the permission or > something on an exist PDF file and change it > again when someone saves it? > > The permission decisions must be done before > opening the pdf. use setEncryption(). > > Best Regards, > > Paulo Soares > > Thank you very much! > > > > Ping > > -----Original Message----- > From: Paulo Soares > [<mailto:[EMAIL PROTECTED]>] > Sent: Thursday, January 08, 2004 6:13 > AM > To: tom smith; > [EMAIL PROTECTED] > Cc: Gao, Ping > Subject: RE: stamped.java example > /Merging PDF files > > > > > > -----Original Message----- > > From: tom smith > [SMTP:[EMAIL PROTECTED] > > Sent: Wednesday, January 07, 2004 > 18:49 > > To: Paulo Soares; > [EMAIL PROTECTED] > > Cc: [EMAIL PROTECTED] > > Subject: stamped.java example > /Merging PDF files > > I used the getUnderContent(pageNum) of > PdfStamper, and it worked on the ones > I had problem with text fields. But > still some of the check boxes don't > work, and I couldn't stamp on top of > the check boxes. Is that because of > the crop area? How can I get round it? > > You can't put content over a field > annotation with iText. The way to do > it is to read the pdf, flatten the > fields, read it again (with the fields > flattened) and stamp over it. > > Another question is when I try to read > an exist pdf file which has forms in > the end of the file. But the > DumpFields example says "This document > has no fields." Does anyone know why > this is and how to get around this? > > Does it really have field forms? > > Best Regards, > > Paulo Soares > > Thank you very much for any help! > > Tom > > > >From: "Paulo Soares" > > >To: "tom smith" , > > >CC: "Gao, Ping" > > >Subject: RE: [iText-questions] > stamped.java example /Merging PDF > files > > >Date: Tue, 6 Jan 2004 10:56:33 -0000 > > > > > >It works but there's more than meets > the eye. You may have a page with a > crop area and everything placed there > will not show. You may also have a > white area and trying to stamp > underneath it won't show anything; > stamp over the page in this case. > > > > > >Best Regards, > > >Paulo Soares > > > > > > > -----Original Message----- > > > > From: > [EMAIL PROTECTED] [SMTP:[EMAIL PROTECTED] On Behalf > Of tom smith > > > > Sent: Tuesday, January 06, 2004 > 3:34 > > > > To: > [EMAIL PROTECTED] > > > > Subject: [iText-questions] > stamped.java example /Merging PDF > files > > > > > > > > Hi Everyone, > > > > > > > > I just started playing around with > iText today, and used the > setTextMatrix(int, int) and > showText(String) methods to Stamp on > exist pdf file as Paulo Soares's > example showed, mostly it works fine, > but there is a problem when I tried to > stamp "Strings" to certain areas, > somehow it doesn't work. Just > wondering if anyone else had this > problem. Please let me know how I can > work around this problem if you have a > solution! > > > > > > > > Thanks, > > > > > > > > Tom > > > > > > > > > > > > _____ > > > > > > > > Tired of slow downloads? Compare > online deals from your local > high-speed providers now. > > > > > > ------------------------------------------------------- This SF.net email is > sponsored by: IBM Linux Tutorials. Become an expeert in LINUX or just sharpen your > skills. Sign up for IBM's Free Linux Tutorials. Learn everything from the bash shell > to sys admin. Click now! <<http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click>> > _______________________________________________ iText-questions mailing list [EMAIL > PROTECTED] <<https://lists.sourceforge.net/lists/listinfo/itext-questions>> > > _____ > > > Make your home warm and cozy this > winter with tips from MSN House & > Home. > <<<http://g.msn.com/8HMBENUS/2749??PS=>>> > > > > ------------------------------------------------------- The SF.Net email is sponsored by EclipseCon 2004 Premiere Conference on Open Tools Development and Integration See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. http://www.eclipsecon.org/osdn _______________________________________________ iText-questions mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/itext-questions
