[iText-questions] images added to pdf in servlet show up all black or grey in pdf

2006-06-16 Thread Dennis Brennan
Hi,I have a servelt that adds a .gif when creating a pdf in a servlet.  The code is like this...        ClassLoader cl = this.getClass().getClassLoader();        Image image = Image.getInstance(new URL("file://" + cl.getResource(imageName).getPath()));        image.setAlignment(Image.MIDDLE);     

Re: [iText-questions] Direct Content

2006-06-16 Thread Henry Doan
oh man u are the best THANKS it worked From: "Paulo Soares" <[EMAIL PROTECTED]> Reply-To: Post all your questions about iText here To: "Post all your questions about iText here" Subject: Re: [iText-questions] Direct Content Date: Fri, 16 Jun 2006 19:51:52 +0100 stamper.close() - Orig

Re: [iText-questions] Direct Content

2006-06-16 Thread Paulo Soares
stamper.close() - Original Message - From: "Henry Doan" <[EMAIL PROTECTED]> To: Sent: Friday, June 16, 2006 7:27 PM Subject: [iText-questions] Direct Content >I am using PdfStamper to write some text a an exiting pdf but its not > writting the text here is my code: Thanks in advance >

[iText-questions] Direct Content

2006-06-16 Thread Henry Doan
I am using PdfStamper to write some text a an exiting pdf but its not writting the text here is my code: Thanks in advance // GET THE FILE PdfReader reader = new PdfReader("e:/Hello World 7.pdf"); PdfStamper stamper = new PdfStamper(reader, baos); PdfContentByte cb = st

[iText-questions] Direct Content on existing PDF

2006-06-16 Thread Henry Doan
I have an existing pdf file, and i was wondering if there is a way to write direct content on it using iText. I just want to write basic text over it. Thank you in advance. _ Express yourself instantly with MSN Messenger! Download

Re: [iText-questions] Direct Content on existing PDF

2006-06-16 Thread Paulo Soares
PdfStamper.getOverContent() and PdfStamper.getUnderContent(). Paulo > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On > Behalf Of Henry > Sent: Friday, June 16, 2006 4:21 PM > To: itext-questions@lists.sourceforge.net > Subject: [iText-questions] Direct Conte

[iText-questions] Direct Content on existing PDF

2006-06-16 Thread Henry
I have an existing pdf file, and i was wondering if there is a way to write direct content on it using iText. I just want to write basic text over it. Thank you in advance. ___ iText-questions mailing list iText-questions@lists.sourceforge.net https

[iText-questions] PdfCopyFields Was: Re: (no subject)

2006-06-16 Thread Jeff Randolph
Thanks Paulo, I found the search button shortly after my question posted. > Use PdfCopyFields instead of PdfCopy. > > Paulo > -- -Jeff [EMAIL PROTECTED] http://www.Bigscout79.com ___ iText-questions mailing list iText-questions@lists.sourceforge.net

[iText-questions] Specifying the signature handler for a signature field.

2006-06-16 Thread Rynhard Roos
Hi Is there a way to specify the signature handler that a signature field should use. Using javascript in a pdf, one can use the signatureSetSeedValue method to specify the signature handler that is allowed to sign a certain signature field, ie the adobe default pki handler, or perhaps a signatur

Re: [iText-questions] Adding blank signature field

2006-06-16 Thread Rynhard Roos
Hi Paulo Works great thanks!! On 6/16/06, Paulo Soares <[EMAIL PROTECTED]> wrote: > 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(1

Re: [iText-questions] Adding blank signature field

2006-06-16 Thread Paulo Soares
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); sig.setFlags(PdfAnnotation.FLAGS_PRINT); sig.put(PdfName.DA, new

[iText-questions] Adding blank signature field

2006-06-16 Thread Rynhard Roos
Hi I'm trying to add a blank signature field to a pdf. The code I used is as follows: PdfReader reader = new PdfReader("d:\\test.pdf"); FileOutputStream fout = new FileOutputStream("d:\\test2.pdf"); PdfStamper stp = PdfStamper.createSignature(reader, fout, '\0'); PdfSignatureAppearance sap = stp.

[iText-questions] FW: Itext issue (RTF)

2006-06-16 Thread Paulo Soares
> -Original Message- > From: Shakeel Ahmed [mailto:[EMAIL PROTECTED] > Sent: Friday, June 16, 2006 10:32 AM > To: Paulo Soares > Subject: Itext issue > > Hi > > I was using your IText library, which i found to be immensly > helpfull, and found a bug in the algorithm the function > c

[iText-questions] Working for the Government?

2006-06-16 Thread bruno
Hello all, I know that iText is used in many Government applications. If you are working for the Government, please visit this page about the first GovCamp: http://govcamp.org/ I'll be there, talking about PDF forms and generating PDF on the fly. br, Bruno

Re: [iText-questions] tables and repeating header rows on the next page

2006-06-16 Thread Adrian Maier
On 15/06/06, Adrian Maier <[EMAIL PROTECTED]> wrote: > On 15/06/06, bruno <[EMAIL PROTECTED]> wrote: > > Adrian Maier wrote: > > >I am generating a large table that can span across several pages. And > > >I'm looking for a solution to repeat the page header on each page. > > >The problem is that I'

Re: [iText-questions] x/3 pdf

2006-06-16 Thread Paulo Soares
- Original Message - From: "duschhaube" <[EMAIL PROTECTED]> To: "itext" Sent: Friday, June 16, 2006 9:03 AM Subject: [iText-questions] x/3 pdf > Hello! > > I have seen the example for creating pdf x/3 documents. Is this realy the > standard x/3 and is this good enough for printing cat

[iText-questions] x/3 pdf

2006-06-16 Thread duschhaube
Hello! I have seen the example for creating pdf x/3 documents. Is this realy the standard x/3 and is this good enough for printing catalogs? mfg Thorsten ___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourcefor

Re: [iText-questions] [{Spam???}] - Re: [{Spam???}] - Re: [{Spam?}] - Re: Howtoassign adigitalsignature to anexisting image -BayesianFilter detected spam - Email found in subject - Email found in subj

2006-06-16 Thread Paulo Soares
Replace PdfStamper with PdfReader in the answer below. Use PdfContentParser to help you finding the image. Of course, all this assumes that you have some criteria to find the image not just whishful thinking. Paulo - Original Message - From: "bruno" <[EMAIL PROTECTED]> To: "Post all yo

Re: [iText-questions] itext - using templates

2006-06-16 Thread bruno
Palmi H Lord wrote: >how can i use pre-existing PDF and fill in the fields on them ? >any samples out there > A simple search on the net will give you plenty of examples: an example with partial flattening: http://article.gmane.org/gmane.comp.java.lib.itext.general/20066/ (leave out the set(Parti

Re: [iText-questions] [{Spam???}] - Re: [{Spam???}] - Re: [{Spam?}] - Re: Howtoassign adigitalsignature to anexisting image -BayesianFilter detected spam - Email found in subject - Email found in subj

2006-06-16 Thread bruno
Frankinet Philippe wrote: >The image is located on a page. In most cases it will be the last page. >PDF is generated using FOP and includes tables and images. Table sizes are >unknown (depends on data), then i'm not able to known what is his position X,Y > To know the position of an Image in a PD

Re: [iText-questions] Multipage paste

2006-06-16 Thread Paulo Soares
https://sourceforge.net/mailarchive/message.php?msg_id=16566728 Paulo - Original Message - From: <[EMAIL PROTECTED]> To: Sent: Thursday, June 15, 2006 8:58 PM Subject: [iText-questions] Multipage paste >I have a document that I use pdfstamper then fill in all of the fields > based on

Re: [iText-questions] [{Spam???}] - Re: [{Spam???}] - Re: [{Spam?}] - Re: Howtoassign adigitalsignature to anexisting image -BayesianFilter detected spam - Email found in subject - Email found in subj

2006-06-16 Thread Frankinet Philippe
The image is located on a page. In most cases it will be the last page. PDF is generated using FOP and includes tables and images. Table sizes are unknown (depends on data), then i'm not able to known what is his position X,Y Philippe -Message d'origine- De : [EMAIL PROTECTED] [mailto:

Re: [iText-questions] (no subject)

2006-06-16 Thread Paulo Soares
Use PdfCopyFields instead of PdfCopy. Paulo - Original Message - From: "Jeff Randolph" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, June 15, 2006 10:54 PM Subject: [iText-questions] (no subject) >I have some one off pdf java code in which I'm using Itext-1.4.1. I used >

Re: [iText-questions] itext - using templates

2006-06-16 Thread Paulo Soares
PdfStamper and AcroFields. Paulo - Original Message - From: "Palmi H Lord" <[EMAIL PROTECTED]> To: Sent: Thursday, June 15, 2006 8:48 PM Subject: [iText-questions] itext - using templates > > how can i use pre-existing PDF and fill in the fields on them ? > any samples out there > >

Re: [iText-questions] Can't get PdfTemplate to display text

2006-06-16 Thread Paulo Soares
-Use a PdfStamper to read in a page with form fields, fill in the fields AND FLATTEN THEM. Write the page to byte array. -Use a PdfCopy object and its getImportedPage() method to copy each byte array to A TEMPORARY file (using a new Reader constructed for each byte array). -Repeat the above 2 steps