Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- log.debug("Add page number");
- DocumentBuilder builder = new DocumentBuilder(doc);
- // Insert PAGE field into the footer
- builder.moveToHeaderFooter(HeaderFooterType.FOOTER_PRIMARY);
- builder.insertField("PAGE", null);
- builder.write("/");
- builder.insertField("NUMPAGES", null);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement