[iText-questions] Line Spacing in RTF

2007-06-25 Thread Edward Smith
Hello, I'm trying make a part of my RTF document 1.5 line spacing. I'm currently trying to set the Leading to 1.5f eg new Paragraph(1.5f, "Text") I've also tried Paragraph.setLeading(1.5f); But I don't get any line spacing. I don't see what effect this does at all? Any help most welcome! Than

Re: [iText-questions] How to preserve hyperlinks in PdfImportedPage?

2007-06-25 Thread Paulo Soares
The interactive features are annotations that exist at the page level in the /Annots array. You'll have to go one by one, scale it and probably change the target. It can be done but it requires some work and, mainly, it depends on the application; if, for example, the target was also scaled page

Re: [iText-questions] Changing Background color of selected text

2007-06-25 Thread Paulo Soares
It's probably better for you to read the tutorial or buy the book. There's no background text property, that's done by drawing a rectangle in the backgroung color and then the text over it. To do that you'll need to know the space taken by the text and that will depend on the font and size. This

[iText-questions] PDF & RTF rendering bug using Table, List

2007-06-25 Thread Dhruba Bandopadhyay
Hi there, First of all I want to thank you for accepting my earlier bug fix. In this email I provide a test case to demonstrate the critical problem that I am having with my project. I have tried to be thorough in my investigation. If it is a mistake in the api usage then please do enlighten m

Re: [iText-questions] strange value returned byformFields.get(fieldName)

2007-06-25 Thread Paulo Soares
formFields.getField(fieldName) Paulo - Original Message - From: "li chen" <[EMAIL PROTECTED]> To: Sent: Monday, June 25, 2007 8:36 PM Subject: [iText-questions] strange value returned byformFields.get(fieldName) >i tried to print out the formField and its value like this > > Iterato

[iText-questions] strange value returned by formFields.get(fieldName)

2007-06-25 Thread li chen
i tried to print out the formField and its value like this Iterator nameIterator = formFieldNames.iterator(); while (nameIterator.hasNext()) { String fieldName = (String) nameIterator.next(); Object value = formFields.get(fieldName); System.out.println("name is "+fieldName+" value "+ value.toStrin

Re: [iText-questions] Changing Background color of selected text

2007-06-25 Thread Web Service Thesis
Paulo, Thanks for your response. I was attempting to use the PdfContentByte to directly write data to a pdf. That was where I was referring to setColorFill() (it's part of the .text.pdf*); Is there a corresponding method that I can use with PdfContentByte that would allow me to have the black ba

Re: [iText-questions] How to preserve hyperlinks in PdfImportedPage?

2007-06-25 Thread Michael Schierl
On Mon, 25 Jun 2007 11:32:23 +0100, Paulo Soares wrote: > See http://itextdocs.lowagie.com/tutorial/general/copystamp/index.html. Do you mean this here (hyperlinks are not mentioned there, but I guess they are interactive features): PdfWriter: generates a document from scratch, but also sup

Re: [iText-questions] Changing Background color of selected text

2007-06-25 Thread Paulo Soares
You can set the background Chunk color (and the text color, of course). Paulo - Original Message - From: "Web Service Thesis" <[EMAIL PROTECTED]> To: Sent: Monday, June 25, 2007 6:30 PM Subject: [iText-questions] Changing Background color of selected text > Hello. > > I am attempting

[iText-questions] Changing Background color of selected text

2007-06-25 Thread Web Service Thesis
Hello. I am attempting to create a PDF document using iText (Java). I would like to make a portion of the text have a black background with white text. (The rest of the document is a standard "white" background with black text.) Note, I do not want the entire page to be a black background with w

Re: [iText-questions] RTF vs. PDF image scaling

2007-06-25 Thread Chad Loder
On Fri, Jun 22, 2007 at 06:38:21PM +0100, Mark Hall wrote: > On Wednesday 20 June 2007, Chad Loder wrote: > > I am confused with the way image scaling works in PDF vs. RTF. I have > > read the May 15th thread between Thomas Bickel and Mark Hall where > > this is discussed: > > If you are using the

Re: [iText-questions] Build Project jar but iText not working

2007-06-25 Thread Bruno Lowagie (iText)
David Hittel wrote: > I started my jar now with cmd. It throws following exceptption > Do you see the error ? Does your jar have AFM files in com.lowagie.text.pdf.fonts? I bet they are missing (but as I don't have access to your system, I could lose that bet). br, Bruno -

[iText-questions] JFreeChart problem

2007-06-25 Thread Michael Clayton
Hi! When use the JFreeChart sample in the iText book, it works fine as a stand-alone app with a main method. However, I cannot get it to work in a JavaBean. It seems the document does not close = document.close(). Im using eclipse and tomcat seems to just hang. org.apache.catalina.startup

Re: [iText-questions] A problem about inserting digital signature withiTextSharp

2007-06-25 Thread Paulo Soares
I'll answer this in the iTextSharp mailing list given that you posted in both lists. Paulo > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On > Behalf Of Seung Hyun Park > Sent: Monday, June 25, 2007 2:20 PM > To: itext-questions@lists.sourceforge.net > Subje

Re: [iText-questions] Build Project jar but iText not working

2007-06-25 Thread David Hittel
I started my jar now with cmd. It throws following exceptption Exception in thread "AWT-EventQueue-0" ExceptionConverter: java.io.IOException: The document has no pages. at com.lowagie.text.pdf.PdfPages.writePageTree(Unknown Source) at com.lowagie.text.pdf.PdfWriter.close(Unknown S

Re: [iText-questions] Build Project jar but iText not working

2007-06-25 Thread Bruno Lowagie (iText)
David Hittel wrote: > Any suggestions? I fear this question can only be answered by someone sitting next to you, or, as Paulo would say, by somebody with a crystal ball. My guess is that if you add a System.out to every other line, saying "I'm here 1", "I'm here 2", "I'm here 3",... You will see

Re: [iText-questions] List.add(Object o) return value

2007-06-25 Thread Bruno Lowagie (iText)
Dhruba Bandopadhyay wrote: > Hi, > > In com.lowagie.text.List in method: > > public boolean add(Object o); > > on line 270 of revision 2852 shouldn't: > > list.add(item); > > be: > > return list.add(item); You are right. The change is in the SVN repository. br, Bruno -

[iText-questions] A problem about inserting digital signature with iTextSharp

2007-06-25 Thread Seung Hyun Park
Hello. I have made a program related to PDF digital signing with iTextSharp. I already read "How to sign a PDF using iText and iTextSharp" tutorial and some postings in the mailing list. But, I could not succeed in inserting digital signature at existing PDF files. My test codes are as follow

[iText-questions] List.add(Object o) return value

2007-06-25 Thread Dhruba Bandopadhyay
Hi, In com.lowagie.text.List in method: public boolean add(Object o); on line 270 of revision 2852 shouldn't: list.add(item); be: return list.add(item); Or is it okay like that? If no change is required please explain. Due to this adding a list item to a list sometimes returns false.

Re: [iText-questions] Add content to an existing PDF document

2007-06-25 Thread Anthony Maguire
Bruno / Paulo, Thanks both for your answers, i haven't got to try them yet, but they given me more confidence in thinking i'll be able to do what i need. Much appreciated, esp the quickness of response. Anthony Maguire Oakton ph: (03) 9617 0200 fax: (03) 9621 1951 Mobile: 0416 766 931 www.oa

Re: [iText-questions] Add content to an existing PDF document

2007-06-25 Thread Bruno Lowagie (iText)
Anthony Maguire wrote: > As it stands i'm getting a handle on the PDFStamper and the PDFContentByte > object > of the document i want to change. After that i'm basically just writing text to > designated coordinates, and through trial and error finding out the right coordinates. Yes, trial an

Re: [iText-questions] Add content to an existing PDF document

2007-06-25 Thread Paulo Soares
Page 57 of the book has some examples but the important thing to remember is that the returned PdfContentByte can be used with ColumnText to add tables or other sophisticated layout. Paulo > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On > Behalf Of Anthony

Re: [iText-questions] Add content to an existing PDF document

2007-06-25 Thread Anthony Maguire
Sorry that last line should read is not an AcroForm document. I appreciate there's a big difference Anthony Maguire Oakton ph: (03) 9617 0200 fax: (03) 9621 1951 Mobile: 0416 766 931 www.oakton.com.au ___

[iText-questions] Add content to an existing PDF document

2007-06-25 Thread Anthony Maguire
Hi, I'm new to using iText and while it looks like its the application i need to use, one thing i just can't find anywhere is what is the best way to add content to an existing document. I assume this is a question every newbie asks and i thought the answer would be on the FAQ, but i haven't f

Re: [iText-questions] How to preserve hyperlinks in PdfImportedPage?

2007-06-25 Thread Paulo Soares
See http://itextdocs.lowagie.com/tutorial/general/copystamp/index.html. Paulo > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On > Behalf Of Michael Schierl > Sent: Saturday, June 23, 2007 2:51 PM > To: Post all your questions about iText here > Subject: [iTe

Re: [iText-questions] how to change font properties in cell

2007-06-25 Thread Paulo Soares
Have a look at the javadocs for the Font constructor. You need something like: new Font(Font.HELVETICA, 12, Font.BOLD) Paulo > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On > Behalf Of Dedy > Sent: Monday, June 25, 2007 8:13 AM > To: itext-questions@lists

[iText-questions] OT: Invitation to participate in research project

2007-06-25 Thread Ben Alex
Hello there I would greatly appreciate a small amount of your time to assist with my doctoral research at The University of Newcastle. The research concerns open source licensing and we're seeking developers working on Java projects. The research is supervised, ethics-approved, anonymous and resul

[iText-questions] how to change font properties in cell

2007-06-25 Thread Dedy
i was i newbie with itext and i want to ask how to change font properties such as changing font, make it bold or italic etc an adding it in cell (PdfPCell) p = new Paragraph("Amount", new Font(Font.BOLD)); cell = new PdfPCell(p); cell.setHorizontalAlignment(Element.ALIGN_CENTER); cell.setGrayFil