Re: [iText-questions] Images in a jar file.

2005-05-02 Thread Bear Giles
Avrombay wrote: > What I would like to do is put the images into a jarfile and load them using something like 'ClassLoader.getSystemResource("images/icon_ms_1.gif")', but nothing I do seems to work. I was hoping someone here might have an answer or would be able to point me in the right direct

[iText-questions] Images in a jar file.

2005-05-02 Thread Avrombay
Hi! I'm running into an odd situation. I'm building some reports using iText on Weblogic. I'm using tables and images and it works great. To load the images, I was supplying the http url to the server. I was told today that I can't do that anymore. What I would like to do is put the images i

[iText-questions] AcroForm

2005-05-02 Thread Hegedus Peter
Hello! I want to use iText to fill a pdf form. I try out the example, which is on the iText's homepage and works well. My problem is that I can't make fillable pdf form. What kind of tool did you use when creating the SimpleRegistrationForm.pdf in the Register example? How can I download Acrof

[iText-questions] Problem with XmlWriter

2005-05-02 Thread Kapil Dhakad
hi, Always thanks for your valuable guidance,   I have following instance of code,    PdfWriter writer = PdfWriter.getInstance(doc, new FileOutputStream("mr.pdf")); .   . . .   PdfContentByte cb = writer.getDirectContent();  . .   .  cb.beginText();   cb.setFontAndSize(normal.getBaseFont(), 11)

Re: [iText-questions] Iterating a collection problem!

2005-05-02 Thread Steve Appling
Doesn't seem to be an iText question, but I think your problem is that you aren't advancing the iterator i after you make it. You are making a new iterator each time you call lignefactures.iterator().next(); use lignefacture = (Lignefacture)i.next(); instead - Original Message - From

[iText-questions] Iterating a collection problem!

2005-05-02 Thread Vincent Cormier
While I'm using an iterator to browse a collection, Tomcat gives me an error message "out of memory". I think my code is ok, I have looked around here and my code seems to be similar as other ones that appears to be working. Someone know what I'm doing wrong? (I'm using dbfw to work with my data

RE: [iText-questions] XmlToRtf question

2005-05-02 Thread Sai Mylavarapu
Bruno & Mark, Thanks for the information. Sai -Original Message- From: Mark Hall [mailto:[EMAIL PROTECTED] Sent: Monday, May 02, 2005 5:20 AM To: itext-questions@lists.sourceforge.net Cc: Bruno Lowagie; Sai Mylavarapu Subject: Re: [iText-questions] XmlToRtf question On Monday 02 May 2

RE: [iText-questions] Embedded font in PDF document problem

2005-05-02 Thread Paulo Soares
Tomorrow. > -Original Message- > From: Claudia Murialdo [mailto:[EMAIL PROTECTED] > Sent: Monday, May 02, 2005 2:04 PM > To: Paulo Soares > Cc: itext-questions@lists.sourceforge.net > Subject: Re: [iText-questions] Embedded font in PDF document problem > > Paulo, > Will we have the new

Re: [iText-questions] Embedded font in PDF document problem

2005-05-02 Thread Claudia Murialdo
Paulo, Will we have the new version this week?. Regards, Claudia. On 4/26/05, Claudia Murialdo <[EMAIL PROTECTED]> wrote: > OK, Thank you. > > On 4/26/05, Paulo Soares <[EMAIL PROTECTED]> wrote: > > This week. > > > > > -Original Message- > > > From: Claudia Murialdo [mailto:[EMAIL PROT

RE: [iText-questions] Small enhancement for CMYKColor

2005-05-02 Thread Leonard Rosenthol
At 06:50 AM 5/2/2005, Paulo Soares wrote: That's a too specific constructor. I don't think so... It's simply another way to specify a color...I allow this in my C++ library for specifying colors - in fact, I take it one step further with a general purpose "ColorFromString()" type

Re: [iText-questions] Small enhancement for CMYKColor

2005-05-02 Thread Bruno Lowagie
Paulo Soares wrote: That's a too specific constructor. Decoding of an HTML/XML color should be done in the parser and not in PdfContentByte. I can also argue that I need a constructor accepting an int and the RGB color should not be left out. Next will come the color decoding by name "red", "rot",

RE: [iText-questions] nullpointer exception on document.close with empty pages

2005-05-02 Thread Paulo Soares
What's the stack trace? You should have line numbers now. > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On > Behalf Of Erik van Eekelen > Sent: Monday, May 02, 2005 11:48 AM > To: itext-questions@lists.sourceforge.net > Subject: RE: [iText-questions] nullpoi

RE: [iText-questions] Small enhancement for CMYKColor

2005-05-02 Thread Paulo Soares
That's a too specific constructor. Decoding of an HTML/XML color should be done in the parser and not in PdfContentByte. I can also argue that I need a constructor accepting an int and the RGB color should not be left out. Next will come the color decoding by name "red", "rot", "rouge", "rojo", "en

RE: [iText-questions] nullpointer exception on document.close with empty pages

2005-05-02 Thread Erik van Eekelen
Hi, I wasn't really helped by this reply. I installed the version from the site mentioned below, but I got the exact same error. I didn't get my debugger to go through the itext source code, so I can't tell you exactly where the bug (?) occurs, only the method (see the exception code below). Am

Re: [iText-questions] Small enhancement for CMYKColor

2005-05-02 Thread Bruno Lowagie
Michael Glauche wrote: Hi, I often store values for CMYKColor as hexstrings, for example #00ff. For using them in CMYKColor i made a additional constructor OK, I have added the constructor to the class in the CVS repository. br, Bruno --- T

[iText-questions] Small enhancement for CMYKColor

2005-05-02 Thread Michael Glauche
Hi, I often store values for CMYKColor as hexstrings, for example #00ff. For using them in CMYKColor i made a additional constructor like this: /** * Generates a CMYK Color based on a hex string, for example #00ff for black * * @param color a 4 Byte hex string repre

RE: [iText-questions] Problem whith merge pdfs

2005-05-02 Thread Paulo Soares
When that happens you should have a look at 'result' and see what's really there. It looks like in those cases 'result' is not a pdf. > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On > Behalf Of vadim zabejinsky > Sent: Monday, May 02, 2005 10:08 AM > To: ite

[iText-questions] Problem whith merge pdfs

2005-05-02 Thread vadim zabejinsky
Hi I have a problem Sometimes I get error message. java.io.IOException: PDF header signature not found. at com.lowagie.text.pdf.PRTokeniser.checkPdfHeader(Unknown Source) at com.lowagie.text.pdf.PdfReader.readPdf(Unknown Source) My application uses multithreading for building reports. Each threa

Re: [iText-questions] XmlToRtf question

2005-05-02 Thread Mark Hall
On Monday 02 May 2005 11:10, Bruno Lowagie wrote: > You don't do this in XML, but in your JAVA code. > http://itext.sourceforge.net/tutorial/fonts/getting/index.html#files > http://itext.sourceforge.net/docs/com/lowagie/text/FontFactory.html#registe >rDirectories() As you see, this is a static meth

Re: [iText-questions] XmlToRtf question

2005-05-02 Thread Bruno Lowagie
Mark Hall wrote: On Monday 02 May 2005 07:50, Bruno Lowagie wrote: I think you are forgetting to register the Font with FontFactory. Once you have done this, check the name of the registered fonts. See the tutorial about Fonts and FontFactory. How do you do this when you are going directly

Re: [iText-questions] XmlToRtf question

2005-05-02 Thread Mark Hall
On Monday 02 May 2005 07:50, Bruno Lowagie wrote: > I think you are forgetting to register the Font with FontFactory. > Once you have done this, check the name of the registered fonts. > See the tutorial about Fonts and FontFactory. How do you do this when you are going directly from XML to RTF? G