Re: [iText-questions] Extract text from pdf docs based on color

2007-04-30 Thread Bruno Lowagie
VirgilTrasca wrote: > Hi, > > Is it possible to extract text with itext based on color information? For > example extract all the text with white color from pdf pages. Have a > function something like > getText(RGBColor color, int page) which will return the text with font color > = color from

[iText-questions] Extract text from pdf docs based on color

2007-04-30 Thread VirgilTrasca
Hi, Is it possible to extract text with itext based on color information? For example extract all the text with white color from pdf pages. Have a function something like getText(RGBColor color, int page) which will return the text with font color = color from the page = page. Thank you,

Re: [iText-questions] [SPAM] Servlet issues

2007-04-30 Thread Bruno Lowagie
Michael Clayton wrote: > SEVERE: Allocate exception for servlet MyFirstServlet > java.lang.NoClassDefFoundError: com/lowagie/text/DocumentException > Any ideas? The NoClassDefFoundError has misled many developers into thinking the DocumentException class is missing, whereas they know for sure the

[iText-questions] Does itext support GTIN-14 bearer bars

2007-04-30 Thread Tony Roza
GTIN-14 is often displayed with bearer bars. That is, solid bars across the top and bottom of the bar code. Does itext have any support for this? Tony Roza - This SF.net email is sponsored by DB2 Express Download DB2 Exp

Re: [iText-questions] Formular Submit from PDF

2007-04-30 Thread Leonard Rosenthol
On Apr 30, 2007, at 8:05 PM, William Alexander Segraves wrote: > Now, while this appears to be completely compliant with the Reader > 7 EULA, > it seems to me to be a bit silly to have to resort to such a scheme > to get > around a EULA limitation that is aimed at protecting the Reader > Exte

Re: [iText-questions] Formular Submit from PDF

2007-04-30 Thread William Alexander Segraves
- Original Message - From: "Leonard Rosenthol" <[EMAIL PROTECTED]> To: "Post all your questions about iText here" Sent: Monday, 30 April, 2007 3:02 PM Subject: Re: [iText-questions] Formular Submit from PDF > > Furthermore, based on Leonard's interpretation, it does not appear > > to be

[iText-questions] Servlet issues

2007-04-30 Thread Michael Clayton
All, I can run the HelloWorld.java PDF gen code fine. I get the following error when I try to use the Servlet to an OutputStream: SEVERE: Allocate exception for servlet MyFirstServlet java.lang.NoClassDefFoundError: com/lowagie/text/DocumentException at java.lang.Class.getDeclaredConstr

Re: [iText-questions] tiff2pdf problem

2007-04-30 Thread Paulo Soares
Post a link to some of the failing tiff files so that the problem can be reproduced. Paulo - Original Message - From: "Vikram Vijayraghavan" <[EMAIL PROTECTED]> To: Sent: Monday, April 30, 2007 8:33 PM Subject: [iText-questions] tiff2pdf problem > Hi, > > We have some tiff files whic

Re: [iText-questions] Formular Submit from PDF

2007-04-30 Thread Leonard Rosenthol
On Apr 30, 2007, at 2:10 PM, William Alexander Segraves wrote: > Based on Leonard's interpretations of the EULA, it appears that any > client-side->server-side->client-side interaction, done solely on > the same > computer without any required user action such as running a command > line > scri

Re: [iText-questions] Formular Submit from PDF

2007-04-30 Thread Leonard Rosenthol
On Apr 30, 2007, at 1:44 PM, William Alexander Segraves wrote: > Leonard, he scenario I had in mind was this: > > 1. Client-side browser "submits" to "localhost" server. > 2. Localhost server parses submitted data, converting same into FDF/ > XFDF. > 3. Localhost server returns FDF/XFDF in 2 above

[iText-questions] tiff2pdf problem

2007-04-30 Thread Vikram Vijayraghavan
Hi, We have some tiff files which we convert to a pdf using the PhotoAlbum feature in iText 2.0.2 on a Windows XP box. The resultant pdf opens fine with Adobe Acrobat Reader . However when it is opened with either Adobe Acrobat or Adobe Distiller (various versions) and some pages are deleted man

Re: [iText-questions] Formular Submit from PDF

2007-04-30 Thread Bruno Lowagie
William Alexander Segraves wrote: > Bruno, your opinion is always welcome in any technical discussion in which I > am engaged. I think we have the same opinion on the technical issues involved: > IMO, this would not be a good solution for deployment as > a web-based application, as there is no

Re: [iText-questions] Formular Submit from PDF

2007-04-30 Thread William Alexander Segraves
- Original Message - From: "Bruno Lowagie (iText)" <[EMAIL PROTECTED]> To: "Post all your questions about iText here" Sent: Monday, 30 April, 2007 5:12 AM Subject: Re: [iText-questions] Formular Submit from PDF > Leonard Rosenthol wrote: > > On Apr 29, 2007, at 8:41 PM, William Alexander

Re: [iText-questions] Formular Submit from PDF

2007-04-30 Thread William Alexander Segraves
- Original Message - From: "Leonard Rosenthol" <[EMAIL PROTECTED]> To: "Post all your questions about iText here" Sent: Monday, 30 April, 2007 4:40 AM Subject: Re: [iText-questions] Formular Submit from PDF > On Apr 29, 2007, at 8:41 PM, William Alexander Segraves wrote: > >> The localho

Re: [iText-questions] getting a field as a PdfDictionary

2007-04-30 Thread Mark Storer
You just needed to dig a little deeper. AcroFields.getFieldItem( String ) returns an "AcroFields.Item". Item's "merged", "widgets", and "values" members are all ArrayLists of PdfDictionary... for when a field shows up more than once. This is perfectly normal for radio groups, and rare (though

[iText-questions] PdfGraphics2D.drawString() simulating bold, italic or bold-italic fonts.

2007-04-30 Thread John Hellerud
All, The PdfGraphics2D.drawString() method wasn't simulating bold, italic or bold-italic when a bold, italic or bold-italic specific version of the font was not found. The PdfGraphics2D.drawGlyphVector() method will produce the proper output, but it consumes a lot of memory and produces reall

Re: [iText-questions] getting a field as a PdfDictionary

2007-04-30 Thread Orcajo
Thanks for your fast answwer, but I can't see how to do that with AcroFields. I find I can do: /**/ AcroFields acroFieldsForm = reader.getAcroFields(); HashMap miFields = acroFieldsForm.getFields(); /**

Re: [iText-questions] getting a field as a PdfDictionary

2007-04-30 Thread Paulo Soares
It's all in AcroFields. Paulo > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On > Behalf Of Orcajo > Sent: Monday, April 30, 2007 4:46 PM > To: itext-questions@lists.sourceforge.net > Subject: [iText-questions] getting a field as a PdfDictionary > > Hi peop

[iText-questions] getting a field as a PdfDictionary

2007-04-30 Thread Orcajo
Hi people, I need to get a field as a PdfDictionary, and I know I can do this: /*/ PdfDictionary catalog = reader.getCatalog(); PdfDictionary form = (PdfDictionary)PdfReader.getPdfObject(catalog.get(PdfName.ACROFORM)); PdfArray fields = (PdfArray)form.ge

[iText-questions] Draw the border of a chunk ?

2007-04-30 Thread xav . dev
Hi list, I'm a newbie with iText and this is my first message on the list. I try to write text with different borders in the same sentence. I have seen that I can mix color, font, underline, etc. in the same Phrase with Chunk elements. I want to do the same for text border. For example, I want

Re: [iText-questions] Draw the border of a chunk ?

2007-04-30 Thread Paulo Soares
Look for Chunk.setGenericTag() and PdfPageEvent.onGenericTag(). Paulo > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On > Behalf Of [EMAIL PROTECTED] > Sent: Monday, April 30, 2007 3:39 PM > To: itext-questions@lists.sourceforge.net > Subject: [iText-questio

Re: [iText-questions] Draw the border of a chunk ?

2007-04-30 Thread Bruno Lowagie (iText)
[EMAIL PROTECTED] wrote: > If it is not possible, another way to do this is to add a Rectangle, but I > don't > know where to put it so that it overlaps a specific chunk. That's the way to go. Use a Generic Tag as explained in the book on page 125-127. http://itext.ugent.be/itext-in-action/exampl

[iText-questions] Draw the border of a chunk ?

2007-04-30 Thread xav . dev
Hi list, I'm a newbie with iText and this is my first message on the list. I try to write text with different borders in the same sentence. I have seen that I can mix color, font, underline, etc. in the same Phrase with Chunk elements. I want to do the same for text border. For example, I want

Re: [iText-questions] PDFstamper help

2007-04-30 Thread [EMAIL PROTECTED]
Paulo, I thought you had to say what the stamp was then tell it where to go. Clearly I am no expert, and I readily admit that. Maybe I’m using the wrong function? What I am trying to do is take a text file and turn it into a pdf (that’s my baosPDF ). Which I think I have working well, th

Re: [iText-questions] PDFstamper help

2007-04-30 Thread Paulo Soares
You can't do this; under.addTemplate(stamp.getImportedPage(overlay,1),3,38); because overlay is already being used in: PdfStamper stamp = new PdfStamper(overlay,baosPDF); Paulo > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On > Behalf Of [EMAIL PROTECTED

Re: [iText-questions] PDFstamper help

2007-04-30 Thread [EMAIL PROTECTED]
Thank you for the reply Paulo. I don't think I understand. Do you mean I can do with out this line? PdfReader overlay = new PdfReader(srctemplate); Thanks for any help. --- Paulo Soares <[EMAIL PROTECTED]> wrote: > You can't use overlay twice and I can't see whay you > would want to do it, > it

[iText-questions] Problems with page manipulation

2007-04-30 Thread Günther Saarsteiner
You set first the PageSize. Die Übermittlung von Nachrichten per e-mail erfolgt ausschließlich zu Informationszwecken. Rechtsverbindliche Erklärungen werden über dieses Medium nicht abgegeben. This message an

Re: [iText-questions] Formular Submit from PDF

2007-04-30 Thread Bruno Lowagie (iText)
Leonard Rosenthol wrote: > On Apr 29, 2007, at 8:41 PM, William Alexander Segraves wrote: >> So, if a Java-iText class is provided that does the merging on the >> client-side of the transaction, separately from the interaction >> between the >> client browser and the "localhost" server, this wou

Re: [iText-questions] Multi-select list boxes

2007-04-30 Thread Bruno Lowagie (iText)
Dajana Delic wrote: > Hi, > > Is there support for setting multiple values in multi-select list boxes or > any > plans for adding this functionality in iText? Have a look at this 'iText generated' form: http://itext.ugent.be/itext-in-action/examples/chapter16/results/registered1_2.pdf The 'Prog

Re: [iText-questions] Multi-select list boxes

2007-04-30 Thread Paulo Soares
Mark Storer contributed code to do that but it was tied to an old version and it was a bit of work to make the changes to the more recent version. Apparentely he doing the transition so, there may be hope. Paulo > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED]

Re: [iText-questions] Formular Submit from PDF

2007-04-30 Thread Leonard Rosenthol
On Apr 29, 2007, at 8:41 PM, William Alexander Segraves wrote: >> The localhost server can save the data to it's own data-store all it >> wants - no problems! It is the creation of a filled-in PDF via the >> server process that creates the violation. >> > > So, if a Java-iText class is provided t

[iText-questions] Multi-select list boxes

2007-04-30 Thread Dajana Delic
Hi, Is there support for setting multiple values in multi-select list boxes or any plans for adding this functionality in iText? Thanks, Dajana - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the F

Re: [iText-questions] Formular Submit from PDF

2007-04-30 Thread Bruno Lowagie (UGent)
Leonard Rosenthol wrote: > I don't know where you read that, but I would say that it is > completely UNTRUE! As you point out, Adobe ships iText with some of > it's server products (two, I believe - LiveCycle PDF Generator and > ColdFusion, IIRC). I have also recommend it's use in ot