[iText-questions] How to create a template pdf file

2006-03-20 Thread simon xu
I'like to use code like these " AcroFields form = stamp.getAcroFields();form.setField("Name", "test");form.setField("Age","26");" But how do I create my template pdf file?what tool is needed?

[iText-questions] Having problems generating pdf's with a servlet in WebSphere 5.1.2 and Rational 6.0.1

2006-03-20 Thread C Sell
Hey iText Group   I have been playing around with the iText api for a couple days now.  I first started out generating a pdf from a java application.  No problems there and it worked great!  I'm starting to take what I have learned from the java application and trying to develop the same thing fr

RE: [iText-questions] Incomplete PDF

2006-03-20 Thread Leonard Rosenthol
At 05:09 PM 3/20/2006, Morar, Calin (IT) wrote: BTW .. any idea if iText will ever support PDF linearization ? Maybe. That will be a very useful feature especially for cases like this when you generate the PDF on the fly from a servlet. Linearization can't be used with str

RE: [iText-questions] Copying a Thumbnail

2006-03-20 Thread Segev, Eli
Leonard,   The concatenation example is identical to my code:   http://itextdocs.lowagie.com/examples/com/lowagie/examples/general/copystamp/Concatenate.java.  The pages are ‘imported’.   Eli Segev   -Original Message- From: Leonard Rosenthol [mailto:[EM

RE: [iText-questions] Incomplete PDF

2006-03-20 Thread Morar, Calin (IT)
Weird problem solved ... actually was not iText the problem. It looked like but was the way in which I was streaming out the temp file after creating the PDF - in other words my stupidity :) BTW .. any idea if iText will ever support PDF linearization ? That will be a very useful feature especial

[iText-questions] Incomplete PDF

2006-03-20 Thread Morar, Calin (IT)
Hello all, I am experiencing a very weird behavior when I am creating a PDF document using iText 1.4 (latest release). I use the API in a servlet to generate PDF on the fly with very good results but now I've hit a problem which is driving me nuts - I write the PDF directly in the servlet output s

[iText-questions] [PATCH] TiffImage compression overwritten in 2D encoding

2006-03-20 Thread John Georgiadis
--- src.orig/com/lowagie/text/pdf/codec/TiffImage.java 2006-02-02 17:12:54.0 +0200 +++ src/com/lowagie/text/pdf/codec/TiffImage.java 2006-03-20 20:42:00.0 +0200 @@ -188,7 +188,7 @@ if (t4OptionsField != null) { tiffT4Options = t

RE: [iText-questions] pdf document in French language

2006-03-20 Thread Paulo Soares
itextdotnet doesn't live in this mailing list but in any case your problem is the codepage you use when you compile the VB sources. Try: curline = "Sous Toutes R" & ChrW(232) & "serves" > -Original Message- > From: Nataliya Teslya [mailto:[EMAIL PROTECTED] > Sent: Monday, March 20, 200

RE: [iText-questions] pdf document in French language

2006-03-20 Thread Paulo Soares
Are you sure the accented char reach the pdf or are they being eaten away by the database or whatever you use to get the data? > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On > Behalf Of Nataliya Teslya > Sent: Monday, March 20, 2006 5:34 PM > To: itext-qu

[iText-questions] pdf document in French language

2006-03-20 Thread Nataliya Teslya
Hi there.   I’m using iText software in my Web application to create output documents. All these documents are in English. Now, I need to create the same documents but in French. When I had tried it, all specific symbols such à, è, é ê disappeared from document. Please, help me, solve t

RE: [iText-questions] Copying a Thumbnail

2006-03-20 Thread Leonard Rosenthol
At 11:19 AM 3/20/2006, Segev, Eli wrote: The code below is based on this example: http://itextdocs.lowagie.com/tutorial/general/copystamp/index.html#pdfcopy   All pages are ‘imported’. Look at the ConcatPDF example. LEonard --

RE: [iText-questions] Re: Certify pdf

2006-03-20 Thread Paulo Soares
> -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On > Behalf Of Bruno Lowagie > Sent: Monday, March 20, 2006 4:08 PM > To: 'itext-questions@lists.sourceforge.net' > Subject: [iText-questions] Re: Certify pdf > > Leonard Rosenthol wrote: > > If you use ours, w

RE: [iText-questions] Copying a Thumbnail

2006-03-20 Thread Segev, Eli
How do you copy a page?   The code below is based on this example: http://itextdocs.lowagie.com/tutorial/general/copystamp/index.html#pdfcopy  All pages are ‘imported’. Eli Segev 781-370-6096   -Original Message- From: Leonard Rosenthol [mailto:[EMAIL PROTE

[iText-questions] Re: Certify pdf

2006-03-20 Thread Bruno Lowagie
Leonard Rosenthol wrote: If you use ours, we will also (if you wish) contribute the code back to the main iText project for others to benefit from Just a little clarification: it's not a matter of 'wishing'. You know that if you use iText in you project, your code may remain closed source. You

RE: [iText-questions] Compilation of iText using JAVA ver. 1.3

2006-03-20 Thread Paulo Soares
Comment that line and use the line below that one. Paulo > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On > Behalf Of Normann Nielsen > Sent: Monday, March 20, 2006 3:25 PM > To: itext-questions@lists.sourceforge.net > Subject: [iText-questions] Compilation

Re: [iText-questions] Certify pdf

2006-03-20 Thread Leonard Rosenthol
At 10:32 AM 3/20/2006, Vincent Saulnier wrote: I need to use DocMDP to certify documents and permit multiple signatures on PDF documents with iText. OK Do you plan to implement this feature ? I believe that Paulo has commented a number of times that it's not a high priorit

[iText-questions] Certify pdf

2006-03-20 Thread Vincent Saulnier
Hi, I need to use DocMDP to certify documents and permit multiple signatures on PDF documents with iText. Do you plan to implement this feature ?-- Vincent SaulnierConsultant, standards Web

[iText-questions] Compilation of iText using JAVA ver. 1.3

2006-03-20 Thread Normann Nielsen
Title: Message Hi there!   I am trying to compile iText using JAVA version 1.3.1_15, as can be seen here:   java version "1.3.1_15"Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.1_15-b01)Java HotSpot(TM) Client VM (build 1.3.1_15-b01, mixed mode)   Changing the compiler to a n

[iText-questions] Copying a Thumbnail

2006-03-20 Thread Segev, Eli
Title: Copying a Thumbnail If there is a thumbnail already in a PDF document and the document is copied with iText code, the thumbnail will be lost.  Is there anyway to prevent that? The code is: String str = "D:\\images\\jackets.pdf"; String fileName = "D:\\images\\jackets2.pdf"; FileI

Re: [iText-questions] Unknown File Type Error

2006-03-20 Thread Murali Thirumalai
Hi Bruno, The code works fine on my local laptop that runs Oracle OC4J Server. When I deploy it to the Development Server, I get the error. This errors occurs from the Servlet. It is trying to save the file when I am using the following code: ByteArray

Re: [iText-questions] Unknown File Type Error

2006-03-20 Thread Murali Thirumalai
Hi Bruno, This errors occurs from the Servlet. It is trying to save the file when I am using the following code: ByteArrayOutputStream baos = new ByteArrayOutputStream(); PdfWriter writer = PdfWriter.getInstance(doc, baos); I a

[iText-questions] SignatureField

2006-03-20 Thread Reiner Wollny
Hello,   I want to copy a PDF-Document with a signed SignatureField.   I try it in the following way:         public void copyPdf(String pdfIn, String pdfOut) throws DocumentException,    IOException {     PdfReader reader

Re: [iText-questions] Unknown File Type Error

2006-03-20 Thread bruno
Murali Thirumalai wrote: Hi Bruno, The code works fine on my local laptop that runs Oracle OC4J Server. When I deploy it to the Development Server, I get the error. This errors occurs from the Servlet. It is trying to save the file when I am using the following code:

[iText-questions] Re: PDF417 and barcode image

2006-03-20 Thread bruno
beppe costagliola wrote: I will try playing with it. The question arose from a request of my boss that asked me if it was possible to save just the image. OK, you should know that iText generates the PDF417 code as a CCITT image (Group 4). This is the type of image used by fax machines. Y

Re: [iText-questions] Centering an Image in Indented Text

2006-03-20 Thread bruno
Chris Dole wrote: I should have included my code fragment. The call to setAlignment(Image.MIDDLE) does what I thought it would: centers the image on the page. But when I try to move it over a tad more by calling setIndentationLeft (because I want the image centered within the left-indented te

Re: [iText-questions] MultiColumnText in non-automatic mode

2006-03-20 Thread Matt White
Bruno - I get the following error at both links: Bad Gateway The proxy server received an invalid response from an upstream server. (With an HTTP 502 error.) I'm going to refactor the code to use ColumnText. I spent the weekend digging into MultiColumnText, and there's a few things in there I

[iText-questions] Re: PDF417 and barcode image

2006-03-20 Thread bruno
beppe costagliola wrote: Hi Bruno, I'm trying to create a PDF picking list with a PDF417 and it works fine. I'm asked if it is also possible to write only the barcode as a jpeg image. First of all, you should inform the person who has asked this that it's a bad idea to use JPEG for this pu

Re: [iText-questions] MultiColumnText in non-automatic mode

2006-03-20 Thread bruno
Matt White wrote: Where can I get a copy of the modified code? SF's anonymous CVS is still down. This link seems to be much faster: http://cvs.sourceforge.net/viewcvs.py/*checkout*/itext/src/com/lowagie/text/pdf/MultiColumnText.java?rev=1.19 br, Bruno

Re: [iText-questions] MultiColumnText in non-automatic mode

2006-03-20 Thread bruno
Matt White wrote: Where can I get a copy of the modified code? SF's anonymous CVS is still down. (I know, I know, don't complain, it's free...) I don't know about the anonymous CVS, but I can see the changes using this link: http://cvs.sourceforge.net/viewcvs.py/itext/src/com/lowagie/text/pd

Re: [iText-questions] MultiColumnText in non-automatic mode

2006-03-20 Thread Matt White
Matt White wrote: > I haven't written the MultiColumnText class, but that's the way it was > designed. MultiColumnText is supposed to be a simple class for people > who are afraid of using ColumnText (if you had started writing your code > with ColumnText, you wouldn't have had all these problems)

Re: [iText-questions] Centering an Image in Indented Text

2006-03-20 Thread bruno
Chris Dole wrote: I should have included my code fragment. The call to setAlignment(Image.MIDDLE) does what I thought it would: centers the image on the page. But when I try to move it over a tad more by calling setIndentationLeft (because I want the image centered within the left-indented te

RE: [iText-questions] Centering an Image in Indented Text

2006-03-20 Thread Chris Dole
I should have included my code fragment. The call to setAlignment(Image.MIDDLE) does what I thought it would: centers the image on the page. But when I try to move it over a tad more by calling setIndentationLeft (because I want the image centered within the left-indented text) it has no discern

Re: [iText-questions] MultiColumnText in non-automatic mode

2006-03-20 Thread bruno
Matt White wrote: Bruno - Now we're getting somewhere, it no longer goes into a loop. :) Attached is another example. As I understand the way MultiColumnText works, it should produce three columns at the bottom of the page. No, that would be the case if you had defined three irregular colum

Re: [iText-questions] Centering an Image in Indented Text

2006-03-20 Thread bruno
Chris Dole wrote: However, when the image is *smaller* than the space allowed, I would like to center it within the text region, not on the whole page width, for aesthetics. I have not found the magic sequence of API calls to do this. I tried setAlignment with Image.MIDDLE So you have tried

Re: [iText-questions] Repeat:Indissoluble text

2006-03-20 Thread bruno
Philipchik, Alexander wrote: If the 'wrong' situation occurs, I don't want to add text before the authors name. I need to add empty lines in different places of the document (befor paragraphs, tables ets). Then you have to find a way to check programmatically if the situation has occured. If s