[iText-questions] multiple pdfs at once

2009-08-12 Thread mitroiasi
Hi, I work at a JSF application which generates pdf files on the fly with the help of iText. All works great. Right now, the clients want a new features: to have a new button for displaying all pdf files in different tabs. I have tried but only the latest pdf file is shown. Can someone give me

[iText-questions] Insert image in a pdf in a web application

2009-04-16 Thread mitroiasi
Hi, I have a problem inserting an image in a pdf. I tried the code locally and it works. In the web application I don't know how to create the image from the: context.getResourceAsStream("/pdf/images/cross.gif"); I found a code, but I don't want to use a new framework (jar) only for this reason

Re: [iText-questions] text in a box

2009-04-15 Thread mitroiasi
Hi, I didn't say that ColumnText doesn't work with PdfStamper. I said that when I use the go() method from the ColumnText the other inserted texts are just ignored. I found the solution. I use the go() method after this line: overPage1.endText(); Thank you very much for all your replies. iText

Re: [iText-questions] text in a box

2009-04-15 Thread mitroiasi
I thinkI will have the same problem with the table as with the paragraph. How can I add an Element to a PDFStamper? -- View this message in context: http://www.nabble.com/text-in-a-box-tp23055291p23057064.html Sent from the iText - General mailing list archive at Nabble.com. -

Re: [iText-questions] text in a box

2009-04-15 Thread mitroiasi
Hi, The real problem is that I am new to iText framework :). I want to insert some text in a rectangle. I thought that the FieldText will solve my problem, but I cannot get rid of the unneccesary elements. I tried also ColumnText, but I had also a problem. When a use ct.go(), nothing else will

[iText-questions] text in a box

2009-04-15 Thread mitroiasi
Hi, I want to put some text in a box inside a pdf file. I have tried with a TextField, but I cannot get rid of the blue backgroud color and the black border with the hover effect. My code is: TextField tf = new TextField(stamp.getWriter(), new Rectangle(57, 711, 254, 766), "tf"); tf.setMaxChar

[iText-questions] Load a pdf file from a war application

2009-04-09 Thread mitroiasi
Hi, I am a bit lost with the PdfReader, Documents and PdfCopy. I want to use iText in a web application. In my web application I want to load a pdf file insert some texts in this file and after this deliver this file to the user. I use JSF in my application but I don't know if this is important

Re: [iText-questions] Load a pdf file from a war application

2009-04-09 Thread mitroiasi
Hi, I solved the problem. I don't know where the problem was but it works right now. The code below makes the job: final ExternalContext context = getFacesContext().getExternalContext(); final HttpServletResponse response = (HttpServletResponse) context.getResponse(); PdfReader reader = new

Re: [iText-questions] itext: every letter in its cell

2009-04-09 Thread mitroiasi
Thank you very much for all your answers. I will try your solutions and I will write the results. -- View this message in context: http://www.nabble.com/itext%3A-every-letter-in-its-cell-tp22947902p22966338.html Sent from the iText - General mailing list archive at Nabble.com. --

Re: [iText-questions] itext: every letter in its cell

2009-04-08 Thread mitroiasi
I forgot to say that I want to insert this text in an already created pdf. I have found this example: PdfReader reader = new PdfReader("tax_initial.pdf"); PdfStamper stamp = new PdfStamper(reader, new FileOutputStream("tax_result.pdf")); PdfContentByte over; BaseFont bf = BaseFont.createFont(Bas

[iText-questions] itext: every letter in its cell

2009-04-08 Thread mitroiasi
Hi, I have a PDF-file which contains a form. This PDF should be filled out with some tax information. Most of the fields have cells for every letter of the inserted word. E.q. Name: |J|O|H|N|. How can one insert a word in such a way that every letter is in centered in its cell? Had someone this