Re: [iText-questions] java.awt.Image problem

2006-02-14 Thread Bruno Lowagie
Davide Poggi wrote: Hi, I have a problem: I can't insert a java.awt.Image into an html page. I use IText library to export data from java to html page using Image.getInstance(java.awt.Image, Color c, boolean forceBW) method, but I can't insert this java.awt.Image in this page. Can you send

Re: [iText-questions] watermark, show it only when printing

2006-02-14 Thread Bruno Lowagie
Yefimov, Sergey wrote: Is it possible to create watermark in a way you can do it using Adobe Acrobat, to show it only when printing and do not show it when displaying? Thank you, Yes, add it in an OptionalContentGroup and set the options of the group so that the watermark is only print

[iText-questions] Adobe 7.0.7, iText and SSL

2006-02-14 Thread Trevor
I am using Windows XP (fully patched) and have upgraded to 7.0.7 from 7.0.5. I have a web application that runs on Apache and JBOSS using SSL, that generates a pdf file using the iText libraries and this pdf is placed in a jsp page as a HTML Object: " " The printing is done in javascript:

RE: [iText-questions] Reading and Extracting Text from PDF

2006-02-14 Thread Mark Storer
word of warning: The linked PDF is gynormous. 1346 pages. --Mark Storer Senior Software Engineer Cardiff Software #include typedef std::Disclaimer DisCard; > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] Behalf > Of Richard > Braman > Sent: Tuesday, F

[iText-questions] watermark, show it only when printing

2006-02-14 Thread Yefimov, Sergey
Is it possible to create watermark in a way you can do it using Adobe Acrobat, to show it only when printing and do not show it when displaying?   Thank you,   PTFS Yefimov, Sergey (301) 654-8088 ex.31 www.ptfs.com  

[iText-questions] java.awt.Image problem

2006-02-14 Thread Davide Poggi
Hi, I have a problem: I can't insert a java.awt.Image into an html page. I use IText library to export data from java to html page using Image.getInstance(java.awt.Image, Color c, boolean forceBW)  method, but I can't insert this java.awt.Image in this page. Can you send me the code for resolvin

RE: [iText-questions] Reading and Extracting Text from PDF

2006-02-14 Thread Mark Storer
iText (to my limited knowledge) doesn't have a "Word Finder" like Acrobat does. The problems with extracting text from some PDF found in the wild are as follows: 1) The text could be in just about any encoding, including one created on the spot for that particular piece of text. Determi

Re: [iText-questions] Reading and Extracting Text from PDF

2006-02-14 Thread Bruno Lowagie
Richard Braman wrote: My guess is that there is a way to interate thorugh the dictionary and get what I want (like Bruno showed me how to do with the AcroForm.Fields), any code to do that would be great. You need the class PRTokeniser to do this, I don't recommend it because it won't work for

Re: [iText-questions] header/footer using endpage event (Resolved)

2006-02-14 Thread Bruno Lowagie
Rumpa Giri wrote: Found the problem. The FontFactory code was the culprit, silly cut-paste error was causing the font to get a strikethrough. BTW, the ITEXT library is pretty cool. We used JASPER reports earlier, thinking of switching to ITEXT. JasperReports uses iText for PDF generation,

[iText-questions] Reading and Extracting Text from PDF

2006-02-14 Thread Richard Braman
I have a open source project that is attempting to structure IRS produced documents such as publications and instructions and parse out data that is critical to building tax software. An example of such a file is http://www.irs.gov/pub/irs-pdf/p1346.pdf. This file contains e-file record layouts, wh

RE: [iText-questions] Reading and Extracting Text from PDF

2006-02-14 Thread Richard Braman
When I ran the code through reader.getCOntent(398) And saved the results to a file it produced the output below. Obviosuly, this is a start, but I need to get text on a line by line basis. So I loaded reader.getPageN(398) into a PDFDictionary, but know I am stuck as my lmited knowledge of PDF shine

Re: [iText-questions] header/footer using endpage event (Resolved)

2006-02-14 Thread Rumpa Giri
Found the problem. The FontFactory code was the culprit, silly cut-paste error was causing the font to get a strikethrough.   BTW, the ITEXT library is pretty cool. We used JASPER reports earlier, thinking of switching to ITEXT.   Thanks, Rumpa GiriRumpa Giri <[EMAIL PROTECTED]> wrote:On

Re: [iText-questions] font encoding problem

2006-02-14 Thread Paulo Soares
You need the afm (preferably) or the pfm. - Original Message - From: "Thomas Kübler" <[EMAIL PROTECTED]> To: Sent: Tuesday, February 14, 2006 8:42 PM Subject: [iText-questions] font encoding problem hallo, i have a little problem to use the font type 1 called Interstate-Regular, i g

Re: [iText-questions] header/footer using endpage event (Found the source not sure why though)

2006-02-14 Thread Rumpa Giri
On removing the FontFactory.getFont the strikethroughs are gone. But we do want a specific font to be there. How do I enforce a font type?   regards, Rumpa GiriRumpa Giri <[EMAIL PROTECTED]> wrote: Anyone?Rumpa Giri <[EMAIL PROTECTED]> wrote: I am 3 day old to ITEXT library. I went through

[iText-questions] font encoding problem

2006-02-14 Thread Thomas Kübler
hallo, i have a little problem to use the font type 1 called Interstate-Regular, i get the error: ERROR: Font 'C:\WINDOWS\Fonts\intbd___.pfb' with 'Cp1252' is not recognized. i use for the encoding *BaseFont.WINANSI, *which encoding i have to use for this font? -- Mit freundlichen Grüßen Tho

[iText-questions] Reading and Extracting Text from PDF

2006-02-14 Thread Richard Braman
I have a open source project that is attempting to structure IRS produced documents such as publications and instructions and parse out data that is critical to building tax software. An example of such a file is http://www.irs.gov/pub/irs-pdf/p1346.pdf. This file contains e-file record layouts, wh

Re: [iText-questions] header/footer using endpage event (Anybody?)

2006-02-14 Thread Rumpa Giri
Anyone?Rumpa Giri <[EMAIL PROTECTED]> wrote:I am 3 day old to ITEXT library. I went through the tutorial. I followed the example EndPage.java to create the header/footer.   The header is a 2 X 2 table. Footer is 1 X 3 table. In the header somehow the second row, first cell data is getting un

[iText-questions] Splitting PdfPTable at absolute positions

2006-02-14 Thread David Woosley
I need to create a PdfPTable that spans the bottom half of continuous pages.  The top half of each page will contain different fields that are easily filled using a stamper.  The table will contain cells with multi-line text, so I can't predict the height of each row.  Before I start coding

[iText-questions] Small changes to RtfWriter2() and RtfDocument()

2006-02-14 Thread Andrey
Recently I have tried the iText 1.3. Everything was smooth but when I tried to generate a BIG .rtf I've received "java.lang.OutOfMemoryError: Java heap space" :) This is no matter which of data cache styles are used (CACHE_MEMORY or CACHE_DISK), the result will be the same (OutOfMemoryError). Bri

Re: [iText-questions] pdf conversion -- Help

2006-02-14 Thread bruno
sudhir kumar wrote: I found iTEXT.jar on http://www.lowagie.com/iText/download.html But unable to find iText library com.lowagie. http://en.wikipedia.org/wiki/.jar br, Bruno --- This SF.net email is sponsored by: Splunk Inc. Do you grep

[iText-questions] Setting background color for Radio buttons and checkboxes

2006-02-14 Thread Chandrasekharan, Satish
Hi, I'm a Java programmer working with a Pdf form that has a number of TextFields and radio buttons. My goal is to highlight all those fields that haven't been populated or checked. I'm able to highlight all the Text fields and the Signature fields by getting the AcroForms and then settin

[iText-questions] Width of a PdfPCell

2006-02-14 Thread Gaëtan Lepargneul
Hi,   Is there a methode to get the width of a PdfPCell ? Of course, I have seen the method width() but it always return 0.0!   I would like to know how long characters my cell could contain? Like this I will be able to trunk the part of text that could not be displayed (by replacing it by "(.

Re: [iText-questions] Making sure that the string doesn't go off the screen

2006-02-14 Thread bruno
[EMAIL PROTECTED] wrote: Well here is how I am trying to calculate the page size /**/ //font and text supplied before Rectangle page = reader.getPageSize(0); FontMetrics fontMetrics = getFontMetrics(font); int width = fontMetrics.stringWidth(text); int x_pos = (in

Fw: [iText-questions] Making sure that the string doesn't go off the screen

2006-02-14 Thread Andrzej . Ciereszko
The problem is that I am getting PDFs that are compressed to PNGs and then converted to PDFs again (for compression). After I get them (already compressed) I need to stamp that string in the document. Placing an AcroForm text before the conversions is not an option, i have already tried to ask fo

[iText-questions] RE: Unanswered question: [Fwd: [iText-questions]BarcodePDF417 question]

2006-02-14 Thread Paulo Soares
I have a scanner that can read PDF417. I have experience with PDF417. I dont't have a scanner that can read macro PDF417. I dont't have any experience with macro PDF417. That said: 1 - From the specs: H.2.2 File ID field For each related Macro PDF417 symbol, the file ID field contains the same

Re: [iText-questions] Making sure that the string doesn't go off the screen

2006-02-14 Thread bruno
[EMAIL PROTECTED] wrote: Is there any way to fix the above problem using iText classes?? (measure the string in pixels, or fit text on a field that can be later stamped in the document) Is using ColumnText an option? Or you could ask the person who made the PDF to add a Text Field. Then you

[iText-questions] Making sure that the string doesn't go off the screen

2006-02-14 Thread Andrzej . Ciereszko
Hi I have a following problem, I am using the PDFStamper object to place a variable length string in the PDF file. The problem is that if the string is too long, it goes off the screen. The problem is that the font of the string and the length are also variant... I have googled and found solutio

[iText-questions] Re: Unanswered question: [Fwd: [iText-questions] BarcodePDF417 question]

2006-02-14 Thread Ricardo Borillo Domenech
Thanks!!! That's a good response :) Sorry but i see at source code that this class was submited by "Paulo Soares". Not you. Anybody can help me??? Thanks in advance !!! El mar, 14-02-2006 a las 12:13 +0100, bruno escribió: > Ricardo Borillo Domenech wrote: > > >There's anyone here thant can

Re: [iText-questions] random problem with PDF's (shifting character set in printout)

2006-02-14 Thread Leonard Rosenthol
At 12:53 AM 2/14/2006, Steve Vanspall wrote: e.g. Say a line should read 'Container 45' it will print out 'Dpoubjofs!56' in bold and underline as required. so it looks like a offset of one on the character set in the information being sent to the printer. The PDF *always* displays correctly o

[iText-questions] Re: Writing text in signature appearance which doesn't get cut

2006-02-14 Thread Wahaj Khan
Hi Paulo, I have tried the fitText() method but it is giving me a bigger font size probably because of the fact that the text I am writing can be fit in the complete signature appearance but as I am not wrapping my text there for it still get cut at times. I believe that for this columnText would

Re: [iText-questions] OutOfMemory problem during TIFF conversion

2006-02-14 Thread Udo Rader
On Tue, 2006-02-14 at 11:59 +0100, De Blasio Jacques-Albert wrote: > Hi all, > > we have a very serious problem with some of our tiff files. We try to > convert them but receive an OutOfMemory error (it seems that itext > runs wild and then collapse). Unfortunately I can't post the file as > there

RE: [iText-questions] OutOfMemory problem during TIFF conversion

2006-02-14 Thread Paulo Soares
Without the file you won't get any answer, there's just too many variables to start guessing. > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On > Behalf Of De Blasio Jacques-Albert > Sent: Tuesday, February 14, 2006 10:59 AM > To: itext-questions@lists.source

[iText-questions] OutOfMemory problem during TIFF conversion

2006-02-14 Thread De Blasio Jacques-Albert
Title: OutOfMemory problem during TIFF conversion Hi all, we have a very serious problem with some of our tiff files. We try to convert them but receive an OutOfMemory error (it seems that itext runs wild and then collapse). Unfortunately I can't post the file as there is some legal stuff a

Re: Unanswered question: [Fwd: [iText-questions] BarcodePDF417 question]

2006-02-14 Thread bruno
Ricardo Borillo Domenech wrote: There's anyone here thant can help me?? Bruno, perhaps :) I don't have a scanner that can read PDF417. I don't have any experience with PDF417. So I can't answer any questions about PDF417. br, Bruno --- Th

Unanswered question: [Fwd: [iText-questions] BarcodePDF417 question]

2006-02-14 Thread Ricardo Borillo Domenech
Hi all again!! I send this question to the list some days ago and i have no answer... :( Please, i really need to integrate iText PDF417 in our project and i have some problems using it. There's anyone here thant can help me?? Bruno, perhaps :) -- Salut, R

Re: [iText-questions] pdf conversion -- Help

2006-02-14 Thread Alexis Pigeon
On 13/02/06, sudhir kumar <[EMAIL PROTECTED]> wrote: > Hi, >I am new to this site and was looking for a > tool which converts a spool file to pdf. I downloaded > everything except iText library com.lowagie... > Can anybody show me the link to download it. > > Apprecita all the help in adva

Re: [iText-questions] pdf conversion -- Help

2006-02-14 Thread bruno
sudhir kumar wrote: I downloaded everything except iText library com.lowagie... Can anybody show me the link to download it. You downloaded 'everything' except the iText.jar? br, Bruno --- This SF.net email is sponsored by: Splunk Inc. D

Re: [iText-questions] Using jsp file as template

2006-02-14 Thread bruno
Carlos Bergueira wrote: Hi All, I have a .jsp file that I want to use as template. Only few elements are changed (name, city, etc.). Is it possible with itext ? Someone can tell me where I can find informationabut this topic ? What are you asking? So you want to use a JSP file as source fo

Re: [iText-questions] Replacing placeholder value in PDF

2006-02-14 Thread bruno
[EMAIL PROTECTED] wrote: Thanks... Now I want to implement the requirement in same manner. I can create XML myself corresponding to PDF template . OK. In your mail I couldn't understand "Ghent University gives me a PDF with the background of the letter", whether this is PDF file like I sen