[iText-questions] convert JSP output to PDF

2007-05-30 Thread Sushant Kamble
Hi all I am SushantI have created a JSP page which will generate University result dynalically based on Seat no. provided by user...Everything is working fineBut i want to know how can I convert that dynamically generated JSP to PDF... Please help ASAP Thanks and regards... Sushant

[iText-questions] Creating PDF with images with color space.

2007-05-30 Thread Jaya Pasachhe
Hello I have been using itext to create different PDF files since last two years. I want to create a pdf files with different images on it. The images could have different color space . I want to keep information of color space of images in pdf file as meta data. Can i do it? and How can i

[iText-questions] Several question about itext

2007-05-30 Thread nguyet minh
Hello, I'm working with itext, and encounter following problems, hope to have your help. - The Document object have setPageSize( ) with argument is a Rectangle. I read in the doc and know that Rectangle.LEGAL is ok. But it throws the error in the complier. It tells that Rectangle.LEGAL is a

Re: [iText-questions] Several question about itext

2007-05-30 Thread Paulo Soares
- Original Message - From: nguyet minh [EMAIL PROTECTED] To: itext-questions@lists.sourceforge.net Sent: Wednesday, May 30, 2007 7:27 AM Subject: [iText-questions] Several question about itext Hello, I'm working with itext, and encounter following problems, hope to have your help. -

Re: [iText-questions] Memory problem

2007-05-30 Thread Paulo Soares
That may happen if the PDF is very big and there's not enough continuous virtual memory available to map the file. Paulo - Original Message - From: Thomas Kübler [EMAIL PROTECTED] To: itext-questions@lists.sourceforge.net Sent: Wednesday, May 30, 2007 6:01 AM Subject: [iText-questions]

Re: [iText-questions] Memory problem

2007-05-30 Thread Thomas Kübler
Hello, ok, what can i do? the files are about 300 MB until 1.000 MB, with the itext-version 1.3 it seems to be work, are there any changes in the version 2.0.2? Mit freundlichen Grüßen Thomas Kübler Dynamic Document Solution variex Alt-Marienfelde 25 12277

Re: [iText-questions] Memory problem

2007-05-30 Thread Paulo Soares
Different jdk have different memory management. I'll add an option to RandomAccessFileOrArray to avoid this kind of problems. Paulo - Original Message - From: Thomas Kübler [EMAIL PROTECTED] To: Post all your questions about iText here itext-questions@lists.sourceforge.net Sent:

Re: [iText-questions] Metadata

2007-05-30 Thread Thanksforfish
Hi there - again thanks for the swift responses. The workflow I am trying to code for is: A number of pdfs arrive, some incorrectly tagged with incorrect author etc. My piece of code aims to look at each pdf, strip any metadata out and create new xmp metadata including dublin core data, data in

Re: [iText-questions] Metadata

2007-05-30 Thread Paulo Soares
-Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Thanksforfish Sent: Wednesday, May 30, 2007 10:19 AM To: itext-questions@lists.sourceforge.net Subject: Re: [iText-questions] Metadata Hi there - again thanks for the swift responses. The

Re: [iText-questions] Memory problem

2007-05-30 Thread Thomas Kübler
Hello, in which version is this option? Mit freundlichen Grüßen Thomas Kübler Dynamic Document Solution variex Alt-Marienfelde 25 12277 Berlin t. + 49 30 723 23 183 f. + 49 30 723 23 185 mailto:[EMAIL PROTECTED] www.variex.de Paulo Soares schrieb:

[iText-questions] add xml embedded to output pdf

2007-05-30 Thread p_repetti
Hello I need to add a cover page to an existing PDF. My code is based on the example shown in http://itext.ugent.be/library/com/lowagie/examples/general/copystamp/Concatenate.java and it works pretty well. But: The existing PDF has embedded XML metadata, which I can extract by

Re: [iText-questions] Memory problem

2007-05-30 Thread Paulo Soares
In the next one. Paulo -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Thomas Kübler Sent: Wednesday, May 30, 2007 11:13 AM To: Post all your questions about iText here Subject: Re: [iText-questions] Memory problem Hello, in which version

Re: [iText-questions] add xml embedded to output pdf

2007-05-30 Thread Paulo Soares
writer.setXmpMetadata(). Paulo -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of p_repetti Sent: Wednesday, May 30, 2007 11:14 AM To: itext-questions@lists.sourceforge.net Subject: [iText-questions] add xml embedded to output pdf Hello I

Re: [iText-questions] Creating PDF with images with color space.

2007-05-30 Thread Leonard Rosenthol
On May 30, 2007, at 1:33 AM, Jaya Pasachhe wrote: I have been using itext to create different PDF files since last two years. I want to create a pdf files with different images on it. The images could have different color space . OK - no problem there. What colorspaces? I want

Re: [iText-questions] Chunk.NEXTPAGE being ignored

2007-05-30 Thread Paulo Soares
It won't work in PdfPTable and I'm not sure about Table. Paulo -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of David Sharp Sent: Tuesday, May 29, 2007 5:15 PM To: itext-questions@lists.sourceforge.net Subject: [iText-questions] Chunk.NEXTPAGE

Re: [iText-questions] Metadata

2007-05-30 Thread Thanksforfish
Good. Just trying to understand whats going on and why. Paulo Soares wrote: -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Thanksforfish Sent: Wednesday, May 30, 2007 10:19 AM To: itext-questions@lists.sourceforge.net Subject: Re:

Re: [iText-questions] Japanese character in destination

2007-05-30 Thread Paulo Soares
There's not a simple answer for that. The named destinations are not really string but rather bytes that are interpreted according to the current locale. Currently the locale expected is iso-8859-1 and text will be correctly rendered. Other locales will work but the text will be meaningless. I'll

[iText-questions] PDF generation from dynamically generating XML file

2007-05-30 Thread Miryala, Manoj
Hi, I was newly looking into iText. I have to generate PDF file from the dynamically getting XML file. I need the steps from scratch like which jar file I need to use. Could you please help where can I all the get details from? Manoj

Re: [iText-questions] PDF generation from dynamically generating XMLfile

2007-05-30 Thread Paulo Soares
Buy the book iText in Action, it has lots of step by step examples. Paulo -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Miryala, Manoj Sent: Wednesday, May 30, 2007 3:17 PM To: itext-questions@lists.sourceforge.net Subject: [iText-questions]

Re: [iText-questions] itextsharp bug (i think) and fix

2007-05-30 Thread Bruno Lowagie
Wayne Quinlivan-Smith wrote: Hi Bruno Hi, I'm sorry for the delay. I went from meeting to meeting again today, and when I got home, I saw the quota of my INBOX was exceeded. I'm struggling through my mail and I won't be able to answer all questions, therefore I'm forwarding this to the mailing

Re: [iText-questions] itextsharp bug (i think) and fix

2007-05-30 Thread Paulo Soares
Please post the PDF and the code so that the problem can be reproduced. Paulo -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Bruno Lowagie Sent: Wednesday, May 30, 2007 4:20 PM To: Wayne Quinlivan-Smith; Post all your questions about iText here

Re: [iText-questions] Japanese character in destination

2007-05-30 Thread Tony He
Paulo: Thanks for your reply. When will the next release be avaialbe? Is it possible for me to get a pre-release with the workaround? Thanks, Jingrong On 5/30/07, Paulo Soares [EMAIL PROTECTED] wrote: There's not a simple answer for that. The named destinations are not really string but

[iText-questions] Announcing releases

2007-05-30 Thread William L. Thomson Jr.
If possible can releases be announced on the list. Or is there a RSS feed or some means of monitoring releases? I seem to have to always hit the web site or find out from a user or etc about a new version :( Not to desirable. Please excuse my ignorance if what I seek already exists. If so please

Re: [iText-questions] Not using com.sun.* classes

2007-05-30 Thread Bill Ensley
It's always been a bad idea to use com.sun.* classes due to them not being present in JDKs/JREs other than Sun's. With that said seems the only class using any com.sun.* stuff is PdfGraphics2D.java. This was added by me some years ago. I is simply a convienience constructor and is ignored if

Re: [iText-questions] Not using com.sun.* classes

2007-05-30 Thread Bill Ensley
Taking the bull by the horns I went ahead and modified that class to use ImageIO which should be in all VMs =1.4, sun or not. I ran a few simple tests to make sure the code works. I am pretty sure it does, but could use further testing and review. If it's borked, at least I made an effort

Re: [iText-questions] Not using com.sun.* classes

2007-05-30 Thread William L. Thomson Jr.
On Wed, 2007-05-30 at 11:23 -0700, Bill Ensley wrote: Sorry, I didn't read far enough into your post, I looked at your patch, and it will work, but it doesn't make use of the jpegQuality parameter. Yeah was not sure about that. I will try to come up with a solution shortly. Cool, thanks

Re: [iText-questions] Not using com.sun.* classes

2007-05-30 Thread William L. Thomson Jr.
On Wed, 2007-05-30 at 11:20 -0700, Bill Ensley wrote: It's always been a bad idea to use com.sun.* classes due to them not being present in JDKs/JREs other than Sun's. With that said seems the only class using any com.sun.* stuff is PdfGraphics2D.java. This was added by me some years

[iText-questions] absolute position in RTF

2007-05-30 Thread Ruskin Dantra
Hi All, I have already searched examples and mailing list archive and I found next to nothing on this topic. Is it possible to add elements (text including) to a rtf file at an absolute position? I know that rtf is very different from pdf but just wondering if there is way to do this using

Re: [iText-questions] absolute position in RTF

2007-05-30 Thread mister bean
Generally not. Because RTF is paginated when it's rendered, it's impossible to know beforehand what the exact location of any given element will be. ---Mister Bean Ruskin Dantra wrote: Hi All, I have already searched examples and mailing list archive and I found next to nothing on this

Re: [iText-questions] absolute position in RTF

2007-05-30 Thread Ruskin Dantra
True...if thats the case is it possible to convert a pdf file generated by itext to be converted to a rtf file via itext. Its kind of going the long way but if thats possible then it would be awesome?! Also the resulting rtf file should have similar (identical would be a dream) formatting as

[iText-questions] Error when using BaseFont.createFont

2007-05-30 Thread Ram Mangavalli
I am using iText 1.4.5. when my application runs, I get the following error. Operation not supported. Map failed java.io.IOException: Operation not supported. Map failed at java.lang.Throwable.init(Throwable.java:195) at java.lang.Exception.init(Exception.java:41)

[iText-questions] Adding OMR on an existing PDF

2007-05-30 Thread Dhiraj Shrivastava
Hi, I am first time user of iText. I am using this to manipulate existing PDF files but having hard time to figure out ways to do the following: 1. How to add an OMR (Optical Mark Reorganization) at the top right of an existing PDF? 2. I want PDF to be read only. It should not be

[iText-questions] Adding OMR on an existing PDF

2007-05-30 Thread Shrivastava Dhiraj
Hi, I am first time user of iText. I am using this to manipulate existing PDF files but having hard time to figure out ways to do the following: 1. How to add an OMR (Optical Mark Reorganization) at the top right of an existing PDF? 2. I want PDF to be read only. It should not

[iText-questions] Am I using scaleToFit correctly?

2007-05-30 Thread Thomas Jeziorny
Hello, I'm working on application that creates pdf documents that contain some client specific information along with a logo that our clients upload to our database in pdf format. I'm retieving the logo as a byte array ( from a BLOB) that I then use to create an Image object. Since the

Re: [iText-questions] Adding OMR on an existing PDF

2007-05-30 Thread Paulo Soares
- Original Message - From: Dhiraj Shrivastava [EMAIL PROTECTED] To: itext-questions@lists.sourceforge.net Sent: Wednesday, May 30, 2007 10:02 PM Subject: [iText-questions] Adding OMR on an existing PDF Hi, I am first time user of iText. I am using this to manipulate existing PDF

Re: [iText-questions] Error when using BaseFont.createFont

2007-05-30 Thread Paulo Soares
You are running jdk 1.3 and iText was compiled with 1.4. Paulo - Original Message - From: Ram Mangavalli [EMAIL PROTECTED] To: itext-questions@lists.sourceforge.net Sent: Wednesday, May 30, 2007 9:55 PM Subject: [iText-questions] Error when using BaseFont.createFont I am using iText

Re: [iText-questions] Japanese character in destination

2007-05-30 Thread Paulo Soares
That's already available in the SVN if you want to compile the source yourself. The next release will be available next week. To use it: byte[] b = ...; //SJIS bytes String s = PdfEncodings.convertToString(b, null); cb.localDestination(s, ...); Paulo - Original Message - From: Tony He

Re: [iText-questions] absolute position in RTF

2007-05-30 Thread Mark Hall
Hi, I'll reply to the original e-mail. Yes, in theory it is possible, but iText does not support this. The only way would be to read the RTF specification and add the required RTF codes directly via the RtfDirectContent class. Greetings, Mark On Wednesday 30 May 2007, Ruskin Dantra wrote: Hi

Re: [iText-questions] Error when using BaseFont.createFont

2007-05-30 Thread Ram Mangavalli
I am running jdk 1.4. This is the command being run on an IBM AS400. java -Djava.version=1.4 -classpath /home/mvmills/java/lib/jt400.jar:+ /spltopdf/iText-1.4.5.jar:/spltopdf:. + Spltopdf ' *TCAT PDFPATH *TCAT ' ' + *TCAT PDFNAME *TCAT '' *BCAT + PAGELENGTH *BCAT PAGEWIDTH

Re: [iText-questions] Am I using scaleToFit correctly?

2007-05-30 Thread Paulo Soares
scaleToFit() scales the image so that it fits in those dimensions maintaining the original aspect ratio. One of the dimensions will be one ot the scaleToFit arguments and the other will depend on the image aspect ratio. Paulo - Original Message - From: Thomas Jeziorny [EMAIL

Re: [iText-questions] Error when using BaseFont.createFont

2007-05-30 Thread Paulo Soares
Something changed in your AS400 configuration, we can't help you there. Paulo - Original Message - From: Ram Mangavalli [EMAIL PROTECTED] To: Post all your questions about iText here itext-questions@lists.sourceforge.net Sent: Wednesday, May 30, 2007 10:51 PM Subject: Re:

Re: [iText-questions] absolute position in RTF

2007-05-30 Thread mister bean
This is probably off-topic on this list, but aren't the limited paragraph-positioning codes in RTF still subject to the vagaries of pagination, thereby making absolute location quasi-impossible, barring unusual kinds of docs? (i.e., you can locate a paragraph on the page, but you can't know

[iText-questions] Cannot create PDF file using jar

2007-05-30 Thread Raj Sidh
Hi, I created an application (on Windows XP) that outputs PDF file. While it can output the file when I run it under Eclipse environment, it does not create the file when I double click the jar to run the same. Basically I am writing this PDF file as C:\temp\somefile.pdf. Please advice what I

[iText-questions] Editing AcroForms

2007-05-30 Thread Joe L
Hi, I have an AcroForm that I created with Acrobat 8 Professional. It allows the users to enter data into the form and save it. I have a combo box in the form and I want to add values to it. After I add the values to the form, when I open the form in Acrobat it says the form has been

[iText-questions] Search String in PDF documents.

2007-05-30 Thread nagesh.venkata
Hi, Is it possible to seach the number of occurences of particualr string in the existing PDF documents using iText. Thanks and Regards Nagesh - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the

Re: [iText-questions] Search String in PDF documents.

2007-05-30 Thread Bruno Lowagie
[EMAIL PROTECTED] wrote: Hi, Is it possible to seach the number of occurences of particualr string in the existing PDF documents using iText. No, that's not possible with iText. br, Bruno - This SF.net email is

Re: [iText-questions] Editing AcroForms

2007-05-30 Thread Bruno Lowagie
Joe L wrote: The message says something about the form having changed and the permissions don't apply anymore. Then it says to contact the original author for the original copy. Is there a way to get around this? It'd be nice if I could edit the form and the permissions remain, so

Re: [iText-questions] Cannot create PDF file using jar

2007-05-30 Thread Bruno Lowagie
Raj Sidh wrote: Hi, I created an application (on Windows XP) that outputs PDF file. In other words: you are using iText and it works. While it can output the file when I run it under Eclipse environment, it does not create the file when I double click the jar to run the same. Basically

Re: [iText-questions] Announcing releases

2007-05-30 Thread Bruno Lowagie
First of all: iText 2.0.3 was a 'silent' release. I needed a release, but I knew that I would have to make a 2.0.4 release this week (but due to the lack of time, I'll have to postpone iText 2.0.4 till next week). Because I knew there would be two releases in less than two weeks, I thought it

Re: [iText-questions] Search String in PDF documents.

2007-05-30 Thread nagesh.venkata
Is it possible to read the PDF document line by line (or by paragraph wise) as a String. Thanks and Regards Nagesh -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Bruno Lowagie Sent: Thursday, May 31, 2007 10:47 AM To: Post all your questions about