Re: [iText-questions] why pdf fields of 1st page move to 2nd page

2008-02-15 Thread Sarah1
Hi Bruno, Now I'm confused by adding radio buttons on different page. I want name1(text), preferred1(radio) on 1st page, name2 and preferred2(radio) on 2nd page. I also want to use a cool looking checkbox instead of big X. (I can make big X checkboxes working, but not the following code.) Could y

Re: [iText-questions] why pdf fields of 1st page move to 2nd page

2008-02-14 Thread Sarah1
Thanks, Bruno. I got it. :) Bruno Lowagie (iText) wrote: > > Sarah1 wrote: >> Hi Bruno, >> >> Thanks. I did find your example before, but my code is different from >> yours. >> Please look at the following code. I want to create name1 field on page1, &g

Re: [iText-questions] why pdf fields of 1st page move to 2nd page

2008-02-13 Thread Sarah1
Hi Bruno, Thanks. I did find your example before, but my code is different from yours. Please look at the following code. I want to create name1 field on page1, name2 field on page2, but I found 2 name1 fields on both pages, and on 2nd page name1 and name2 fields are overlapped . Could you tell m

Re: [iText-questions] why pdf fields of 1st page move to 2nd page

2008-02-12 Thread Sarah1
Please help. Thanks. Sarah Sarah1 wrote: > > Hi, > > I'm playing RegisterForm1.java. I want to add an extra same 2nd table on a > new page. All the fields on 2 pages are named differently. But I fount > both tables are on different page, and they looks fine, but the po

[iText-questions] run time problem

2008-02-08 Thread Sarah1
Hi, I have a very small program as following, when I run the main() method, it successfully create the PDF file. But when I call createPdf() method from my web application, it always gave me the error "java.lang.Exception: org.apache.jasper.JasperException: com/lowagie/text/Document". I was

[iText-questions] why pdf fields of 1st page move to 2nd page

2008-02-05 Thread Sarah1
Hi, I'm playing RegisterForm1.java. I want to add an extra same 2nd table on a new page. All the fields on 2 pages are named differently. But I fount both tables are on different page, and they looks fine, but the positions of the fields on 1st page are moved to 2nd page. Could you tell me why?

[iText-questions] table.getTotalHeight() not working in RegisterForm1.java

2008-01-31 Thread Sarah1
Hi, I need create PDF Form on the fly(I don't know how long the form will be). I put the whole form into a big PdfPTable, now I have page break problem. After doing research I know I can't create new page inside PdfPTable. So I need calculate the height of PdfPtable, once the PdfPTable fill a p

Re: [iText-questions] set length of textfield

2008-01-30 Thread Sarah1
This is my pdf form. Sorry I forgot to attach it. Sarah Sarah1 wrote: > > Hi Bruno, > > I did use the code in 15.2.2 section. I feel all the textfields will span > all the cells of the table, even the radio buttons span the cells too, it > looks really ugly. > > Pl

Re: [iText-questions] set length of textfield

2008-01-30 Thread Sarah1
. Thanks. Sarah Bruno Lowagie (iText) wrote: > > Sarah1 wrote: >> Hi, >> >> I want to create a certain length textfield in a cell of a table. I don't >> know how to define the length of the textfield. I know I need draw a >> rectangle, but i don&

[iText-questions] display PdfPTable crossing pages

2008-01-30 Thread Sarah1
Hi, Why my PDF Form fields mess up when I display PdfPTable crossing pages? All the form fields are moved to the 2nd page. Why? Please see the attached file. Sarah http://www.nabble.com/file/p15189220/TRACK_PDFFORM_1.pdf TRACK_PDFFORM_1.pdf -- View this message in context: http://www.nabb

[iText-questions] textfield is grey when it's empty

2008-01-29 Thread Sarah1
Hi, I create a textfield in a PDF Form, but all the area of textfields look grey when there are no data for the textfields. Actually I set the bgcolor = white, I only set bordercolor=grey. field.setBackgroundColor(Color.WHITE); field.setBorderColor(Color.GRAY); field.setBorderWidth(1); Do you k

[iText-questions] need cool looking checkbox

2008-01-29 Thread Sarah1
Hi, Anybody can help me to draw a cool looking checkbox instead of a big X? Thanks. Sarah -- View this message in context: http://www.nabble.com/need-cool-looking-checkbox-tp15169387p15169387.html Sent from the iText - General mailing list archive at Nabble.com.

[iText-questions] set length of textfield

2008-01-29 Thread Sarah1
Hi, I want to create a certain length textfield in a cell of a table. I don't know how to define the length of the textfield. I know I need draw a rectangle, but i don't know how to. Please help. Thanks. Sarah -- View this message in context: http://www.nabble.com/set-length-of-textfield-tp15

[iText-questions] valignment problem of textfield in table

2008-01-29 Thread Sarah1
Hi, Please see the uploaded file. The text "Site Number" and its textfield are not at the same height. Why? Both of them are in the same PdfPtable. The cells of them are set as padding=0, valign=middle. Please help me. Thanks. Sarah http://www.nabble.com/file/p15167541/PDFFORM.pdf PDFFORM.p

[iText-questions] check mark not showing in checkbox when printing pdf form

2008-01-25 Thread Sarah1
Hi, After I dynamically display the filled pdf forms on the fly, when I print my form, I got printing problem. I can print the whole page, but the check mark for the checkboxes can't be display on the paper. Do you know why? I tried to put "stamper.setFormFlattening(true);" in the code, but it

Re: [iText-questions] fill PDF Form on the fly

2008-01-25 Thread Sarah1
You're right. I got it. Thanks! Sarah Xavier Le Vourch wrote: > > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > Sarah1 wrote: > | Dear itext friends: > | > | I need help: > | > | [...] > | 4. I DON'T want to save the pdf form with data

Re: [iText-questions] fill PDF Form on the fly

2008-01-24 Thread Sarah1
.getOutputStream(); baos.writeTo(out); out.flush(); } catch (IOException e) { e.printStackTrace(); } catch (DocumentException e) { e.printStackTrace(); } Thanks. Sarah Sarah1 wrote: > > Dear itext friends:

[iText-questions] fill PDF Form on the fly

2008-01-24 Thread Sarah1
Dear itext friends: I need help: 1. I have one pdf form file with many fields, I called it pdf form template. The form could be very big. 2. I have many records from database for the pdf form, each record corrsponds to a form. 3. I want to fill the pdf form fields with data, and display it on t

[iText-questions] run register_form1.java from JSP error

2007-12-06 Thread Sarah1
Hi, I'm using Jbuilder, Tomcat4.1. I built a project BSC which used to run your example from the book chapter16/RegisterForm1.java. I run it through the main() method, everything is good, and register_form1.pdf is beautiful. Then I want to run RegisterForm1.java from JSP. I created a test.jsp

[iText-questions] textfield problem

2007-10-26 Thread Sarah1
Hi, When I compile the example TextFields.java of chapter15, I got the following error. "TextFields.java": cannot find symbol; symbol: variable COMB, location: class com.lowagie.text.pdf.TextField at line 128, column 50 ***

[iText-questions] why radio buttons don't appear

2007-10-26 Thread Sarah1
Hi, I just started to play itext yesterday. When I ran the example Buttons.java of chapter15. It always gave me error. After I comment some lines like pushbutton.setAppearance(PdfAnnotation.APPEARANCE_NORMAL, normal); etc., the error was gone, but I couldn't see any radio buttons on buttons.pdf