You can do it by creating a template for each page and at the end
creating the barcode in each of those templates.
Paulo
> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On
> Behalf Of Mitch Freed
> Sent: Monday, April 16, 2007 6:26 PM
> To: [email protected]
> Subject: [iText-questions] Barcode Image (page x of y)
>
> I have a question about rendering the text "page x of y" in a
> barcode image (where x is the current page number and y is
> the total number of pages). Currently I use page events and
> templates to handle the "page x of y" issue (In say a footer
> as suggested in the iText examples), but I don't see how to
> deal with the total number of pages when placing it in a
> barcode (since the barcode is an image). One solution I can
> see is processing the pdf a second time using PdfStamper or
> something along those lines and place the barcodes after it
> has been initially processed. Is there any way to embed the
> "page x of y" into the barcode without having to make 2
> passes over the pdf?
>
> Thanks,
>
> Mitch Freed
> [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>
>
>
Aviso Legal:
Esta mensagem é destinada exclusivamente ao destinatário. Pode conter
informação confidencial ou legalmente protegida. A incorrecta transmissão desta
mensagem não significa a perca de confidencialidade. Se esta mensagem for
recebida por engano, por favor envie-a de volta para o remetente e apague-a do
seu sistema de imediato. É proibido a qualquer pessoa que não o destinatário de
usar, revelar ou distribuir qualquer parte desta mensagem.
Disclaimer:
This message is destined exclusively to the intended receiver. It may contain
confidential or legally protected information. The incorrect transmission of
this message does not mean the loss of its confidentiality. If this message is
received by mistake, please send it back to the sender and delete it from your
system immediately. It is forbidden to any person who is not the intended
receiver to use, distribute or copy any part of this message.
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://itext.ugent.be/itext-in-action/