[iText-questions] Read a signed PDF document

2005-07-07 Thread Hong . Sun
We've created PDF documents with Self-signed certificate, now we would like to add a watermark on top of the document when printing. But I don't know how to read the signed PDF documents, the following error thrown when creating a new instance of PDFReader: java.lang.NullPointerException

[iText-questions] Images

2005-07-07 Thread David Hostetter
We use iText as part of a product called Business Pilot that allows for work flow and BPM design and operation.  We fill PDF's on the fly with text very successfully.   We are try to now attach images.  I have tried to adapt the 'button' field type but without success.  Any ideas?__

Re: [iText-questions] Struts, JSP --> PDF. getOutputStream() already called

2005-07-07 Thread Paulo Soares
Remove all the withe space in the JSP. For example: com.lowagie.text.pdf.*" %> <% response.setContentType( "application/pdf" ); should be: com.lowagie.text.pdf.*" %><% response.setContentType( "application/pdf" ); - Original Message - From: "John M. Gabriele" <[EMAIL PROTECTED]> To:

[iText-questions] Re: Writing FDF using an existing PDF

2005-07-07 Thread Wahaj Khan
Hi Paulo, Yes that was my mistake. The code works fine with the pdf document which I gave you earlier but for the attached PDF its failing with this exception: java.lang.NullPointerException at com.lowagie.text.pdf.PdfWriter.getNewObjectNumber(PdfWriter.java:1970) at com.lowagie.text.pdf.PRIndi

[iText-questions] Re: Writing FDF using an existing PDF

2005-07-07 Thread Wahaj Khan
"Paulo Soares" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] Works for me and I get this FDF. > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On > Behalf Of Wahaj Khan > Sent: Tuesday, July 05, 2005 2:11 PM > To: itext-questions@lists.sourceforge.n

[iText-questions] Re: PS type1 font with *.pfa file only

2005-07-07 Thread Ross Presser
On Thu, 7 Jul 2005 12:23:18 +0100, Paulo Soares wrote: > You can use t1utils or multivalent. Or fontforge, which is lots better. :) --- This SF.Net email is sponsored by the 'Do More With Dual!' webinar happening July 14 at 8am PDT/11am EDT.

[iText-questions] corrupt pdfs

2005-07-07 Thread timb
In my Struts application I dynamically generate pdf and rtf files using iText. With larger pdf files, say 150kb or 100 pages, the pdfs are corrupt.They have the html from the page they are requested from appended to them. This does not occur with the rtf files of any size I have tested with. Any su

[iText-questions] Struts, JSP --> PDF. getOutputStream() already called

2005-07-07 Thread John M. Gabriele
I'm trying to drop a small JSP page into an existing webapp that uses Struts. Struts sets up a bunch of variables for me that I can access in the JSP page, and I want to take the values of those variables and incorporate them into a PDF that I send back to the user. 1. I've got the hello world JSP

[iText-questions] Embedded Tables

2005-07-07 Thread Andrew . Burger
(Embedded image moved to file: pic02589.jpg) Here is my problem. If anyone has any idea of please let me know. I am try to add form lines for people to fill out when printed. Each line is a different length. So my taught was create a table for each signing line. First cell would be like "Name" th

RE: [iText-questions] Adding an Annotation to Image in a Table

2005-07-07 Thread Paulo Soares
I need to explore this further. > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On > Behalf Of Christopher Parkins > Sent: Wednesday, July 06, 2005 6:03 PM > To: itext-questions@lists.sourceforge.net > Subject: [iText-questions] Adding an Annotation to Image i

[iText-questions] Re: AW: AW: We are thinking about using IText in one of our products....

2005-07-07 Thread Mark Hall
On Thursday 07 July 2005 17:02, Werner Daehn wrote: > Excellent. Btw, we decided to use iText in our product. Just by chance, do > you know of any issues with list inside lists. If I nest them inside a RTF > for one or two levels everything works well, more levels are ignored. PDF > is looking fine

Re: [iText-questions] Question about the class RtfTableOfContents and RtfTOCEntry

2005-07-07 Thread Mark Hall
On Thursday 07 July 2005 04:27, sidney wrote: > I am writing in asking about the class RtfTableOfContents and > RtfTOCEntry. And as I am using Chinese Character to create a Rtf > Document, I should use UTF8 encoding. But I found that even after > encoding, the wordings displayed in the Table of Con

Re: [iText-questions] Bugs with RtfFont

2005-07-07 Thread Mark Hall
On Monday 13 June 2005 16:44, Renaud MICHEL wrote: > See the attached patch. > It overrided setFamily setSize and setStyle and the constructor to allow it > to work like a normal Font object while keeping its RtfFont properties up > to date. Thank you for the patch. It's been integrated into the ma

RE: [iText-questions] PS type1 font with *.pfa file only

2005-07-07 Thread Paulo Soares
> -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > Sent: Thursday, July 07, 2005 1:12 PM > To: Paulo Soares > Cc: itext-questions@lists.sourceforge.net > Subject: RE: [iText-questions] PS type1 font with *.pfa file only > > "Paulo Soares" <[EMAIL PROTECTED]> wro

RE: [iText-questions] less space between text baseline and bottom cell border

2005-07-07 Thread Paulo Soares
PdfPCell.setUseDescender(true) > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On > Behalf Of Martin Lackner > Sent: Thursday, July 07, 2005 2:22 PM > To: itext-questions@lists.sourceforge.net > Subject: [iText-questions] less space between text baseline > an

Re: [iText-questions] Justified alignment and left indentation in numbered lists

2005-07-07 Thread Mark Hall
On Thursday 16 June 2005 22:19, Gustavo de Moura Rocha wrote: > There are some other text in my document, but they're correct. > The troubles are: > 1. The first line's indentation of the paragraph doesn't works. > 2. The alignment don't be justified. Both problems have been fixed. Thank you for th

[iText-questions] less space between text baseline and bottom cell border

2005-07-07 Thread Martin Lackner
Hallo! In my small example with a table, letters like "g","j" or "y" end in the bottom border. Over the Text is some space left, but for letter which are printed under the "baseline" of the text too, there's not enough place between the baseline of the text and the bottom line of the cell border.

Re: [iText-questions] Re: [RTF] Rotate cell content 90°

2005-07-07 Thread Mark Hall
On Wednesday 06 July 2005 11:42, Cristian Amitroaie wrote: >I saw Mark's reply about this feature beeing added within one month > timeframe (that is almost half year ago). No this has not happend because I ran into problems of both implementation and time. I am now starting to work on the back

RE: [iText-questions] PS type1 font with *.pfa file only

2005-07-07 Thread Matthias . Dillier
"Paulo Soares" <[EMAIL PROTECTED]> wrote on 07.07.2005 13:23:18: > You can use t1utils or multivalent. Thank you for the hints. > > should be used with iText. Is there a way to use *.pfa files > > also or is this planned? Would it be difficult to add *.pfa support to iText? Regards Matthias D

RE: [iText-questions] Creating Header and Footer from existing PDF.

2005-07-07 Thread Paulo Soares
iText can't find the blank parts. > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On > Behalf Of Livio Lazzeri > Sent: Wednesday, July 06, 2005 4:47 PM > To: itext-questions@lists.sourceforge.net > Subject: [iText-questions] Creating Header and Footer from >

RE: [iText-questions] PS type1 font with *.pfa file only

2005-07-07 Thread Paulo Soares
You can use t1utils or multivalent. > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On > Behalf Of [EMAIL PROTECTED] > Sent: Thursday, July 07, 2005 8:45 AM > To: itext-questions@lists.sourceforge.net > Subject: [iText-questions] PS type1 font with *.pfa file o

RE: [iText-questions] document.add(image) displays fine, ColumnText.showTextAligned(new Phrase(new Chunk(Image, 0, 0)), x, y, Element.ALIGN_UNDEFINED) doesn't

2005-07-07 Thread Paulo Soares
Look at the javadoc of ColumnText.showTextAligned() and spot the differences to your code: public static void showTextAligned(PdfContentByte canvas, int alignment, Phrase phrase, float x,

Re: [iText-questions] document.add(image) displays fine, ColumnText.showTextAligned(new Phrase(new Chunk(Image, 0, 0)), x, y, Element.ALIGN_UNDEFINED) doesn't

2005-07-07 Thread Benjamin Podszun
Paulo Soares wrote: You have the tranformation: 0.99985 -0.01745 0.01745 0.99985 100 300 cm before the images. Thanks for checking that.. But: Where? Code that created the pdf below.. public static void main(String[] args) { Document document = new Document(PageSiz

RE: [iText-questions] document.add(image) displays fine, ColumnText.showTextAligned(new Phrase(new Chunk(Image, 0, 0)), x, y, Element.ALIGN_UNDEFINED) doesn't

2005-07-07 Thread Paulo Soares
You have the tranformation: 0.99985 -0.01745 0.01745 0.99985 100 300 cm before the images. > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On > Behalf Of Benjamin Podszun > Sent: Thursday, July 07, 2005 11:41 AM > To: itext-questions@lists.sourceforge.net >

[iText-questions] document.add(image) displays fine, ColumnText.showTextAligned(new Phrase(new Chunk(Image, 0, 0)), x, y, Element.ALIGN_UNDEFINED) doesn't

2005-07-07 Thread Benjamin Podszun
Hi there. Sorry for asking so much questions.. I just started with having a look at PDF files at all and - some things just look very strange. I found the sample http://itextdocs.lowagie.com/examples/com/lowagie/examples/objects/images/Images.java and used it to understand how (easily) I can l

Re: [iText-questions] Hidden text

2005-07-07 Thread Benjamin Podszun
bruno wrote: Benjamin Podszun wrote: Hi there. For my current work I have to add hidden text at a specific location. I already got help to archive the positioning, but now I'm unsure how to set the rendering options to add text that is invisible? The intention is that the document should be

Re: [iText-questions] Hidden text

2005-07-07 Thread bruno
Benjamin Podszun wrote: Hi there. For my current work I have to add hidden text at a specific location. I already got help to archive the positioning, but now I'm unsure how to set the rendering options to add text that is invisible? The intention is that the document should be searchable, b

[iText-questions] Hidden text

2005-07-07 Thread Benjamin Podszun
Hi there. For my current work I have to add hidden text at a specific location. I already got help to archive the positioning, but now I'm unsure how to set the rendering options to add text that is invisible? The intention is that the document should be searchable, but the "real" contents is

[iText-questions] Coordinates

2005-07-07 Thread Benjamin Podszun
Hi there. I'm certainly missing the obvious here, but - I have screen coordinates for things that I want to add/place in my pdf file. Weird but known they start from the upper left corner. The coordinates I have to give to for example ColumnText.showTextAligned() start in the left bottom corne

[iText-questions] Adding 2 tables one after another

2005-07-07 Thread origa82
Hi.I have a big problem.I make 2 big tables and add them to documnet one after another,i use table.setCellsFitPage(true) and with first table everything is ok,it's divided on 2 pages,but the second table is drawing not just after table,it's a big space between 2 tables,and the name of columns

[iText-questions] Question about the class RtfTableOfContents and RtfTOCEntry

2005-07-07 Thread sidney
I am writing in asking about the class RtfTableOfContents and RtfTOCEntry. And as I am using Chinese Character to create a Rtf Document, I should use UTF8 encoding. But I found that even after encoding, the wordings displayed in the Table of Content created are not the proper character, they are al

[iText-questions] PS type1 font with *.pfa file only

2005-07-07 Thread Matthias . Dillier
Hi all As far as I see, there has to be a *.pfb file for a PS type1 font that should be used with iText. Is there a way to use *.pfa files also or is this planned? When really a *.pfb file is needed, do you know a (free) java-program to convert between pfa and pfb. Would be nice to be able to c