Hi,
I have a PDF and I need to put the page numbers on it. But the requirement is that the pagenumbers should start from 5 to N.
Basically I need to put a pagination where the start page should be as per my input. How can I achive this ?
I am using Aspose Java 2.7.0, pdf kit 3.7.0.
Code Sample : (where the page starts from 1 .Actually I need to start it as per my choice)
PdfFileInfo fileInfo = new PdfFileInfo(combinedPdfWOPageNum);
int totalPage = fileInfo.getNumberofPages();
// Add page number to the PDFs
fileStamp = new PdfFileStamp(combinedPdfWOPageNum, combinedFinalFileName);
FormattedText ft = new FormattedText("Page # of " + totalPage, new FontColor(0, 0, 0), FontStyle.Helvetica, EncodingType.Winansi, false, 8);
fileStamp.addPageNumber(ft);