Re: [iText-questions] XmlToRtf question
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? Greetings, Mark -- Keep your Eye on the Ball, Your Shoulder to the Wheel, Your Nose to the Grindstone, Your Feet on the Ground, Your Head on your Shoulders. Now... try to get something DONE! My GPG public key is available at: http://www.edu.uni-klu.ac.at/~mhall/data/security/MarkHall.asc pgpyhn5d7vFFV.pgp Description: PGP signature
Re: [iText-questions] XmlToRtf question
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 from XML to RTF? 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#registerDirectories() As you see, this is a static method. Usually you do this once (for instance just after staring the Servlet container) and it will work for all the applications running in the same JVM. br, Bruno Lowagie --- This SF.Net email is sponsored by: NEC IT Guy Games. Get your fingers limbered up and give it your best shot. 4 great events, 4 opportunities to win big! Highest score wins.NEC IT Guy Games. Play to win an NEC 61 plasma display. Visit http://www.necitguy.com/?r=20 ___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions
Re: [iText-questions] XmlToRtf question
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 method. Usually you do this once (for instance just after staring the Servlet container) and it will work for all the applications running in the same JVM. Thanks. I've understood it now :-) Greetings, Mark -- At no time is freedom of speech more precious than when a man hits his thumb with a hammer. -- Marshall Lumsden My GPG public key is available at: http://www.edu.uni-klu.ac.at/~mhall/data/security/MarkHall.asc pgpbBtgdlIPId.pgp Description: PGP signature
[iText-questions] Problem whith merge pdfs
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 thread return result=baos.toByteArray(); Here is the code to add result to end document PdfReader reader = new PdfReader(result); reader.consolidateNamedDestinations(); int pages = reader.getNumberOfPages(); PdfContentByte cb = pdfWriter.getDirectContent(); PdfImportedPage page; for (int i=0; ipages; ) { ++i; document.newPage(); page= pdfWriter.getImportedPage(reader,i); cb.addTemplate(page,1f,0,0,1f,0,0); } this error occure from time to time with no consistency can somebody help with this? __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com --- This SF.Net email is sponsored by: NEC IT Guy Games. Get your fingers limbered up and give it your best shot. 4 great events, 4 opportunities to win big! Highest score wins.NEC IT Guy Games. Play to win an NEC 61 plasma display. Visit http://www.necitguy.com/?r=20 ___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions
RE: [iText-questions] Problem whith merge pdfs
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: itext-questions@lists.sourceforge.net Subject: [iText-questions] Problem whith merge pdfs 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 thread return result=baos.toByteArray(); Here is the code to add result to end document PdfReader reader = new PdfReader(result); reader.consolidateNamedDestinations(); int pages = reader.getNumberOfPages(); PdfContentByte cb = pdfWriter.getDirectContent(); PdfImportedPage page; for (int i=0; ipages; ) { ++i; document.newPage(); page= pdfWriter.getImportedPage(reader,i); cb.addTemplate(page,1f,0,0,1f,0,0); } this error occure from time to time with no consistency can somebody help with this? __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com --- This SF.Net email is sponsored by: NEC IT Guy Games. Get your fingers limbered up and give it your best shot. 4 great events, 4 opportunities to win big! Highest score wins.NEC IT Guy Games. Play to win an NEC 61 plasma display. Visit http://www.necitguy.com/?r=20 ___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions --- This SF.Net email is sponsored by: NEC IT Guy Games. Get your fingers limbered up and give it your best shot. 4 great events, 4 opportunities to win big! Highest score wins.NEC IT Guy Games. Play to win an NEC 61 plasma display. Visit http://www.necitguy.com/?r ___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions
[iText-questions] Small enhancement for CMYKColor
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 representing the cmyk color */ public CMYKColor(String color) { super(Integer.parseInt(color.substring(1,3),16), Integer.parseInt(color.substring(3,5),16), Integer.parseInt(color.substring(5,7),16), Integer.parseInt(color.substring(7,9),16)); } Regards, Michael --- This SF.Net email is sponsored by: NEC IT Guy Games. Get your fingers limbered up and give it your best shot. 4 great events, 4 opportunities to win big! Highest score wins.NEC IT Guy Games. Play to win an NEC 61 plasma display. Visit http://www.necitguy.com/?r=20 ___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions
Re: [iText-questions] Small enhancement for CMYKColor
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 --- This SF.Net email is sponsored by: NEC IT Guy Games. Get your fingers limbered up and give it your best shot. 4 great events, 4 opportunities to win big! Highest score wins.NEC IT Guy Games. Play to win an NEC 61 plasma display. Visit http://www.necitguy.com/?r=20 ___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions
RE: [iText-questions] nullpointer exception on document.close with empty pages
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 I doing something wrong (see my piece of source) or is it a bug, itext not being able to work with blank pages? Thanks for your help, Erik -Original Message- From: Paulo Soares [mailto:[EMAIL PROTECTED] Sent: Wednesday, April 27, 2005 13:55 To: Erik van Eekelen; itext-questions@lists.sourceforge.net Subject: RE: [iText-questions] nullpointer exception on document.close with empty pages Get the version from http://itextpdf.sf.net, this is only to get the line numbers in the stack trace. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Erik van Eekelen Sent: Wednesday, April 27, 2005 12:45 PM To: itext-questions@lists.sourceforge.net Subject: [iText-questions] nullpointer exception on document.close with empty pages Hi, I'm using the latest stable release of itext (version 1.3) and I get the following error when working with PDF's that contain a blank page. What I do is split an existing PDF document in two: the first pages and the last page are seperated (this because the last page needs to be sent to a different printer tray and therefore need to be two different print jobs). Below you will find the code and the exception. What am I doing wrong? Kind Regards, Erik van Eekelen Code: int myNoOfPages = aReader.getNumberOfPages(); Rectangle myPageSize = aReader.getPageSize(1); ByteArrayOutputStream myOutStream = new ByteArrayOutputStream(); com.lowagie.text.Document myDocument = new com.lowagie.text.Document(myPageSize); PdfWriter myWriter = PdfWriter.getInstance(myDocument, myOutStream); myDocument.open(); for (int i=1;i=myNoOfPages-1;i++) { theLogger.debug(Added page: + i); myDocument.newPage(); PdfContentByte myContentByte = myWriter.getDirectContent(); PdfImportedPage myImport = myWriter.getImportedPage(aReader, i); myContentByte.addTemplate(myImport,0,0); } myDocument.close(); //this is where the error occurs addCommand(myOutStream.toByteArray(), true, false); myOutStream.close(); error: java.lang.NullPointerException at com.lowagie.text.pdf.PRStream.init(Unknown Source) at com.lowagie.text.pdf.PdfReaderInstance.getFormXObject(Unknown Source) at com.lowagie.text.pdf.PdfImportedPage.getFormXObject(Unknown Source) at com.lowagie.text.pdf.PdfReaderInstance.writeAllPages(Unknown Source) at com.lowagie.text.pdf.PdfWriter.addSharedObjectsToBody(Unknown Source) at com.lowagie.text.pdf.PdfWriter.close(Unknown Source) at com.lowagie.text.pdf.PdfDocument.close(Unknown Source) at com.lowagie.text.Document.close(Unknown Source) --- This SF.Net email is sponsored by: NEC IT Guy Games. Get your fingers limbered up and give it your best shot. 4 great events, 4 opportunities to win big! Highest score wins.NEC IT Guy Games. Play to win an NEC 61 plasma display. Visit http://www.necitguy.com/?r=20 ___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions
RE: [iText-questions] Small enhancement for CMYKColor
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, encarnado? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Bruno Lowagie Sent: Monday, May 02, 2005 11:35 AM To: Michael Glauche Cc: iText Mail Group Subject: Re: [iText-questions] Small enhancement for CMYKColor 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 --- This SF.Net email is sponsored by: NEC IT Guy Games. Get your fingers limbered up and give it your best shot. 4 great events, 4 opportunities to win big! Highest score wins.NEC IT Guy Games. Play to win an NEC 61 plasma display. Visit http://www.necitguy.com/?r=20 ___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions --- This SF.Net email is sponsored by: NEC IT Guy Games. Get your fingers limbered up and give it your best shot. 4 great events, 4 opportunities to win big! Highest score wins.NEC IT Guy Games. Play to win an NEC 61 plasma display. Visit http://www.necitguy.com/?r ___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions
RE: [iText-questions] nullpointer exception on document.close with empty pages
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] nullpointer exception on document.close with empty pages 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 I doing something wrong (see my piece of source) or is it a bug, itext not being able to work with blank pages? Thanks for your help, Erik -Original Message- From: Paulo Soares [mailto:[EMAIL PROTECTED] Sent: Wednesday, April 27, 2005 13:55 To: Erik van Eekelen; itext-questions@lists.sourceforge.net Subject: RE: [iText-questions] nullpointer exception on document.close with empty pages Get the version from http://itextpdf.sf.net, this is only to get the line numbers in the stack trace. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Erik van Eekelen Sent: Wednesday, April 27, 2005 12:45 PM To: itext-questions@lists.sourceforge.net Subject: [iText-questions] nullpointer exception on document.close with empty pages Hi, I'm using the latest stable release of itext (version 1.3) and I get the following error when working with PDF's that contain a blank page. What I do is split an existing PDF document in two: the first pages and the last page are seperated (this because the last page needs to be sent to a different printer tray and therefore need to be two different print jobs). Below you will find the code and the exception. What am I doing wrong? Kind Regards, Erik van Eekelen Code: int myNoOfPages = aReader.getNumberOfPages(); Rectangle myPageSize = aReader.getPageSize(1); ByteArrayOutputStream myOutStream = new ByteArrayOutputStream(); com.lowagie.text.Document myDocument = new com.lowagie.text.Document(myPageSize); PdfWriter myWriter = PdfWriter.getInstance(myDocument, myOutStream); myDocument.open(); for (int i=1;i=myNoOfPages-1;i++) { theLogger.debug(Added page: + i); myDocument.newPage(); PdfContentByte myContentByte = myWriter.getDirectContent(); PdfImportedPage myImport = myWriter.getImportedPage(aReader, i); myContentByte.addTemplate(myImport,0,0); } myDocument.close(); //this is where the error occurs addCommand(myOutStream.toByteArray(), true, false); myOutStream.close(); error: java.lang.NullPointerException at com.lowagie.text.pdf.PRStream.init(Unknown Source) at com.lowagie.text.pdf.PdfReaderInstance.getFormXObject(Unknown Source) at com.lowagie.text.pdf.PdfImportedPage.getFormXObject(Unknown Source) at com.lowagie.text.pdf.PdfReaderInstance.writeAllPages(Unknown Source) at com.lowagie.text.pdf.PdfWriter.addSharedObjectsToBody(Unknown Source) at com.lowagie.text.pdf.PdfWriter.close(Unknown Source) at com.lowagie.text.pdf.PdfDocument.close(Unknown Source) at com.lowagie.text.Document.close(Unknown Source) --- This SF.Net email is sponsored by: NEC IT Guy Games. Get your fingers limbered up and give it your best shot. 4 great events, 4 opportunities to win big! Highest score wins.NEC IT Guy Games. Play to win an NEC 61 plasma display. Visit http://www.necitguy.com/?r=20 ___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions --- This SF.Net email is sponsored by: NEC IT Guy Games. Get your fingers limbered up and give it your best shot. 4 great events, 4 opportunities to win big! Highest score wins.NEC IT Guy Games. Play to win an NEC 61 plasma display. Visit http://www.necitguy.com/?r ___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions
Re: [iText-questions] Small enhancement for CMYKColor
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, rouge, rojo, encarnado? OK. Maybe if we don't want to make it impossible for us to refactor iText in the (far) future, we shouldn't add this kind of constructors. As you may have noticed I have added some methods to the markupparser in CVS. I wanted to get rid of the constructors taking a Properties object as parameter. I haven't finished these classes yet, but they may replace com.lowagie.text.markup may replace com.lowagie.text.xml in the future. br, Bruno --- This SF.Net email is sponsored by: NEC IT Guy Games. Get your fingers limbered up and give it your best shot. 4 great events, 4 opportunities to win big! Highest score wins.NEC IT Guy Games. Play to win an NEC 61 plasma display. Visit http://www.necitguy.com/?r=20 ___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions
RE: [iText-questions] Small enhancement for CMYKColor
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 method that allows a variety of textual ways to specify colors and just does the right thing. Decoding of an HTML/XML color should be done in the parser and not in PdfContentByte. Why? 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, encarnado? Sure, why not? LDR --- Leonard Rosentholmailto:[EMAIL PROTECTED] Chief Technical Officer http://www.pdfsages.com PDF Sages, Inc. 215-938-7080 (voice) 215-938-0880 (fax) --- This SF.Net email is sponsored by: NEC IT Guy Games. Get your fingers limbered up and give it your best shot. 4 great events, 4 opportunities to win big! Highest score wins.NEC IT Guy Games. Play to win an NEC 61 plasma display. Visit http://www.necitguy.com/?r=20 ___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions
Re: [iText-questions] Embedded font in PDF document problem
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 PROTECTED] Sent: Tuesday, April 26, 2005 4:41 PM To: Paulo Soares Cc: itext-questions@lists.sourceforge.net Subject: Re: [iText-questions] Embedded font in PDF document problem Paulo, OK, thank you very much. Yes, I noticed there are ways to generate barcodes without fonts, with images, but in my application I need to write the barcodes in the same way as common fonts like Arial, Courier. Do you have any idea on when the next release will be available? Best Regards, Claudia. On 4/26/05, Paulo Soares [EMAIL PROTECTED] wrote: In case you haven't noticed, there are ways to generate barcodes without fonts. -Original Message- From: Paulo Soares Sent: Tuesday, April 26, 2005 3:29 PM To: 'Claudia Murialdo'; itext-questions@lists.sourceforge.net Subject: RE: [iText-questions] Embedded font in PDF document problem The fix will be in the next release. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Claudia Murialdo Sent: Monday, April 25, 2005 2:14 PM To: itext-questions@lists.sourceforge.net Subject: [iText-questions] Embedded font in PDF document problem I have a problem with one specific font of a barcode. I have a simple program that prints two fonts with IDENTITY_H encoding. The first font (Code 39) is correctly printed but, the second one doesn't work. I need to embedd the font in the PDF document because it is a web application and I don't want to install de .ttf file on each client machine. My test program and the fonts are in the attachemnts. Any help would be appreciated. Regards, Claudia. --- SF email is sponsored by - The IT Product Guide Read honest candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_ide95alloc_id396opclick ___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions --- SF email is sponsored by - The IT Product Guide Read honest candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_ide95alloc_id396opclick ___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions --- This SF.Net email is sponsored by: NEC IT Guy Games. Get your fingers limbered up and give it your best shot. 4 great events, 4 opportunities to win big! Highest score wins.NEC IT Guy Games. Play to win an NEC 61 plasma display. Visit http://www.necitguy.com/?r ___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions
RE: [iText-questions] Embedded font in PDF document problem
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 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 PROTECTED] Sent: Tuesday, April 26, 2005 4:41 PM To: Paulo Soares Cc: itext-questions@lists.sourceforge.net Subject: Re: [iText-questions] Embedded font in PDF document problem Paulo, OK, thank you very much. Yes, I noticed there are ways to generate barcodes without fonts, with images, but in my application I need to write the barcodes in the same way as common fonts like Arial, Courier. Do you have any idea on when the next release will be available? Best Regards, Claudia. On 4/26/05, Paulo Soares [EMAIL PROTECTED] wrote: In case you haven't noticed, there are ways to generate barcodes without fonts. -Original Message- From: Paulo Soares Sent: Tuesday, April 26, 2005 3:29 PM To: 'Claudia Murialdo'; itext-questions@lists.sourceforge.net Subject: RE: [iText-questions] Embedded font in PDF document problem The fix will be in the next release. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Claudia Murialdo Sent: Monday, April 25, 2005 2:14 PM To: itext-questions@lists.sourceforge.net Subject: [iText-questions] Embedded font in PDF document problem I have a problem with one specific font of a barcode. I have a simple program that prints two fonts with IDENTITY_H encoding. The first font (Code 39) is correctly printed but, the second one doesn't work. I need to embedd the font in the PDF document because it is a web application and I don't want to install de .ttf file on each client machine. My test program and the fonts are in the attachemnts. Any help would be appreciated. Regards, Claudia. --- SF email is sponsored by - The IT Product Guide Read honest candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_ide95alloc_id396opclick ___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions --- SF email is sponsored by - The IT Product Guide Read honest candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_ide95alloc_id396opclick ___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions --- This SF.Net email is sponsored by: NEC IT Guy Games. Get your fingers limbered up and give it your best shot. 4 great events, 4 opportunities to win big! Highest score wins.NEC IT Guy Games. Play to win an NEC 61 plasma display. Visit http://www.necitguy.com/?r ___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions
RE: [iText-questions] XmlToRtf question
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 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#reg iste rDirectories() As you see, this is a static method. Usually you do this once (for instance just after staring the Servlet container) and it will work for all the applications running in the same JVM. Thanks. I've understood it now :-) Greetings, Mark -- At no time is freedom of speech more precious than when a man hits his thumb with a hammer. -- Marshall Lumsden My GPG public key is available at: http://www.edu.uni-klu.ac.at/~mhall/data/security/MarkHall.asc --- This SF.Net email is sponsored by: NEC IT Guy Games. Get your fingers limbered up and give it your best shot. 4 great events, 4 opportunities to win big! Highest score wins.NEC IT Guy Games. Play to win an NEC 61 plasma display. Visit http://www.necitguy.com/?r ___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions
[iText-questions] Iterating a collection problem!
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 database) [...] LignefactureQuery lignefactureQuery = LignefactureQueryFactory.getInstance(db); Collection lignefactures = lignefactureQuery.getCollectionForFacture(facture); Lignefacture lignefacture = null; [...] int row = 3; Iterator i = lignefactures.iterator(); while(i.hasNext()){ lignefacture = (Lignefacture)lignefactures.iterator().next(); aTable.addCell(new Cell(new Chunk(lignefacture.getProduit().getNom())), row, 0); aTable.addCell(new Cell(new Chunk(lignefacture.getQuantite().toString())), row, 2); aTable.addCell(new Cell(new Chunk(lignefacture.getPrixvente().toString())), row, 3); row++; } [...] --- This SF.Net email is sponsored by: NEC IT Guy Games. Get your fingers limbered up and give it your best shot. 4 great events, 4 opportunities to win big! Highest score wins.NEC IT Guy Games. Play to win an NEC 61 plasma display. Visit http://www.necitguy.com/?r=20 ___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions
Re: [iText-questions] Iterating a collection problem!
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: Vincent Cormier [EMAIL PROTECTED] To: itext-questions@lists.sourceforge.net Sent: Monday, May 02, 2005 2:38 PM Subject: [iText-questions] Iterating a collection problem! 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 database) [...] LignefactureQuery lignefactureQuery = LignefactureQueryFactory.getInstance(db); Collection lignefactures = lignefactureQuery.getCollectionForFacture(facture); Lignefacture lignefacture = null; [...] int row = 3; Iterator i = lignefactures.iterator(); while(i.hasNext()){ lignefacture = (Lignefacture)lignefactures.iterator().next(); aTable.addCell(new Cell(new Chunk(lignefacture.getProduit().getNom())), row, 0); aTable.addCell(new Cell(new Chunk(lignefacture.getQuantite().toString())), row, 2); aTable.addCell(new Cell(new Chunk(lignefacture.getPrixvente().toString())), row, 3); row++; } [...] --- This SF.Net email is sponsored by: NEC IT Guy Games. Get your fingers limbered up and give it your best shot. 4 great events, 4 opportunities to win big! Highest score wins.NEC IT Guy Games. Play to win an NEC 61 plasma display. Visit http://www.necitguy.com/?r=20 ___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions --- This SF.Net email is sponsored by: NEC IT Guy Games. Get your fingers limbered up and give it your best shot. 4 great events, 4 opportunities to win big! Highest score wins.NEC IT Guy Games. Play to win an NEC 61 plasma display. Visit http://www.necitguy.com/?r=20 ___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions
[iText-questions] Problem with XmlWriter
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);cb.showTextAligned(Element.ALIGN_RIGHT, CASE NO.:, 435F, 673f, 0);cb.endText ();. . cb.setLineWidth(0.5f);cb.moveTo(doc.left(), 613f);cb.lineTo(doc.right(), 613f);cb.stroke(); My problem is when I try to use (As specified in ch-7 and 1 example (first example)). XmlWriter writer = XmlWriter.getInstance(doc, new FileOutputStream(mr.xml)); 1. at that time it gives problem forconverting content byte related code into xml ? 2. What will alternate solution for this problem ? 3. I can't use PdfContentByte while converting content into .xml ? Waiting for your reply - Kapil Dhakad
[iText-questions] AcroForm
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 Acroform creator free of charge. Please answer me as soon as possible, because I need it in my thesis work! Best regards Peter --- This SF.Net email is sponsored by: NEC IT Guy Games. Get your fingers limbered up and give it your best shot. 4 great events, 4 opportunities to win big! Highest score wins.NEC IT Guy Games. Play to win an NEC 61 plasma display. Visit http://www.necitguy.com/?r=20 ___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions
[iText-questions] Images in a jar file.
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 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 direction. Or tell me that's not possible so I can think of something else. Thanks in advance for any help! -- Avi --- This SF.Net email is sponsored by: NEC IT Guy Games. Get your fingers limbered up and give it your best shot. 4 great events, 4 opportunities to win big! Highest score wins.NEC IT Guy Games. Play to win an NEC 61 plasma display. Visit http://www.necitguy.com/?r=20 ___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions
Re: [iText-questions] Images in a jar file.
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 direction. Or tell me that's not possible so I can think of something else. Thanks in advance for any help! ClassLoader.getResourceAsStream(String) --- This SF.Net email is sponsored by: NEC IT Guy Games. Get your fingers limbered up and give it your best shot. 4 great events, 4 opportunities to win big! Highest score wins.NEC IT Guy Games. Play to win an NEC 61 plasma display. Visit http://www.necitguy.com/?r=20 ___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions