Saturday, 15 June 2013

java - How to get the current Page Number from PDF form using PDFBOX -



java - How to get the current Page Number from PDF form using PDFBOX -

how current page number pdf form using pdfbox ?

is anyway particular fields page number eg if text box named first name nowadays in 4 page of pdf form possible retrieve current page number 4

can 1 share u r view

thanks

i filling page number info on every new page during pdf build. means know page number of edited page lastly page.

private void addpagenumber(int page, pdpagecontentstream content) throws exception { content.begintext(); string pagenumber = page + ""; // todo: move needed text position content.drawstring(pagenumber); content.endtext(); }

i phone call method current number of pages parameter:

addpagenumber(_document.getnumberofpages(), content);

java pdfbox

No comments:

Post a Comment