[iText-questions] amount format lost when writing to pdf

2008-05-14 Thread ayeen
hi, we have this field in our source.pdf called total_amount... in acrobat we have manually set the property of total_amount like this: Category: Number (1,234.00) Number Options: Decimal places : 2 Currency symbol : none Separator style: 1,234.56

[iText-questions] merging PDF1 and PDF2 but page 2 of PDF1 gets lost

2008-05-09 Thread ayeen
hi... i was trying to merge two pdf files, pdf1.pdf and pdf2.pdf pdf1.pdf has 2 pages, pdf2.pdf just has 1 after merging them, page 2 of pdf1.pdf gets lost and instead of having 3 pages i only have 2 pages.. below are my codes: PdfReader reader = new PdfReader("pdf1.pdf");//first pa

Re: [iText-questions] getting null values for getAppearanceStates()

2008-02-12 Thread ayeen
i was wondering how you found out about the "Yes" "Off" values (yeah, i didnt make the pdf, someone else designs it and i just know how to view the pdf field names) i didn't know that "export value" in the options tab is the one that defines the values for a check box thanks super 1T3XT

Re: [iText-questions] getting null values for getAppearanceStates()

2008-02-11 Thread ayeen
i'm using adobe acrobat 5 and the checkbox im using are the 3 unlabeled boxes under "Justification" it has the fieldnames: "Rail" "Air" "Ship" what i was doing is : form1.setField("Rail", "On"); http://www.nabble.com/file/p15424974/AyeenPDF.pdf AyeenPDF.pdf thanks again! Paulo Soare

Re: [iText-questions] getting null values for getAppearanceStates()

2008-02-11 Thread ayeen
sorry..there's a typo should be: form1.getAppearanceStates(pdf_field_name); ayeen wrote: > > > so i tried calling: form.getAppearanceStates(pdf_field_name); to see what > values i could use but it's returning me a null value ... > > -- View th

[iText-questions] getting null values for getAppearanceStates()

2008-02-11 Thread ayeen
hi! i checked the fieldType of my pdf_field_name and it's returning 2 which means it really is a checkbox. i called the : form1.setField(pdf_field_name, "On"); but that check box is still not checked. so i tried calling: form.getAppearanceStates(pdf_field_name); to see what values i could us

Re: [iText-questions] cant find the AcroFields.regenerateField()

2008-01-07 Thread ayeen
sorry, i found the answer...i installed the v2.0.7 ayeen wrote: > > > sorry for the stupid question but my compiler can't find the > AcroFields.regenerateField() and other fields like > decodeGenericDictionary(). am i using an old version of the itext? > > th

Re: [iText-questions] cant find the AcroFields.regenerateField()

2008-01-07 Thread ayeen
btw, i'm using itext-1.4.2.jar ayeen wrote: > > > sorry for the stupid question but my compiler can't find the > AcroFields.regenerateField() and other fields like > decodeGenericDictionary(). am i using an old version of the itext? > > thanks! > &g

[iText-questions] cant find the AcroFields.regenerateField()

2008-01-07 Thread ayeen
sorry for the stupid question but my compiler can't find the AcroFields.regenerateField() and other fields like decodeGenericDictionary(). am i using an old version of the itext? thanks! -- View this message in context: http://www.nabble.com/cant-find-the-AcroFields.regenerateField%28%29-tp14

Re: [iText-questions] FONT inconsistencies when creating PDFs

2008-01-04 Thread ayeen
ot;, "some_data_from_resultset"); form.setField("t_field2", "some_data_from_resultset"); //end of looping thru the resultset //now we close stamp.setFormFlattening(true); stamp.close(); Bruno Lowagie (iText) wrote: > > ayeen wrote: >>

Re: [iText-questions] FONT inconsistencies when creating PDFs

2008-01-04 Thread ayeen
hi, may i ask what's itext's default font when creating a pdf file? thanks again! Bruno Lowagie (iText) wrote: > > > So you have AcroFields in template.pdf. > What font(size) was defined for these fields? > If times new roman, is the complete font available > in the PDF or only a subset?

Re: [iText-questions] FONT inconsistencies when creating PDFs

2007-12-28 Thread ayeen
hi bruno, thanks for replying... - basically this is what my code has: PdfReader reader = new PdfReader("template.pdf"); PdfStamper stamp = new PdfStamper(reader, new FileOutputStream("output.pdf")); Acrofields form = stamp.getAcroFields(); //some stuff to iterate thru resultset (while rs.ne

[iText-questions] FONT inconsistencies when creating PDFs

2007-12-27 Thread ayeen
hi experts! how do you solve font inconsistencies in PDF using iText? i am writing a code that would get data from the database (MS SQL) and would output a PDF file using iText. there's another person in my team who designs the PDF template (let's call this template.pdf) and he made all the f