Re: [iText-questions] Adding image to text box field in a PDF template file

2010-09-29 Thread Keith O
Date: Wed, 29 Sep 2010 14:50:41 -0700 From: scott.k.mitch...@gmail.com To: itext-questions@lists.sourceforge.net Subject: [iText-questions] Adding image to text box field in a PDF template file ... I did some Googling and came up with this article, which seems pretty spot on:

Re: [iText-questions] Adding Image to template

2009-05-11 Thread Paulo Soares
public class PDFPayslipListener extends PdfPageEventHelper { private static final Logger LOG = Logger.getLogger(PDFPayslipListener.class); private PdfImportedPage template; private PdfContentByte canvas; private String pdfFileName; private String logoPath; private

Re: [iText-questions] Adding Image to template

2009-05-11 Thread Hawkini2000
Hi Paulo, that worked a treat - the file size is even less than I predicted. A massive thanks for replying so quickly as well. Kind regards, Matt Paulo Soares-3 wrote: public class PDFPayslipListener extends PdfPageEventHelper { private static final Logger LOG =

Re: [iText-questions] Adding Image in PdfPCell as background

2008-01-16 Thread Paulo Soares
Use a PdfPCellEvent to draw the background. Paulo -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Stessy Sent: Wednesday, January 16, 2008 3:57 PM To: itext-questions@lists.sourceforge.net Subject: [iText-questions] Adding Image in PdfPCell as

Re: [iText-questions] Adding Image in PdfPCell as background

2008-01-16 Thread Bruno Lowagie
Stessy wrote: HI, Is it possible to insert an image as background in a PdfPCell in place of a Color. If I simply add an image in a PdfPCell and afterwards I insert a PdfPTable in that pdfpcell, the PdfPTable is not displayed over the image but below. Do you already have the code that

Re: [iText-questions] adding image in PDF

2005-09-26 Thread Bruno Lowagie
Meghana Dalvi wrote: I was wondering if there is any way to access the image with relative URL the way we do in HTML pages? Yes, relative to the working directory of the Java Virtual Machine. Basicly if you can reach the file with java.io.File or java.net.URL, you can reach it with iText. So

Re: [iText-questions] adding image in PDF

2005-09-26 Thread Meghana Dalvi
File System.. hmm... Are you saying using path like like C:/myProject/web/images/logo.gif For local project: yes I can access the image that way but for actual implementation : might not be possible. as implementation of project on server is done by other team. I was wondering if there is

RE: [iText-questions] adding image in PDF

2005-09-26 Thread Bill Ensley
: Re: [iText-questions] adding image in PDF File System.. hmm... Are you saying using path like like C:/myProject/web/images/logo.gif For local project: yes I can access the image that way but for actual implementation : might not be possible. as implementation of project on server is done

RE: [iText-questions] Adding Image to a Chunk, what do the offsets refer to?

2003-05-30 Thread Paulo Soares
It's the offset relative to the text baseline. Positive raises the image and negative lowers it. The dimension are points (1/72 inch). Best Regards, Paulo Soares -Original Message- From: Graham Leggett [SMTP:[EMAIL PROTECTED] Sent: Thursday, May 29, 2003 14:58 To: [EMAIL PROTECTED]

Re: [iText-questions] adding image size problem

2003-03-23 Thread Paulo Soares
The width of an A4 page is 595 unless you rotate it. Best Regards, Paulo Soares - Original Message - From: allam badshah [EMAIL PROTECTED] To: Bruno [EMAIL PROTECTED]; [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Sunday, March 23, 2003 9:50 Subject: [iText-questions] adding image size

Re: [iText-questions] adding image size problem

2003-03-23 Thread allam badshah
OH! My requirement,as already mailed is that i have to fit an image of of A4 width/A4 height. What approach should i take?? thx Paulo Soares [EMAIL PROTECTED] wrote: The width of an A4 page is 595 unless you rotate it.Best Regards,Paulo Soares- Original Message - From: "allam badshah"

Re: [iText-questions] adding image

2003-03-18 Thread Bruno
Quoting allam badshah [EMAIL PROTECTED]: Hi All, I want to add an image to the document, the size of the image is much larger than the size of the page. Its getting truncated. The width of the image is adjusted to bring it to PageSize.A4.width() but the height cannot be altered bcos it

RE: [iText-questions] adding image

2003-03-18 Thread Paulo Soares
You'll have to add the image using PdfContentByte.addImage() with a clipping path to limit the portion of image shown. See http://www.mail-archive.com/[EMAIL PROTECTED]/msg04608.h tml. Best Regards, Paulo Soares -Original Message- From: allam badshah [SMTP:[EMAIL PROTECTED] Sent:

Re: [iText-questions] adding image

2003-03-18 Thread allam badshah
Thx Bruno Paulo Soares, I had already seen that in the archive but i wanted to know if there was any automated way to do so. allam Bruno [EMAIL PROTECTED] wrote: Quoting allam badshah <[EMAIL PROTECTED]>: Hi All, I want to add an image to the document, the size of the image is much larger than