Re: [iText-questions] Many thanks for Itext

2009-06-11 Thread Bruno Lowagie
PortfolioMan wrote: > Just a quick note to Bruno. Many thanks for the creation of this useful tool. Thanks! It's appreciated! best regards, Bruno -- Crystal Reports - New Free Runtime and 30 Day Trial Check out the new si

Re: [iText-questions] Conversion of Encoding

2009-06-11 Thread Bruno Lowagie
Christian Kirchhoff wrote: > Are there high level classes or functions in iText that would allow to > change the encoding? No. If you want to interpret Strings of text depending on the encoding, you need to use the functionality provided by the JDK. br, Bruno

Re: [iText-questions] iText previewing and printing question

2009-06-11 Thread Bruno Lowagie
Steve Ho wrote: > Hi, > > I’m using iText to fill out a pdf form, which is working fine. What I > need now is a way to preview or print a populated pdf form without > saving a copy. Can iText do something like that? iText is not a PDF Viewer! You need another tool to do that. br, Bruno -

Re: [iText-questions] Rows with different colors

2009-06-11 Thread Bruno Lowagie
Gopi Shankar wrote: > Hai to all, > > I am new to i text, My problem is there are n rows in a table, i > need odd numbered rows to be in a color and even numbers to be in a color, > > Plz help me Have a look at the examples: http://1t3xt.be/?X0001a5 br, Bruno -

Re: [iText-questions] question regarding missing trailer

2009-06-11 Thread mkl
Paul, Paul Gatewood wrote: > > Especially the comment you made regarding an "XRef stream style PDF" was > very useful -- this tells me that there are indeed cases where a PDF > legitimately does not have a trailer. > More exactly, these PDFs do have a file trailer. This file trailer, though,

[iText-questions] iText previewing and printing question

2009-06-11 Thread Steve Ho
Hi, I'm using iText to fill out a pdf form, which is working fine. What I need now is a way to preview or print a populated pdf form without saving a copy. Can iText do something like that? Thanks, Steve -- C

Re: [iText-questions] question regarding missing trailer

2009-06-11 Thread Paul Gatewood
Michael, Thank you very much for the feedback. I'm sorry I did not read all of your response earlier -- I was replying to Leonard and Bruno. Especially the comment you made regarding an "XRef stream style PDF" was very useful -- this tells me that there are indeed cases where a PDF legitimate

Re: [iText-questions] question regarding missing trailer

2009-06-11 Thread Paul Gatewood
Thanks Leonard -- I am working on getting a test case from the source of the original document. In the meantime, did you have a chance to take a look at the text at the end of sectoin 7.5.8.1 of http://www.adobe.com/devnet/acrobat/pdfs/PDF32000_2008.pdf? > The value following the start

Re: [iText-questions] Rows with different colors

2009-06-11 Thread Dan Fox
Great! One I can answer. Thanks! Try this: (code has been edited for brevity) private float grayFill = 0.8f; // 0.0 = black; 1.0 = white (no fill) private Boolean paintThisRowGray = false; // to control the alternate row painting { ArrayList cellsForThisRow = new ArrayList(); cellsForThisRow.ad

[iText-questions] Many thanks for Itext

2009-06-11 Thread PortfolioMan
Just a quick note to Bruno. Many thanks for the creation of this useful tool. -- View this message in context: http://www.nabble.com/Many-thanks-for-Itext-tp23984938p23984938.html Sent from the iText - General mailing list archive at Nabble.com.

[iText-questions] Conversion of Encoding

2009-06-11 Thread Christian Kirchhoff
Hello, I am (just at the beginning of) trying to parse existing pdf documents with iText. I started with the ClimbTheTree example (http://www.1t3xt.info/examples/browse/?page=example&id=262) I am able to read the ressources of a page and to find out which fonts are used on that page. I under

Re: [iText-questions] question regarding missing trailer

2009-06-11 Thread Leonard Rosenthol
I can't explain why Acrobat isn't adding the trailer w/o seeing the original - sorry :(. Leonard On 6/11/09 5:04 PM, "Paul Gatewood" wrote: Hi Bruno, Sorry for the confusion -- yes, the problem still exists. Again, here is exactly what I did, using Adobe Acrobat 9 Pro, Version 9.1.1 on Wind

[iText-questions] Rows with different colors

2009-06-11 Thread Gopi Shankar
Hai to all, I am new to i text, My problem is there are n rows in a table, i need odd numbered rows to be in a color and even numbers to be in a color, Plz help me -- View this message in context: http://www.nabble.com/Rows-with-different-colors-tp23983060p23983060.html Sent fr

Re: [iText-questions] question regarding missing trailer

2009-06-11 Thread Paul Gatewood
Yes, that is right -- the original file did not have a trailer. This arises when I am creating a combined PDF from several files. At the point when I instantiate a PdfReader for the original file, I get the IOException, with the "missing trailer" message. I have contact information from the or

Re: [iText-questions] question regarding missing trailer

2009-06-11 Thread Leonard Rosenthol
OH - the original file didn't have a trailer either??? Leonard On 6/11/09 3:28 PM, "Paul Gatewood" wrote: Hi Leonard, Thanks for the very speedy feedback. I am using Adobe Acrobat 9 Pro, Version 9.1.1 on Windows XP. I am going to repeat my steps here, just to be sure. 1) Start Acrobat 2) Op

Re: [iText-questions] question regarding missing trailer

2009-06-11 Thread Paul Gatewood
Hi Bruno, Sorry for the confusion -- yes, the problem still exists. Again, here is exactly what I did, using Adobe Acrobat 9 Pro, Version 9.1.1 on Windows XP. 1) Start Acrobat 2) Open original file (without trailer) (sorry I can not supply this -- it has confidential information from a

Re: [iText-questions] Invalid save/restore save

2009-06-11 Thread Bruno Lowagie
Zlatko Suslevski wrote: > Hello, > > I'm struggling with this problem for a long time. I have read all > resources about this problem, but to no avail. > > The one and only area of iText I'm using, is to obtain the graphics > context. After that, i do my own drawing and do not depend on the ite

Re: [iText-questions] extract image information

2009-06-11 Thread Gunther Verhemeldonck
Bruno, Leonard Thanks for your suggestions. It works out just fine ! private void addCharts(PdfWriter writer, Document doc) throws Exception { log.info("Adding charts"); if (pib.charts != null) { for (byte[] chartPDFAsBytes : pib.charts) {

[iText-questions] Invalid save/restore save

2009-06-11 Thread Zlatko Suslevski
Hello, I'm struggling with this problem for a long time. I have read all resources about this problem, but to no avail. The one and only area of iText I'm using, is to obtain the graphics context. After that, i do my own drawing and do not depend on the itext components. When there is only one

Re: [iText-questions] question regarding missing trailer

2009-06-11 Thread Bruno Lowagie
Paul Gatewood wrote: > Please ignore the text > "Yes, I produced the file as follows: " > after my name -- I had started to describe what I had done before I > decided to just do it again, step-by-step, to be sure. I don't understand: is there still a problem? Or did redoing everything step-

Re: [iText-questions] Unexpected vector lines after sending generated PDF map document to a printer

2009-06-11 Thread Leonard Rosenthol
Your vectors extend off the edge of the PDF page. When printed by Adobe Acrobat (or any other ISO 32000-1 compliant reader), you will NOT see anything outside of that area. Can you please explain how you are printing this document and not seeing the clipping? Leonard On 6/11/09 12:07 PM, "O

Re: [iText-questions] extract image information

2009-06-11 Thread Leonard Rosenthol
Why not just use importedPage() and put it in the middle of one of your pages with a header, etc? Leonard On 6/11/09 1:21 PM, "Gunther Verhemeldonck" wrote: Hi bruno Thank you for your reply. I'll explain in more detail. I create an inmemory PDF containing plain text (Chapter/Section/Par

Re: [iText-questions] question regarding missing trailer

2009-06-11 Thread Paulo Soares
Looks like someone has edited the file with a binary editor. The xref and the trailer was cut out together with any producer info, some objects are missing. Maybe a joke? On you or on us? Paulo - Original Message - From: "Paul Gatewood" To: Sent: Thursday, June 11, 2009 1:19 PM Subje

Re: [iText-questions] question regarding missing trailer

2009-06-11 Thread Paul Gatewood
Please ignore the text "Yes, I produced the file as follows: " after my name -- I had started to describe what I had done before I decided to just do it again, step-by-step, to be sure. Paul Gatewood wrote: > Hi Leonard, > > Thanks for the very speedy feedback. > > I am using Adobe Acrobat

Re: [iText-questions] question regarding missing trailer

2009-06-11 Thread mkl
wgap, wgap wrote: > > I have recently encountered documents without the trailer (IOException > "trailer not found" when instantiating PdfReader). > > [...] > > I can not supply the PDF I received, due to its confidential content. > I have, however, edited it with Acrobat 9 to remove all the c

Re: [iText-questions] question regarding missing trailer

2009-06-11 Thread Paul Gatewood
Hi Leonard, Thanks for the very speedy feedback. I am using Adobe Acrobat 9 Pro, Version 9.1.1 on Windows XP. I am going to repeat my steps here, just to be sure. 1) Start Acrobat 2) Open original file (without trailer) (sorry I can not supply this -- it has confidential information from a 3rd

Re: [iText-questions] Unexpected vector lines after sending generated PDF map document to a printer

2009-06-11 Thread Paulo Soares
Looks like a problem with the printer driver that can't process correctly very long lines, maybe overflowing internally. On another matter, check your PDF creation, you are putting a form where the content should be. The reader ignores the extra keys but it's wrong nevertheless. Paulo - Or

Re: [iText-questions] question regarding missing trailer

2009-06-11 Thread Leonard Rosenthol
Yes - without the trailer you can't find anything else in the PDF. I find it VERY hard to believe that you saved that file from Adobe Acrobat 9.x - it would have a trailer. Please provide the file that you opened originally in Acrobat 9 and then any information about the saving process. Did you

[iText-questions] question regarding missing trailer

2009-06-11 Thread Paul Gatewood
Is the trailer element always required in a PDF document? I have recently encountered documents without the trailer (IOException "trailer not found" when instantiating PdfReader). In the past, the "save as" feature of Acrobat produced a PDF with the trailer. Now I am using Acrobat 9 and the

Re: [iText-questions] extract image information

2009-06-11 Thread Bruno Lowagie
Gunther Verhemeldonck wrote: > My first attempt used PdfCopyFields to attach the other PDFs. Why PdfCopyFields? You don't mention any forms or form fields. In that case: why would you use PdfCopyFields? > This works as expected, but the footer information isn't attached to the > newly added pa

Re: [iText-questions] Convert HTML to RTF and RTF to HTML

2009-06-11 Thread Howard Shank
It is possible, however, iText RTF does not support parsing of RTF documents for conversion to other types at this time. Howard Shank From: Michael Gitelman To: itext-questions@lists.sourceforge.net Sent: Wednesday, June 10, 2009 6:03:52 PM Subject: [iText-qu

Re: [iText-questions] working with a tagmap

2009-06-11 Thread Vlietstra, Fred
Bruno, I have the book. I overlooked the sentence about xml parsing. Maybe you cab place this in an appendix or completely remove this from the book. Kind regards Fred Vlietstra / Capgemini BAS B.V / Amersfoort Java Business Solutions -Original Message- From: Bruno Lowagie [mailto:

Re: [iText-questions] extract image information

2009-06-11 Thread Leonard Rosenthol
Type1C is a font stream. Perhaps the PDF doesn't have an image, but is made up of text and/or vector content? Leonard On 6/11/09 11:08 AM, "Gunther Verhemeldonck" wrote: Hi I receive a batch of 3rd party PDF documents containing only one page with what seems to be 1 big image (a chart).

Re: [iText-questions] extract image information

2009-06-11 Thread Bruno Lowagie
Gunther Verhemeldonck wrote: > > Hi > > I receive a batch of 3rd party PDF documents containing only one page > with what seems to be 1 big image (a chart). > I need to concat these files into another document. This works fine > using PDFCopy, but since there is no page event, I loose the foot

Re: [iText-questions] persian pdf

2009-06-11 Thread Bruno Lowagie
Ebrahim Pasbani wrote: > Hi. > I use iText for my applications. > I need to create Persian pdf. > Persian is Farsi, it is a language. All languages are shown in this iText generated PDF: http://1t3xt.info/examples/results/in_action/chapter09/peace.pdf Farsi is one of them (see page 9 of the docume

[iText-questions] persian pdf

2009-06-11 Thread Ebrahim Pasbani
Hi. I use iText for my applications. I need to create Persian pdf. Persian is Farsi, it is a language. How can I do this? I try to do this, but created pdf has nothing to show. Thanks Ebrahim Pasbani -- Crystal Reports -

[iText-questions] extract image information

2009-06-11 Thread Gunther Verhemeldonck
Hi I receive a batch of 3rd party PDF documents containing only one page with what seems to be 1 big image (a chart). I need to concat these files into another document. This works fine using PDFCopy, but since there is no page event, I loose the footer for those added pages. On a test PDF I

Re: [iText-questions] working with a tagmap

2009-06-11 Thread Bruno Lowagie
Vlietstra, Fred wrote: > If it is obsolete why is there an example in the book ?? Did you read the book? Or did you only look at the examples? Because if you've read the book, you may have overlooked this: "This functionality is old, and it was never completed. It was written to serve a specifi

[iText-questions] hi it really works..

2009-06-11 Thread ER. Nelash jindal
hi guys.. it really works chk it out http://www.secret-loves.com/index.php?test=1642199 -- Crystal Reports - New Free Runtime and 30 Day Trial Check out the new simplified licensing option that enables unlimited royalty-f

Re: [iText-questions] working with a tagmap

2009-06-11 Thread Vlietstra, Fred
If it is obsolete why is there an example in the book ?? Fred Vlietstra / Capgemini BAS B.V / Amersfoort Java Business Solutions Application designer Tel: +31 (0)33 4503503 / Fax: +31(0)88 6610007 www.nl.capgemini.com Mob +31 (0)6 27084108 De Brand 10 3822 LH Amersfoort Postbus 800 3800 AV Amers

Re: [iText-questions] Necessary changes when updating from itext 2.0.4 to 2.1.5?

2009-06-11 Thread Bruno Lowagie
Tobias van Treeck wrote: > Hi Bruno, > > may i ask which bug it was and what exactly went wrong? Yes, see the release notes for 2.1.6: http://1t3xt.be/?Z000ac3 Rollback of the "C *= 1.02" and "tagged PDF" changes by Mark Storer (*). The side effects of the "C *= 1.02" change caused one bug that

Re: [iText-questions] Necessary changes when updating from itext 2.0.4 to 2.1.5?

2009-06-11 Thread Tobias van Treeck
Hi Bruno, may i ask which bug it was and what exactly went wrong? Thanks ToM 2009/6/10 Bruno Lowagie : > Oliver Schoenwald wrote: >> My question: is there some default setting/behavior that has changed >> between 2.0.4 and 2.1.5 which might create this problem? > > This is caused by a bug introd

Re: [iText-questions] PdfDictionary.isFont(), .isPages() etc.

2009-06-11 Thread Christian Kirchhoff
Thank you, it was just for testing something. I understand how to go through the logcal tree. Best regards, Christian *Editura Gesellschaft für Verlagsdienstleistungen mbH* Tempelhofer Damm 2 · 12101 Berlin www.editura.de AG Berlin-Charlottenburg · HR B 81823 · USt.Id. DE217180548 Geschäftsführ