[iText-questions] Reg: Embedding External Signatures Problem

2005-10-25 Thread Shivakumar B
Hi,         I created a Blank Signature for a Pdf file. I have generated the signatures using the PdfPKCS7, for testing purpose. In actual scenario, the signature will be generated outside.         When I put the signature back to the Blank Signature field, the code throws NullPointerException w

[iText-questions] Separationinfo

2005-10-25 Thread Georg Pilger
HI, I'm searching for a solution to remove the SeparationInfo from a PDF-File. I tried to create a Java program using iText based on the concat_pdf-example. I create a PdfReader for the PDF, create a new Document an add all pages of the read PDF by using getImportedPage. But the new PDF still con

[iText-questions] WMF, MetaDo, & headless

2005-10-25 Thread David Thielen
Hi; I am trying to render a WMF file to a bitmap. I am using the iText MetaDo and associated classes, creating a BufferedImage and getting a Graphics object to the BufferedImage. The problem is when writing text, I have to use java fonts to write the Graphics.drawString() - but in headless

[iText-questions] length of page remaining

2005-10-25 Thread Rebecca . Peltz
Are there any methods associated with the Page that will tell us how much space is remaining.  For example, my page has a length of 842.   After I have written to it, I want to know how much is left.  Is this information available ? Thanks, - Rebecca Peltz

Re: [iText-questions] SeparationInfo

2005-10-25 Thread Paulo Soares
That's easy. PdfReader reader = new PdfReader(...); PdfStamper stamper = new PdfStamper(reader, ...); int n = reader.getNumberOfPages(); PdfName sep = new PdfName("SeparationInfo"); for (int k = 1; k <= n; ++k) { reader.getPageN(k).remove(sep); } stamper.close(); - Original Message -

[iText-questions] SeparationInfo

2005-10-25 Thread Georg Pilger
HI, I'm searching for a solution to remove the SeparationInfo from a PDF-File. I tried to create a Java program using iText based on the concat_pdf-example. I create a PdfReader for the PDF, create a new Document an add all pages of the read PDF by using getImportedPage. But the new PDF still con

Re: [iText-questions] SAXiTextHandler cannot be resolved

2005-10-25 Thread Paulo Soares
https://sourceforge.net/project/showfiles.php?group_id=15255&package_id=12596&release_id=364783 - Original Message - From: "Julia" <[EMAIL PROTECTED]> To: "Bruno Lowagie" <[EMAIL PROTECTED]> Cc: Sent: Tuesday, October 25, 2005 10:28 PM Subject: Re: [iText-questions] SAXiTextHandler canno

Re: [iText-questions] Problem with reformatting text on the same line as a form field.

2005-10-25 Thread Paulo Soares
The problem is not the tool. You want something that the PDF format can't give you. You'll probably need a different workflow to do that but it all depends on the project and you didn't give enough information even for an educated guess. - Original Message - From: "Russell Burke" <[EMAIL

Re: [iText-questions] SAXiTextHandler cannot be resolved

2005-10-25 Thread Bruno Lowagie
Julia wrote: Bruno, Thank you for the explanation. Could you please tell me how to get the most updated iText.jar file? My boss just assigned me a project that needs to convert XML to PDF. And he told me that iText should able to do the conversion, and sent me the old iText.jar file. He never

Re: [iText-questions] Barcode Image sizes

2005-10-25 Thread Paulo Soares
The awt image must be scaled externaly to be useful. The x scaling is not there because you can't have half pixels. - Original Message - From: "Chris Dail" <[EMAIL PROTECTED]> To: Sent: Tuesday, October 25, 2005 9:34 PM Subject: [iText-questions] Barcode Image sizes > I'm trying to cre

RE: [iText-questions] Problem with reformatting text on the same line as a form field.

2005-10-25 Thread Russell Burke
Title: Re: [iText-questions] Problem with reformatting text on the same line as a form field. Do you think this would possible with the Adobe SDK?  If not, do you have any suggestions?   Thanks, Russell Burke CTG Systems Advisor 770-776-4000 - CTG 601-664-4756 - BCBSMS [EMAIL PROTECTED

Re: [iText-questions] SAXiTextHandler cannot be resolved

2005-10-25 Thread Julia
Bruno, Thank you for the explanation. Could you please tell me how to get the most updated iText.jar file? My boss just assigned me a project that needs to convert XML to PDF. And he told me that iText should able to do the conversion, and sent me the old iText.jar file. He never had the experie

[iText-questions] Barcode Image sizes

2005-10-25 Thread Chris Dail
Title: Barcode Image sizes I'm trying to create Barcode images using the Barcode.createAwtImage() method on the Barcode class. I try to test the resulting image against the same code created using the Barcodes.java example document. I want to be able to create the same barcode using createAwtI

Re: [iText-questions] Adding group separator to 2D labels

2005-10-25 Thread Paulo Soares
That depends on the scanner, configuration, serial or keyboard connection, etc. - Original Message - From: "Reddy, Prakash" <[EMAIL PROTECTED]> To: "'Paulo Soares'" <[EMAIL PROTECTED]> Sent: Tuesday, October 25, 2005 9:49 PM Subject: RE: [iText-questions] Adding group separator to 2D labe

Re: [iText-questions] Adding group separator to 2D labels

2005-10-25 Thread Paulo Soares
Did you read my answer? There's a solution there in the last line. The chars under 32 disappear when the string is converted to bytes. If the chars under 32 are in the byte array they will show. - Original Message - From: "Reddy, Prakash" <[EMAIL PROTECTED]> To: "'Paulo Soares'" <[EMAIL P

RE: [iText-questions] Image Type Detection

2005-10-25 Thread Dan McKeon
Our extensions reflect the business process rather than the file type.  For example, everything we scan is TIFF, but they may have a IIX, SCN, PSM, etc extension.  We have database codes associated with the files that I can use to tell me what format it is, but I was looking for something more gen

Re: [iText-questions] Adding group separator to 2D labels

2005-10-25 Thread Paulo Soares
If you put any char below 32 it will disappear when converted to bytes. Try: byte[] strBytes = PdfEncodings.convertToBytes(tStr, null); - Original Message - From: "Reddy, Prakash" <[EMAIL PROTECTED]> To: "'Paulo Soares'" <[EMAIL PROTECTED]> Sent: Tuesday, October 25, 2005 8:57 PM Subject

RE: [iText-questions] Image Type Detection

2005-10-25 Thread Bill Ensley
Just check the extension.   .txt .doc .pdf .jpg   etc   Bill Ensley Bear Printing From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Dan McKeonSent: Tuesday, October 25, 2005 12:32 PMTo: Bruno LowagieCc: itext-questions@lists.sourceforge.netSubject: Re: [iText-questions] Image

Re: [iText-questions] Adding group separator to 2D labels

2005-10-25 Thread Paulo Soares
Code example please. - Original Message - From: "Prakash Reddy" <[EMAIL PROTECTED]> To: Sent: Tuesday, October 25, 2005 7:12 PM Subject: [iText-questions] Adding group separator to 2D labels > > Hi, > > I am adding some text with group separators/record separators to a 2D label. > W

Re: [iText-questions] Problem with reformatting text on the same line as a form field.

2005-10-25 Thread Paulo Soares
Reflow is not possible to do with PDFs, with or iText or anything else. You may (or may not) do it in other ways depending on what you are doing. - Original Message - From: "Russell Burke" <[EMAIL PROTECTED]> To: Sent: Tuesday, October 25, 2005 8:11 PM Subject: [iText-questions] Problem

[iText-questions] Adding group separator to 2D labels

2005-10-25 Thread Prakash Reddy
Hi, I am adding some text with group separators/record separators to a 2D label. When I scan the 2D label printed, they don't show up. I verify that the separators are part of the text before invoking pdf417.getImage() method. All other characters show up properly. Only the record separat

Re: [iText-questions] Image Type Detection

2005-10-25 Thread Dan McKeon
I just wasn't sure if iText could tell me if my input file is ASCII or PCL.  I figured out how to detect PDF.  I invoke PdfReader and if it throws an exception, I know it's not PDF.  Is there anything like that for ASCII or PCL? Bruno Lowagie <[EMAIL PROTECTED]> 10/25/2005 01:26 PM To

[iText-questions] Problem with reformatting text on the same line as a form field.

2005-10-25 Thread Russell Burke
Hi,   I'm trying to reformat a line of text where a form field resides because depending on the dynamic text generated there could be a large number of trailing spaces.  In the case below, the name John Doe was generated using a text field.  I defined the text field to be is long as our maxim

Re: [iText-questions] SAXiTextHandler cannot be resolved

2005-10-25 Thread Julia
Bruno, Thank you for answering my question. Does "br" mean web brower? I am using struts framework. I imported iText.jar to my libarary. When I got "SAXiTextHandler cannot be resolved" error, I found out I do not have the SAXiTextHandler class in the com.lowagie.text.xml package. I am not sure i

Re: [iText-questions] Image Type Detection

2005-10-25 Thread Bruno Lowagie
Dan McKeon wrote: I am a programmer on an Image Team. The documents in our system are TIFF, JPEG, ASCII, PCL, PDF. I wanted to code a web service that could detect what was being input and just always output a PDF. That I can understand. You want to write some software that can detect t

Re: [iText-questions] Image Type Detection

2005-10-25 Thread Dan McKeon
I am a programmer on an Image Team.  The documents in our system are TIFF, JPEG, ASCII, PCL, PDF.  I wanted to code a web service that could detect what was being input and just always output a PDF.  Maybe they're not all image types, but it's certainly not unreasonable for a user to want to view

Re: [iText-questions] Image Type Detection

2005-10-25 Thread Bruno Lowagie
Dan McKeon wrote: what I'm looking for are basic formats such as PCL, ASCII, and even PDF. These aren't even image types. I don't see how and why the Image class should return the type of such files. Either the Image class accepts a file as an Image or not. If not, an exception is thrown. Wh

Re: [iText-questions] Strange output with lists in PDF - Problem with tables and colpsan

2005-10-25 Thread Bruno Lowagie
Giacinto Bruno wrote: Strange output with lists in PDF: I'm trying to use the lists but I have a problem: I insert a list (com.lowagie.text.List) inside a cell (com.lowagie.text.Cell) of a table (com.lowagie.text.Table). The Table issues you are mentioning are known, but will not be resolve

RE: [iText-questions] yPos on current page when row/table split

2005-10-25 Thread Paulo Soares
The writer y position is not that reliable but in this case it should give an accurate position. Post a small complete example for inspection. > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On > Behalf Of Mark Gabriel > Sent: Tuesday, October 25, 2005 4:31 PM

[iText-questions] Image Type Detection

2005-10-25 Thread Dan McKeon
Hi, I am a new user to iText (and to Java for that matter).  I am writing a program to convert files to PDF.  I am using Image.getInstance and then getOriginalType to tell me what the input file format is.  I was wondering is iText can also tell me the format even if it's not supported.  I know th

[iText-questions] yPos on current page when row/table split

2005-10-25 Thread Mark Gabriel
Hi   I’m outputting a PdfPTable to a page and in the case that it doesn’t fit I add a “continued…” text chunk to the page.   It’s simple enough to do if I just add the chunk to a fixed location at the bottom of the page, however, for my purposes it looks better if the continued chunk is

[iText-questions] Strange output with lists in PDF - Problem with tables and colpsan

2005-10-25 Thread Giacinto Bruno
Strange output with lists in PDF: I'm trying to use the lists but I have a problem: I insert a list (com.lowagie.text.List) inside a cell (com.lowagie.text.Cell) of a table (com.lowagie.text.Table). The issue is that what I see in my PDF document is a cell with a strange result while in HTML fo

Re: [iText-questions] Justification in table cells

2005-10-25 Thread Bruno Lowagie
Steve Simpson (AVR IT Dept) wrote: Hi, I need to be able to right justify a set of values in a table. The table represents a number of monetary charges along with a description and it's the charges that I want justified. Can anyone help? Did you overlook setHorizontalAlignment ? b

Re: [iText-questions] SAXiTextHandler cannot be resolved

2005-10-25 Thread Bruno Lowagie
Julia wrote: Hi, Can anyone help me? one word can solve your problem: update br, Bruno --- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today * Register for a JBoss Training Course Free Certification Exam for All Training

[iText-questions] Re: RTF anchor doesn't work

2005-10-25 Thread Stefano
Mark Hall edu.uni-klu.ac.at> writes: > > On Tuesday 25 October 2005 15:47, Stefano wrote: > > I saw that RtfWriter2 gives an error if u try to use an internal link: > The RtfWriter2 does not support internal links. > > Greetings, > Mark Thanks Mark, but it could work. To solve the nullpoint

Re: [iText-questions] Reg: Creating Blank Signatures with Existing Pdf

2005-10-25 Thread bruno
Shivakumar B wrote: I saw the PdfCopy Sample Look for the PdfStamper example instead. PdfCopy doesn't allow you to change the content. br, Bruno --- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today * Register for

Re: [iText-questions] RTF anchor doesn't work

2005-10-25 Thread Mark Hall
On Tuesday 25 October 2005 15:47, Stefano wrote: > I saw that RtfWriter2 gives an error if u try to use an internal link: The RtfWriter2 does not support internal links. Greetings, Mark -- You are a very redundant person, that's what kind of person you are. My GPG public key is available at: htt

[iText-questions] RTF anchor doesn't work

2005-10-25 Thread Stefano
Hi, I saw that RtfWriter2 gives an error if u try to use an internal link: Anchor anchor = new Anchor(text, font); anchor.setName("a"); because it always calls this method in RTFAnchor: protected byte[] writeFieldInstContent() throws IOException { ByteArrayOutputStream bytearr

RE: [iText-questions] Barcodes

2005-10-25 Thread Paulo Soares
PdfPTable.setTotalWidth() > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On > Behalf Of Steve Simpson (AVR IT Dept) > Sent: Tuesday, October 25, 2005 11:19 AM > To: itext-questions@lists.sourceforge.net > Subject: [iText-questions] Barcodes > Importance: High

[iText-questions] Justification in table cells

2005-10-25 Thread Steve Simpson (AVR IT Dept)
Hi,   I need to be able to right justify a set of values in a table.  The table represents a number of monetary charges along with a description and it's the charges that I want justified.   Can anyone help?   Thanks   Steve   --

RE: [iText-questions] Reg: Creating Blank Signatures with Existing Pdf

2005-10-25 Thread Paulo Soares
Already answered in the bug tracker but just for completeness: PdfReader pdf = new PdfReader("in.pdf"); PdfStamper stp = new PdfStamper(pdf, new FileOutputStream("out.pdf")); PdfFormField sig = PdfFormField.createSignature(stp.getWriter()); sig.setWidget(new Rectangle(100, 100, 200, 200), null); s

[iText-questions] Reg: Creating Blank Signatures with Existing Pdf

2005-10-25 Thread Shivakumar B
Hi,         I've a PDF File generated with FOP API (Input to the FOP is the XSL transformation FO File). Now, I wanted to convert this pdf file to have a Blank Signature Field and then put the actual signature later, once it is signed using iText API.         I saw the PdfCopy Sample and tried cr

Re: [iText-questions] Barcodes

2005-10-25 Thread bruno
Steve Simpson (AVR IT Dept) wrote: All, I'm trying to produce a PDF that will display a barcode in the same position on every page. I can't get it to work by setting the absolute position of the table as I get an error message telling me that "the table width must be greater than zero".

RE: [iText-questions] Important things during Encryption of PDF

2005-10-25 Thread Paulo Soares
> -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On > Behalf Of kapil dhakad > Sent: Tuesday, October 25, 2005 11:11 AM > To: itext-questions@lists.sourceforge.net > Subject: [iText-questions] Important things during Encryption of PDF > > Hi, > > PDF Encrypt

[iText-questions] Barcodes

2005-10-25 Thread Steve Simpson (AVR IT Dept)
All,   I'm trying to produce a PDF that will display a barcode in the same position on every page.  I can't get it to work by setting the absolute position of the table as I get an error message telling me that "the table width must be greater than zero".   How can I position the barcod

[iText-questions] Important things during Encryption of PDF

2005-10-25 Thread kapil dhakad
Hi, PDF Encryption: 1. If we encrypt PDF using iText, now suppose user/owner forgot password then how to get it back ? 2. Can we store these password into database so that system administrator can easily get it back ? ( It will also act as an ideal solution for question 1 ? ) 3. It seems that t

Re: [iText-questions] AcroFields - Combo-box elemnts update

2005-10-25 Thread Paulo Soares
The CVS. - Original Message - From: "Nitin Tomer" <[EMAIL PROTECTED]> To: Sent: Tuesday, October 25, 2005 8:04 AM Subject: Re: [iText-questions] AcroFields - Combo-box elemnts update > Hi, > > I am sorry if I sound stupid; from where I can download the version > which contains

Re: [iText-questions] AcroFields - Combo-box elemnts update

2005-10-25 Thread bruno
Nitin Tomer wrote: Hi, I am sorry if I sound stupid; from where I can download the version which contains th setList method? You need a CVS client to get this version. http://www.lowagie.com/iText/cvs.html br, Bruno --- This SF.N

Re: [iText-questions] AcroFields - Combo-box elemnts update

2005-10-25 Thread Nitin Tomer
Hi, I am sorry if I sound stupid; from where I can download the version which contains th setList method? Regards Nitin - Original Message - From: "Paulo Soares" <[EMAIL PROTECTED]> To: "Nitin Tomer" <[EMAIL PROTECTED]>; Sent: Monday, October 24, 2005 5:05 PM Subject: RE: [