Barcode in table in stamper

View: New views
2 Messages — Rating Filter:   Alert me  

Barcode in table in stamper

by John Renfrew :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Some parts of this message have been removed. Learn more about Nabble's security policy.

At the risk of being hit over the head again

 

I can successfully add barcodes to a new document

I can successfully add a barcode inside a single table cell at a specific place on the page with writeSelectedRows

 

If I set theContentByte to be stamper.getOverContent(1)

 

Which bit of the book do I need, or which other examples to add the table to the stamper??

 

john renfrew

Right Way Up
Office  +44 1675 475341
Fax      +44 1675 475342
Mobile +44 7767 443992

 


------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
iText-questions mailing list
iText-questions@...
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.1t3xt.com/docs/book.php
Check the site with examples before you ask questions: http://www.1t3xt.info/examples/
You can also search the keywords list: http://1t3xt.info/tutorials/keywords/

Re: Barcode in table in stamper

by 1T3XT info :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

John Renfrew wrote:
> At the risk of being hit over the head again
>
> I can successfully add barcodes to a new document

OK.

> I can successfully add a barcode inside a single table cell at a
> specific place on the page with writeSelectedRows

You do something like this:
PdfContentByte cb = writer.getDirectContent();
table.writeSelectedRows(0, 50, 150, 820, cb);
(for instance: page 183 of the 1st edition.)

> If I set theContentByte to be stamper.getOverContent(1)
> Which bit of the book do I need, or which other examples to add the
> table to the stamper?

You already have everything you need:
PdfContentByte cb = stamper.getOverContent(1);
table.writeSelectedRows(0, 50, 150, 820, cb);

This will write the table on top of the existing content of page 1.
--
This answer is provided by 1T3XT BVBA
http://www.1t3xt.com/ - http://www.1t3xt.info

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
iText-questions mailing list
iText-questions@...
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.1t3xt.com/docs/book.php
Check the site with examples before you ask questions: http://www.1t3xt.info/examples/
You can also search the keywords list: http://1t3xt.info/tutorials/keywords/