[iText-questions] Reg Help in iText :: Adding Header Page and Footer page in an Existing PDF file

2006-05-19 Thread Balajiviswanathan V
Hai All,My Requirement is that we have created lots of PDF's in a Batch using iText, but unfortunatly we forget to create a Banner Page just like 1st Page of Book contains Title last Page contains index.Now is it possible to open the existing PDF and add 1st Page and last Page with So

[iText-questions] Fonts not Embedding properly

2006-05-19 Thread Mac Fraser
Hi, I've been working to resolve this issue for a little while now and have not been able to get it working.   I'm using itext 1.4 within a web application   I am loading a font using the FontFactory and registering the font like this:       FontFactory.register("c:\\windows\\fonts\\

RE: [iText-questions] (no subject)

2006-05-19 Thread Mark Storer
This isn't directly supported by AcroFields' API.  You'll have to dig under the covers a bit:   1) Get the field's "Item":   AcroFields.Item fldItem = myAcroFields.getFieldItem("SomeField");   2) For each instance of that field   for (int i = 0; i < fldItem.widgets.size(); ++i) {   3) Get t

RE: [iText-questions] Cannot open pdf.

2006-05-19 Thread Mark Storer
You have to call Document's "close()" before "ViewPdf()". Just about all of the PDF is written as a result of "close()". --Mark Storer Senior Software Engineer Cardiff Software #include typedef std::Disclaimer DisCard; > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EM

Re: [iText-questions] Tiff scale

2006-05-19 Thread Leonard Rosenthol
At 01:40 PM 5/19/2006, Antoine wrote: You certainly can. DPI is a mandatory tiff tag, as are height and width (in pixels). That is true. HOWEVER when converting/placing a TIFF into a PDF, it makes no difference since it won't be a TIFF anymore and it goes back to a "raw bitma

[iText-questions] Re: Checkbox in a Cell

2006-05-19 Thread Abhinav Sancheti
Paulo Soares consiste.pt> writes: > > You must use PdfPTable and a table or cell event to know where to place > the checkbox. > > Paulo > > > Thanks Paulo If i am not asking much could you please route some code sample to use events. or may be point me to some source which demonstrates this

RE: [iText-questions] Tiff scale

2006-05-19 Thread Bill Ensley
This is hardly the forum for a thread on dpi, so I will keep it short. DPI is just a measurement of pixels at a given size in inches. If you use a program to increase (interpolate) an images resolution, you are ADDING pixels. So, a 900 x 900 pixel image is 300dpi at 3 inches, if you interpolate

Re: [iText-questions] Tiff scale

2006-05-19 Thread Antoine
On 17/05/06, Bill Ensley <[EMAIL PROTECTED]> wrote: You can't state that you have a tiff of 750 pixels by 900 pixels and Also say that it is 600dpi. It doesn't work that way. You certainly can. DPI is a mandatory tiff tag, as are height and width (in pixels). A 750 by 900 pixel image is 600

Re: [iText-questions] Re: BaseFont getWidths()

2006-05-19 Thread Leonard Rosenthol
At 02:36 AM 5/19/2006, Thorben wrote: As it is a server-job and I want to set a new font width for example 80 per cent or 110 ... OK. But you shouldn't be touching the font data itself..Doing so will create a PDF that will NOT render consistently! Instead, you shoul

Re: [iText-questions] New paragraph is appending data from previous one.

2006-05-19 Thread Antonio Gurisatti
Paulo Soares wrote: That's a side effect of the font propagation that changes the Chunk. pschema.add(new Chunk(schemaLabel)); will solve the problem. Paulo -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Antonio Gurisatti Sent: Friday, May 1

RE: [iText-questions] New paragraph is appending data from previous one.

2006-05-19 Thread Paulo Soares
That's a side effect of the font propagation that changes the Chunk. pschema.add(new Chunk(schemaLabel)); will solve the problem. Paulo > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On > Behalf Of Antonio Gurisatti > Sent: Friday, May 19, 2006 5:01 PM >

RE: [iText-questions] Checkbox in a Cell

2006-05-19 Thread Paulo Soares
You must use PdfPTable and a table or cell event to know where to place the checkbox. Paulo > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On > Behalf Of Abhinav Sancheti > Sent: Friday, May 19, 2006 4:01 PM > To: itext-questions@lists.sourceforge.net > Subj

RE: [iText-questions] How to add display a table in "HeaderFooter"

2006-05-19 Thread Paulo Soares
Use page events. http://itextdocs.lowagie.com/tutorial/directcontent/pageevents/index.htm l#examples Paulo > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On > Behalf Of Singhal, Ramneek (Exchange) > Sent: Friday, May 19, 2006 4:54 PM > To: itext-questions@li

RE: [iText-questions] Displaying lines in header

2006-05-19 Thread Paulo Soares
Use page events. http://itextdocs.lowagie.com/tutorial/directcontent/pageevents/index.html#examples   Paulo From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Srinivas PSent: Friday, May 19, 2006 3:07 PMTo: itext-questions@lists.sourceforge.netSubject: [iText-qu

RE: [iText-questions] Image not adding to header

2006-05-19 Thread Paulo Soares
Use page events. http://itextdocs.lowagie.com/tutorial/directcontent/pageevents/index.html#examples   Paulo From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Srinivas PSent: Friday, May 19, 2006 3:03 PMTo: itext-questions@lists.sourceforge.netSubject: [iText-que

RE: [iText-questions] setFieldProperty - Question by resizing an textfield

2006-05-19 Thread Paulo Soares
From AcroField.getItem() get the widget dictionary and change the /Rect key. Write that change value also to the merged dictionary. You'll have to fill the field again to see some change.   Paulo From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED]

RE: [iText-questions] iText with different jdk versions

2006-05-19 Thread Paulo Soares
Title: iText with different jdk versions See http://itextpdf.sourceforge.net/ for JDK1.1. No problem with higher versions.   Paulo   From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Mamta JoshiSent: Friday, May 19, 2006 2:34 PMTo: itext-questions@lists.sourcef

[iText-questions] Re: printDocumentSilent-troubles

2006-05-19 Thread Thomas Herre
Michael, I've playing around with silent printing PDFs for a while now. Some thoughts: 1) The screen your seeing is most probably Acrobat Reader's splash screen. Try disabling it in the Reader ("edit" - "settings" - "application start" - show splash" or something similar). 2) You can indeed st

[iText-questions] Re: printDocumentSilent-troubles

2006-05-19 Thread Thomas Herre
Michael Caletka gmail.com> writes: > > Hi,iText is a really wonderful tool, yet I do have some troubles concerning printing. I have a big Java-application, that produces lots of PDF-files. One for each customer. Now I want them ALL printed as well. I tried the method printDocumentSilent, whi

Re: [iText-questions] New paragraph is appending data from previous one.

2006-05-19 Thread Antonio Gurisatti
Paulo Soares wrote: Post code that can be run standalone. Paulo -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Antonio Gurisatti Sent: Friday, May 19, 2006 5:25 AM To: iText Subject: [iText-questions] New paragraph is appending data from prev

[iText-questions] How to add display a table in "HeaderFooter"

2006-05-19 Thread Singhal, Ramneek (Exchange)
I have to generate a tabular report which can span 15 pages. I have to display a Header(table headers row) and a footer(some disclaimer) on every page of the report. I think I can use "HeaderFooter" object to do so. I need to know how can I add a table to HeaderFooter object(to display table header

[iText-questions] Checkbox in a Cell

2006-05-19 Thread Abhinav Sancheti
Hello I am new to iText. I have a table and I need to show a checkBox in one of the cells. How do I create it. I know I can creat a PDFFormField but how do I add it to cell. Or is there any other approach. This is urgent please let me know ASAP Thanks Abhinav --

[iText-questions] Problem while adding image to header

2006-05-19 Thread Srinivas P
  Hi,   I am trying to add an image to header, the co-ordinates like left, top, bottom, right margins may vary, since I am collecting those parameters from user form, but I was unable to display the header image and content properly, for some co-ordinates the content going under the heade

[iText-questions] Displaying lines in header

2006-05-19 Thread Srinivas P
  Hi,   When I used the below code  it is displaying two lines both at Top and bottom, but I don’t need those lines how to remove them   HeaderFooter header = new  HeaderFooter(new Phrase(“Hello”), true);      HeaderFooter footer = new Head

[iText-questions] Image not adding to header

2006-05-19 Thread Srinivas P
  Hi,   I want to add an image to header by using HeaderFooter class, I tried with the below code    Document document = new Document(PageSize.A4, 50, 50, 50, 50);  PdfWriter.getInstance( document , new FileOutputStream("text.pdf"));  document.addAuthor("Bruno Lowagie");  document.a

[iText-questions] Re: How to position footer of RTF documents?

2006-05-19 Thread Thomas Herre
Darryl Miles netbauds.net> writes: > > > Thomas Herre wrote: > > A simple problem, but I don't find the solution: > > How do I position a footer, say 0.5 cm from the bottom of an RTF document? > > By default, it's always half an inch from the bottom and I can't find > > out how to change this.

[iText-questions] iText with different jdk versions

2006-05-19 Thread Mamta Joshi
Title: iText with different jdk versions Hi Can we use iText with JDK1.1 /1.2/1.3? Thanks and Regards, Mamta Joshi

RE: [iText-questions] setFieldProperty - Question by resizing an textfield

2006-05-19 Thread ch . schmidt
how can i size the form filed? which command should i execute? thx for help

RE: [iText-questions] setFieldProperty - Question by resizing an textfield

2006-05-19 Thread Paulo Soares
You can size the form field but the text that is not in the form field will stay in the same position, there will be no reflow.   Paulo From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED]Sent: Friday, May 19, 2006 1:23 PMTo: itext-questions@lis

Re: [iText-questions] How to position footer of RTF documents?

2006-05-19 Thread Darryl Miles
Thomas Herre wrote: A simple problem, but I don't find the solution: How do I position a footer, say 0.5 cm from the bottom of an RTF document? By default, it's always half an inch from the bottom and I can't find out how to change this. Are you using: Document document = new Document(PageS

[iText-questions] How to position footer of RTF documents?

2006-05-19 Thread Thomas Herre
Hi all, A simple problem, but I don't find the solution: How do I position a footer, say 0.5 cm from the bottom of an RTF document? By default, it's always half an inch from the bottom and I can't find out how to change this. Thank you for your advise, Thomas ---

[iText-questions] setFieldProperty - Question by resizing an textfield

2006-05-19 Thread ch . schmidt
Hi mailinglist, i need a method (perhapes setFieldProperty) to change the width of an textfield. does anybody know a solution for my problem? is it possible? background: i have a pdf document with a lot of formelements (textfields). some of these elements are in the middle of an text. depence wh

[iText-questions] printDocumentSilent-troubles

2006-05-19 Thread Michael Caletka
Hi,iText is a really wonderful tool, yet I do have some troubles concerning printing. I have a big Java-application, that produces lots of PDF-files. One for each customer. Now I want them ALL printed as well. I tried the method printDocumentSilent, which just prints the last of the files I produce

[iText-questions] (no subject)

2006-05-19 Thread ch . schmidt
Hi mailinglist, i need a method (perhapes setFieldProperty) to change the width of an textfield. does anybody know a solution for my problem? is it possible? background: i have a pdf document with a lot of formelements (textfields). some of these elements are in the middle of an text. depence wh

[iText-questions] Cells too large for one page of RTF file don't break to new page

2006-05-19 Thread Thomas Herre
Hi all, I'm using iText 1.4 to generate RTF files. The problem with the generated RTF file is: I have some very large cells, and instead of spanning the cell to the next page, the extra text that doesn't fit the cell would just be cut off. Actually not cut off, the extra text is hidden - if I r

RE: [iText-questions] New paragraph is appending data from previous one.

2006-05-19 Thread Paulo Soares
Post code that can be run standalone. Paulo > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On > Behalf Of Antonio Gurisatti > Sent: Friday, May 19, 2006 5:25 AM > To: iText > Subject: [iText-questions] New paragraph is appending data > from previous one. >

RE: [iText-questions] Trouble concatenating PDFs with same name textboxes

2006-05-19 Thread Paulo Soares
You'll have to rename the fields and use PdfCopyFields. Other option is to flatten the fields before concatenating. Paulo > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On > Behalf Of Jim Bethancourt > Sent: Friday, May 19, 2006 12:13 AM > To: itext-question

RE: [iText-questions] table query

2006-05-19 Thread Paulo Soares
Post some code so that the problem can be reproduced. Paulo > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On > Behalf Of [EMAIL PROTECTED] > Sent: Friday, May 19, 2006 5:47 AM > To: itext-questions@lists.sourceforge.net > Subject: [iText-questions] table qu

RE: [iText-questions] Re: BaseFont getWidths()

2006-05-19 Thread Paulo Soares
You may solve it with Chunk.setHorizontalScaling() although it will also shrink/expand the font and not only the spacing between characters. With getWidths() you can't cache the font and you must embedd it and change the font name. Paulo > -Original Message- > From: [EMAIL PROTECTED] >

Re: [iText-questions] The quotesingle can't show on the PDF file

2006-05-19 Thread bruno
Jansonc.dotop.com wrote: > Dear Bruno : > Thank you for your kindly help. I meant to add a link to the tutorial for an example on FontSelector, but I was looking at the wrong place (I was searching the Font chapters). Meanwhile I have found the correct URL: http://itextdocs.lowagie.com/tutorial/o

[iText-questions] Cannot open pdf.

2006-05-19 Thread HINDI TLC
Hi My application gives me an error when opening the pdf. Acrobat Reader says the file is damaged and cannot be open. My code is attached. From: bruno <[EMAIL PROTECTED]> To: HINDI TLC <[EMAIL PROTECTED]> CC: itext-questions@lists.sourceforge.net Subject: Re: [iText-questions] Re: Table Font

[iText-questions] local destination

2006-05-19 Thread Pablo Nebrera Herrera
How could I add destinations even if they don't exist on the local pdf? If I add a setLocalGoto("hello") and the destination doesn't not exist the document cannot be closed and it throws a RuntimeException. How could I avoid this? If the destination doesn't exist I would like it doesn't jump. I

Re: [iText-questions] The quotesingle can't show on the PDF file

2006-05-19 Thread bruno
Jansonc.dotop.com wrote: > Hello bruno: > Thank you for reply so quickly.So sorry,english is not good for me.I > describe the problem when I use the iText.If I keyin the single > quotes(') in > content and export it to PDF file use the iText by programing.When I open > this PDF, I can't see the si

Re: [iText-questions] Signature timestamp

2006-05-19 Thread Tomek Maćkowski
Here is my code, to get it running you have to download: bouncycastle commons-httpclient commons-logging commons-codec import java.io.ByteArrayInputStream; import java.io.ByteArrayOutputStream; import java.io.FileInputStream; import java.io.FileOutputStream; import java.io.InputStream; import ja

[iText-questions] Question about SimpleBookmark Class

2006-05-19 Thread Shoaib Gauhar
Hello I am using SimpleBookmark class to get bookmarks from a PDF file by using SimpleBookmark.getBookmark(reader) method. The main problem is that when it returns a list, i am unable to extract the required information from the fields in it, especially Named field. Some PDF files return Actio