PageNumberingLabel pageLabels = new PageNumberingLabel("%%CP%% of %%TP%%", 0, 0, 200, to Create PDF with Page Numbers Sample Code - Java MergeDocument document = new MergeDocument("doc-a.pdf") Invoke the Draw method of the Document object to output the PDF.Place a PageNumberingLabel on the document Template.Create a document Template object and add it to the Document.Create a MergeDocument object with the source PDF.Steps for Adding Page Numbers to Existing PDF Document Page element can be used to automatically add page numbers to a PDF. The steps and sample codes to add page numbers to PDF is given below for both the products.īelow are steps and sample code on how to add page numbering labels to an existing PDF document. Page numbers can be added to an existing PDF document or to a PDF document created from scratch.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |