Although I didn’t get a direct answer to this question yet, Mat Gessel’s response to “How to re-use embedded fonts from a template” gave me the solution.

For anyone else who is interested, this is what works.

   (myPdfStamper.getOverContent (1)).addImage

      (

        myImage,

        myImage.plainWidth (), 0, 0,

        myImage.plainHeight (), myXPosition, myYPosition

      );

I can now insert the bar code image at any position on the first or any other page.

Best wishes, Ivan.

 

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Ivan Biddles
Sent:
Monday, August 02, 2004 2:02 PM
To: [EMAIL PROTECTED]
Subject: [iText-questions] Bar Code Images and PdfStamper

 

Hi,

I have been able to insert variable data into a PDF using PdfStamper and I have been able to create a bar code image in the top corner of a new (empty) document – both by following the samples.

So far I haven’t had success trying to add a bar code to a document that I manipulate with PdfStamper The bar code, per the sample, is added directly to the document as a Chunk within a Phrase within a PdfPTable, but I haven’t found a way to get a reference to the ”document” from PdfStamper (or its PdfWriter instance).

Is there a recommended way to do this or some sample code?

Thanks, Ivan.


---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.698 / Virus Database: 455 - Release Date: 6/2/2004


---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.698 / Virus Database: 455 - Release Date: 6/2/2004


---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.698 / Virus Database: 455 - Release Date: 6/2/2004

Reply via email to