[iText-questions] PRTokeniser throws "PDF file does not have header" message

2006-11-06 Thread Sendhil Dhakshinamoorthy
Hello    I am using iText to read a PDF file from a WebServer, populate it with values using PdfStamper and display the modified PDF on the browser.     I am getting the following error "PDF file does not have header" or something like that from PRTokeniser class.  The code works fine when I rea

[iText-questions] Character Spacing problem when call PdfPTable#writeSelectedRows(...)

2006-11-06 Thread Feng Dihai
Here is my try to change character spacing in a PdfPTable's cell when using PdfPTable#writeSelectedRows(..., PdfContentByte canvas): PdfContentByte canvas=writer.getDirectContent(); PdfPTable t = new PdfPTable(1); t.setTotalWidth(40f); PdfPCell cell = new PdfPCell( new Phr

Re: [iText-questions] Enhancement (or changes) for Asian font support

2006-11-06 Thread Feng Dihai
Thanks for your reply. Your explainations are very useful for me, but I still have some different opions. About embedment of Unicode TrueType Font, I do really mean not to embed only some Japanese(or Chinese/Korean) font which are quite large even for a subset and obviously installed on our tar

[iText-questions] create external link in existing pdf

2006-11-06 Thread caveman1999
I am wanting to add an external link to an existing page from a pdf. If I understand it correctly, I use the PdfStamper object. In my complete code, I will calculate the X,Y coordinates & the width,height. Here is my code so far (it does not work)... import java.io.FileOutputStream; import jav

Re: [iText-questions] image in document RTF

2006-11-06 Thread Mark Hall
On Monday 06 November 2006 10:57, rossana wrote: > The problem is: > If i use WordPad the image does not appear. > The image is not looked at with wordpad. > With word instead it appears. > Someone has one solution in order to make to appear the image with wordpad? The only thing I can recommend is

Re: [iText-questions] NeedAppearances & signing woes

2006-11-06 Thread Mark Storer
The NeedAppearances flag handling in Acrobat has always been buggy, and probably always will be. You can remove that flag programatically, though it means you have to poke around in the AcroForm dictionary. --- PRAcroForm form = myReader.getAcroForm(); // PRAcroForm inherits from PdfDicionary

Re: [iText-questions] how do I get OpenAction

2006-11-06 Thread Paulo Soares
You can do it with iText, look for the OpenAction key in the Catalog. Paulo > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On > Behalf Of steve poling > Sent: Monday, November 06, 2006 5:35 PM > To: itext-questions@lists.sourceforge.net > Subject: [iText-que

[iText-questions] how do I get OpenAction

2006-11-06 Thread steve poling
Hi all, Kudos to Paolo for cluing me into using PdfWriter.setOpenAction() to control the zoom level. I have unit tests that create PDFs with various attributes and the unit test then opens the newly made PDF to inspect that same thing. OK, so I know the JavaScript what I hope got put into the

[iText-questions] Page numbers in concatenated PDFs

2006-11-06 Thread Srinivas Hechina
Hi,     Is it possible to insert the page numbers (like Page 1 of 10 etc..) inside the concatenated PDF using iText Page events? For example, I am concatenating two pdfs as shown below, and I want the Page numbers to be inserted in the final concatenated pdf's footer. I tried page event onEndPa

[iText-questions] (no subject)

2006-11-06 Thread Phillips, Angie
I’m using Itext in our web application. It works fine for me in development within my websphere SWING application. Works fine in test, the first go-around…but the 2nd time you try to export the JTABLE, I get the following error..   DocumentException: java.lang.NullPointerException

Re: [iText-questions] Unicode Support in iText1.3.1

2006-11-06 Thread Bruno Lowagie (iText)
Pannerselvan, Soundrapandian wrote: > Hi, > I’m using iText 1.3.1. > Please let me know whether iText 1.3.1 will support Unicode and to what > extent. Also please let me know the limitations. That's like asking if the sun shines in Belgium and to what extend. Yes, the Sun shines in Belgium, but

[iText-questions] Unicode Support in iText1.3.1

2006-11-06 Thread Pannerselvan, Soundrapandian
Hi,   I’m using iText 1.3.1.   Please let me know whether iText 1.3.1 will support Unicode and to what extent. Also please let me know the limitations.   Thanks in advance.   Tnx, Soundra Pandian P - Usin

[iText-questions] NeedAppearances & signing woes

2006-11-06 Thread Robert Esterer
Is there a straight forward way to change or delete the "NeedAppearances" flag for a signature field in iText? I've got the old signature-not-visible-in-Acrobat-because-of-NeedAppearances problem and manually changing/deleting that flag fixes it. btw: It seems that the Acrobat always deletes the "

[iText-questions] image in document RTF

2006-11-06 Thread rossana
Hi, i have insert an image in a document RTF. This is a code: paragraph = new Paragraph(); paragraph.setAlignment(Element.ALIGN_CENTER); paragraph.setSpacingAfter(5); Table table = new Table(1); table.setAlignment(Element.ALIGN_CENTER);

Re: [iText-questions] Verify digital signature

2006-11-06 Thread Paulo Soares
http://itextpdf.sourceforge.net/howtosign.html has an example. Paulo - Original Message - From: "Eric Chow" <[EMAIL PROTECTED]> To: Sent: Monday, November 06, 2006 9:18 AM Subject: [iText-questions] Verify digital signature > Hello, > > How can verify the signature in iText? > - does

[iText-questions] Verify digital signature

2006-11-06 Thread Eric Chow
Hello, How can verify the signature in iText? - does the document modify? - does the certificate valid ? For the modification, I can get some examples for reference but for the certificate validation, it always FAILED. The following is my code: PdfReader reader = new PdfReader(signedPDF);