Adding footer "Page Number 1 of X"

102 views
Skip to first unread message

beastie00x

unread,
Apr 8, 2011, 1:02:03 PM4/8/11
to purepdf-discuss
Hello,

I know to add a footer that says "Page Number 1" I would use : new
HeaderFooter( new Phrase("Page Number ", font) );

How would I add a footer that reads "Page Number 1 of X"... ?

Just wanted to know if there is a default way to do this, or if I'll
have to override the current functionality..


Thanks.

Alessandro Crugnola

unread,
Apr 9, 2011, 2:23:28 PM4/9/11
to purepdf...@googlegroups.com

beastie00x

unread,
Apr 11, 2011, 1:26:53 PM4/11/11
to purepdf-discuss
Thank you!


On Apr 9, 11:23 am, Alessandro Crugnola
<alessandro.crugn...@gmail.com> wrote:
> Take a look at this example:http://code.google.com/p/purepdf/source/browse/examples/src/HeaderFoo...
Reply all
Reply to author
Forward
0 new messages