Re: [iText-questions] The document has no pages.

2008-12-18 Thread 1T3XT info
wmhfitz wrote: > This same code works fine in a standalone. > PdfStamper stamper = new PdfStamper(reader, bos); > writer = writer.getInstance(document, bos); What is bos? A ByteArrayOutputStream? Why are you writing to it from PdfStamper AND PdfWriter?

Re: [iText-questions] The document has no pages.

2008-12-18 Thread wmhfitz
This same code works fine in a standalone. I made some changes for the server app... try { PdfReader reader = new PdfReader(readPdf); System.out.println("Pdf Version: "+reader.getPdfVersion()); System.out.println("Num of Pa

[iText-questions] Adding Contents at specific coordinates in a PDF

2008-12-18 Thread Orpu
Hi I have a PDF can we add contents at a Specific Coordinates i.e at so and so X and so and so Y coordinates.The content may come from database or hard coded. -- View this message in context: http://www.nabble.com/Adding-Contents-at-specific-coordinates-in-a-PDF-tp21085706p21085706.html Sen

Re: [iText-questions] extracting text from pdfs with japanese data

2008-12-18 Thread Hoppe, Michael
Kevin, Unfortunately i cannot send you a shorter pdf. I got the pdf from people using our software in Japan and complaining about iText not working. They sayd their pdfs are generated with some software, so I cannot recreate a shorter pdf. But I attached the Unicode-file for the tic_dogu2 pd

Re: [iText-questions] Character Encoding Problem

2008-12-18 Thread 1T3XT info
Nick Watts wrote: > Hello. I am seeing some strange behavior in a PDF I'm generating with > iText 2.1.4 and I'm not sure if the problem is my code, my data, iText, > or the Adobe plug-in. > > My scenario is that I'm pulling data stored as a CHAR data type in an > OS/400 DB2 database and using

Re: [iText-questions] Printing without creating a PDFFile

2008-12-18 Thread 1T3XT info
lucie.b...@armor-group.com wrote: > > Hi, > > For the moment, I create a PDF file with itext and try to print it > unsuccessfully. I've tried LPR but it says "Error while start sending > control file". > So I'm trying to find out a way to send my PDF document directly to a > specific printer (

Re: [iText-questions] Merging PDF files

2008-12-18 Thread 1T3XT info
Steve Cole wrote: > You need to do something like this... > > PdfCopyFields pdfCopyFields = new PdfCopyFields(new > FileOutputStream("my_document.pdf")); > > PdfReader reader = new PdfReader(myByteArrayOutputStream1.toByteArray()); > pdfCopyFields.addDocument(reader); > > reader = new Pdf

Re: [iText-questions] The document has no pages.

2008-12-18 Thread 1T3XT info
wmhfitz wrote: > I am getting the following error: > > Could not invoke the service() method on servlet clearview. Exception thrown > : org.springframework.web.util.NestedServletException: Request processing > failed; nested exception is ExceptionConverter: java.io.IOException: The > document has

Re: [iText-questions] Will it be a problem if I add content in onStartPage() ?

2008-12-18 Thread 1T3XT info
Kumar Jalaj wrote: > Hello, > Thanks a lot for replying to my querry. I want to add header in onStartPage() > becuase I want to use document.add .If I do so what kind of problem I am > going > to face.Is there any other way to add header to the document using > document.add . The Document obje

[iText-questions] Will it be a problem if I add content in onStartPage() ?

2008-12-18 Thread Kumar Jalaj
Hello, Thanks a lot for replying to my querry. I want to add header in onStartPage() becuase I want to use document.add .If I do so what kind of problem I am going to face.Is there any other way to add header to the document using document.add . Thanks and Regards, Jalaj.

Re: [iText-questions] extracting text from pdfs with japanese data

2008-12-18 Thread Kevin Day
Michael-   Can you please send a PDF that uses the font in question, but is *simple* - maybe containing 2 lines with 3 or 4 words in each?   Also, please send a unicode file that has the text for those files.  I can't look at the fonts themselves and figure out whether the decoding I'm doing is

Re: [iText-questions] extracting text from pdfs with japanese data

2008-12-18 Thread Kevin Day
OK, thanks for bearing with me as I come up to speed...  So that brings me back to my question on the algorithm:   Does the following algorithm seem to be correct for determining CID -> unicode info?   1.  Check to see if ToUnicode is specified.  If so, use it. 2.  Check sub-type and encoding -

[iText-questions] The document has no pages.

2008-12-18 Thread wmhfitz
I am getting the following error: Could not invoke the service() method on servlet clearview. Exception thrown : org.springframework.web.util.NestedServletException: Request processing failed; nested exception is ExceptionConverter: java.io.IOException: The document has no pages. at org.s

Re: [iText-questions] Merging PDF files

2008-12-18 Thread Steve Cole
You need to do something like this... PdfCopyFields pdfCopyFields = new PdfCopyFields(new FileOutputStream("my_document.pdf")); PdfReader reader = new PdfReader(myByteArrayOutputStream1.toByteArray()); pdfCopyFields.addDocument(reader); reader = new PdfReader(myByteArrayOutputStream2.toByte

Re: [iText-questions] Printing without creating a PDFFile

2008-12-18 Thread Leonard Rosenthol
You need to create the PDF file first before sending to the printer. PDF is NOT consumable in a stream like Postscript is... Leonard On Dec 18, 2008, at 7:37 AM, lucie.b...@armor-group.com wrote: Hi, For the moment, I create a PDF file with itext and try to print it unsuccessfully. I'v

Re: [iText-questions] iText Usage in Commercial Application

2008-12-18 Thread Paulo Soares
See http://1t3xt.com/about/ if you need assurance, support and other amenities that come with a price. You can always use it for free in commercial applications using one of the MPL/LGPL licenses. Paulo > -Original Message- > From: Orpu [mailto:rajesh.o...@broadridge.com] > Sent: Thur

[iText-questions] Printing without creating a PDFFile

2008-12-18 Thread lucie . BABU
Hi, For the moment, I create a PDF file with itext and try to print it unsuccessfully. I've tried LPR but it says "Error while start sending control file". So I'm trying to find out a way to send my PDF document directly to a specific printer (given the name of the printer that the user can ch

[iText-questions] iText Usage in Commercial Application

2008-12-18 Thread Orpu
Hi I want to use iText in one of the commercial application to generate PDFs on the fly. So do i need to buy the product with PRICE As it states that it is an open source & freely downloadable. Please give me suggestion Using it freely in commercial application throws me in trouble or not -- V

[iText-questions] Merging PDF files

2008-12-18 Thread Steve Weston
Hi, I'm trying to merge two PDF files and I'm having trouble getting this figured out. I've been reading the tutorial and been through the mailing list, looked through the tool concat_pdf.java, but everything seems to be based on the documents already existing on disc. Basically I have two

[iText-questions] Character Encoding Problem

2008-12-18 Thread Nick Watts
Hello. I am seeing some strange behavior in a PDF I'm generating with iText 2.1.4 and I'm not sure if the problem is my code, my data, iText, or the Adobe plug-in. My scenario is that I'm pulling data stored as a CHAR data type in an OS/400 DB2 database and using the PDFStamper to insert that dat

Re: [iText-questions] Will it be a problem if I add content in onStartPage() ?

2008-12-18 Thread 1T3XT info
Kumar Jalaj wrote: > Hello, > I want to add content in the onStartPage() PdfPageEvent method. > This content I want to use it as the header of the document, but in book its > written that not to add any content in this event, not even header and > footer. > will it create some kind of prob

[iText-questions] Acroform: highlighting fields

2008-12-18 Thread Daniel Florey
Hi,first of all I want to thank you for the great book and the itext library. Here comes my question: When creating pdf documents containing acroforms I sometimes get an additional toolbar in Acrobat Reader that enables me to highlight all input fields & checkboxes. For some reason I don't get this

[iText-questions] PDF compression using itext

2008-12-18 Thread Menta, Vijay
Hi, We have a situation where we are in need to compress the PDF files generated by an Oracle Application. The PDF files generated by this application are getting to a point we cannot deliver them via email. What I would like to know is if there is a way to use itext api's to take an existing

[iText-questions] How to append Text at the end of an RTF file?

2008-12-18 Thread raghav_m
Hi All! I just downloaded the iText Api today and am trying to Acheive a couple of things : 1) To Append a String at the end of a file 2) To read-edit the custom properties/bookmarks of the Document(*.rtf) For 1) I tried two approaches , using the document.bottom() function and the importRtf

Re: [iText-questions] drop Tj-text in existing PDF / alter, color of Tj-text to white

2008-12-18 Thread Müller-Tolk, Jörg
Leonard Rosenthol wrote: >> jmueto wrote: >> It's clear to me that it is generally a very bad idea to edit a PDF. >> I need to drop a keyword from a PDF or at least make it invisible. >> I know how to place a white image ontop of the keyword to make it >> invisible, but isn't there a 'nicer' solut

Re: [iText-questions] extracting text from pdfs with japanese data

2008-12-18 Thread Paulo Soares
> -Original Message- > From: Kevin Day [mailto:ke...@trumpetinc.com] > Sent: Wednesday, December 17, 2008 11:09 PM > To: IText Questions > Subject: Re: [iText-questions] extracting text from pdfs with > japanese data > > Ahhh mea-culpa... I do think I remember reading something about

[iText-questions] Will it be a problem if I add content in onStartPage() ?

2008-12-18 Thread Kumar Jalaj
Hello, I want to add content in the onStartPage() PdfPageEvent method. This content I want to use it as the header of the document, but in book its written that not to add any content in this event, not even header and footer. will it create some kind of problem. Thanks and regards, ja