RE: [iText-questions] text editor and itext

2005-12-09 Thread Bill Ensley
I use one, you simply pass a PdfGraphics2D object to the JTextArea's paint method.   it's that simple. you don't need anything special.   Any other questions, I'm happy to answer them.   Paulo, Bruno et al:   Would you like an example of this for the tutorial or book?   -Bill Ensley Bear Pr

[iText-questions] text editor and itext

2005-12-09 Thread Dominic Maricic
Are there any examples of an editor like JTextArea that has color, and the usual bold underline, & italics and then they data is transferred into itext? I’d like to have such an editor and would rather not have to reinvent the wheel. If not, any tips and direction would be greatly appreciat

Re: [iText-questions] Conerting word/excel docs to pdf's

2005-12-09 Thread Mark Hall
satya chowdary schrieb: Are there any opensource converters which can perform this task.. Have a look at Apache poi for reading Excel/Word Documents with Java. (http://jakarta.apache.org/poi/) You could then write the PDFs using iText. Greetings, Mark

RE: [iText-questions] How to get Unicode ref from Font character index

2005-12-09 Thread Turetsky, Seth
Alan, Well this worked for me when doing CJK characters: get the ascii number     convert it to hexadecimel     prepend it with a \u   Hope that helps Seth -Original Message-From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]On Behalf Of AlanSent: Friday, December 09,

[iText-questions] How to get Unicode ref from Font character index

2005-12-09 Thread Alan
Hi, I have an application that returns a Font object and a Character Index integer for point symbols.   I have worked out how to do all that is needed to write this to PDF except for how to get the Unicode value.   For example, I can use the windows charmap.exe to tell that CharacterIn

[iText-questions] Conerting word/excel docs to pdf's

2005-12-09 Thread satya chowdary
  Hello,   Can any one guide me on how to convert a word/Excel documents to pdf. My Requirements are read the word/excel docs from any database/Flatfile and convert them to PDF's.. which i can incorporate/embed in to the new pdf which i will be generating  using iText. I want to use with a pure

[iText-questions] Inserting pdf/pdf contents

2005-12-09 Thread satya chowdary
  Hi, I have a requirement  where in i need to insert a pdf located at some directory to be inserted in to the pdf that is being generated by my program. I want it either way to insert a pdf and also to insert the contents of the pdf.. Any ideas how can i do it

Re: [iText-questions] Height of a Paragraph inside a PdfPCell

2005-12-09 Thread Ary Junior
Hi, is there any way to get the same efect of the table.addCell("teste") when I use the paragraph with the string inside a pdfpcell? The cell height can't have the same height of the String? Thanks very much! Ary Junior Paulo Soares wrote: The font name is "Times-Roman". To be safe use Font

[iText-questions] Re: [iText-questions] Problem with PdfContentByte.addTemplate()

2005-12-09 Thread Eric Anderson
Changing PdfContentByte dc = stamper.getWriter().getDirectContent(); to PdfContentByte dc = stamper.getUnderContent(1); Brought all the objects over (thanks!) except for the image that was in reader1... any clue as to why? Does PdfImportedPage include images? Thanks! >>> Bruno Lowagie <[EMAIL

Re: [iText-questions] Problem with PdfContentByte.addTemplate()

2005-12-09 Thread Bruno Lowagie
Eric Anderson wrote: Changed the line PdfImportedPage page = stamper.getWriter().getImportedPage(reader1, 1); to PdfImportedPage page = stamper.getImportedPage(reader1, 1); same result.. java.lang.NullPointerException at com.lowagie.text.pdf.PdfContentByte.addTemplate(Unknown Source)

Re: [iText-questions] Problem with PdfContentByte.addTemplate()

2005-12-09 Thread Eric Anderson
Changed the line PdfImportedPage page = stamper.getWriter().getImportedPage(reader1, 1); to PdfImportedPage page = stamper.getImportedPage(reader1, 1); same result.. java.lang.NullPointerException at com.lowagie.text.pdf.PdfContentByte.addTemplate(Unknown Source) at com.lowagie

Re: [iText-questions] Problem with PdfContentByte.addTemplate()

2005-12-09 Thread Bruno Lowagie
Eric Anderson wrote: Thanks for your quick reply... changing the class to the PdfStamper in the following code gives me this error now... This is certainly wrong: PdfImportedPage page = stamper.getWriter().getImportedPage(reader1, 1); It should be PdfImportedPage page

Re: [iText-questions] Problem with PdfContentByte.addTemplate()

2005-12-09 Thread Eric Anderson
Thanks for your quick reply... changing the class to the PdfStamper in the following code gives me this error now... //Read the two files and merge. PdfReader reader1 = new PdfReader( pdfStream1.toByteArray() ); PdfR

Re: [iText-questions] Problem with PdfContentByte.addTemplate()

2005-12-09 Thread Bruno Lowagie
Eric Anderson wrote: I am trying to put one document on top of another... But can't seem to do it. Using the following code I get the below error. Anyone know why? You have the wrong class. CopyFields can't be used to superimpose pages; use PdfStamper instead. br, Bruno

[iText-questions] Problem with PdfContentByte.addTemplate()

2005-12-09 Thread Eric Anderson
I am trying to put one document on top of another... But can't seem to do it. Using the following code I get the below error. Anyone know why? //Read the two files and merge. PdfCopyFields copy = new PdfCopyFields( out ); PdfReader reader1 = new PdfReader( pdfStream1.to

RE: [iText-questions] line justification

2005-12-09 Thread Mitch Freed
'\u00a0' works great. Thanks!   -Mitch   From: Paulo Soares [mailto:[EMAIL PROTECTED] Sent: Friday, December 09, 2005 1:30 AMTo: Mitch Freed; itext-questions@lists.sourceforge.netSubject: RE: [iText-questions] line justification That's expected for justified text that also spaces the cha

RE: [iText-questions] Background and border rethinking

2005-12-09 Thread Paulo Soares
Title: Re: [iText-questions] Background and border rethinking For the moment I kept the gray fill but internaly is converted to a GrayColor.   Paulo From: [EMAIL PROTECTED] on behalf of Bruno LowagieSent: Fri 09-Dec-05 13:59To: itext-questions@lists.sourceforge.netSubject: Re: [iText-qu

Re: [iText-questions] Background and border rethinking

2005-12-09 Thread Bruno Lowagie
Paulo Soares wrote: I had a good look at Rectangle borders and background processing and I'm inclined to do the following changes/fixes: - backgrounds are being written twice with variable borders - Rectangle.setGrayFill() and Rectangle.grayFill() have no reason to exist. The same can be achi

[iText-questions] Background and border rethinking

2005-12-09 Thread Paulo Soares
I had a good look at Rectangle borders and background processing and I'm inclined to do the following changes/fixes:   - backgrounds are being written twice with variable borders - Rectangle.setGrayFill() and Rectangle.grayFill() have no reason to exist. The same can be achieved with Rectangle.

RE: [iText-questions] PdfReader process limit ?

2005-12-09 Thread Paulo Soares
Title: [iText-questions] PdfReader process limit ? You can have an out of memory exception with any file if you don't have enough memory allocated in the JVM. A way to reduce the memory needed is to use the constructor PdfReader(RandomAccessFileOrArray). From: [EMAIL PROTECTED] on behal

[iText-questions] PdfReader process limit ?

2005-12-09 Thread han.li
Hi, I got the "java.lang.OutOfMemoryError Exception" when I was trying to use iText to read and process some huge PDF files. The one caused the OutOfMemory problem is actually the document file about the PDF Specification which I downloaded from Adobe website. And its size is about 8.71 MB and w

RE: [iText-questions] line justification

2005-12-09 Thread Paulo Soares
That's expected for justified text that also spaces the chars. You can turn off the char spacing with PdfWriter.setSpaceCharRatio(PdfWriter.NO_SPACE_CHAR_RATIO). Another option is to use '\u00a0' underlined instead of underscores. From: [EMAIL PROTECTED] on behalf of Mitch FreedSent: Fri

Re: [iText-questions] line justification

2005-12-09 Thread Vineet Reynolds
I think it is because of the difference between JUSTIFIED and JUSTIFIED_ALL. The former is usually the way to go, the latter usually creates the problem described by you. Please check the code once again or switch between the two variants.On 12/9/05, Mitch Freed <[EMAIL PROTECTED]> wrote: I have a