|
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----- 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. --- --- --- |
- [iText-questions] Bar Code Images and PdfStamper Ivan Biddles
- Re: [iText-questions] Bar Code Images and PdfStamper Ivan Biddles
- Re: [iText-questions] Bar Code Images and PdfStamper Paulo Soares
