Profile Topics Started Replies Created Engagements Forum Replies Created Viewing 2 posts - 1 through 2 (of 2 total) Author Posts Prasad_G in reply to: Page number not full when converting HTML to PDF December 6, 2021 at 08:56 #34575 Hi, I’m converting from html to pdf using Java (Using pd4ml 4.0.10 in maven): For eg: public static void convert(String inputFile, File output) throws InvokeException, IOException { PD4ML pd4ml = new PD4ML(); PageSize pageSize = new PageSize(600, 842); pd4ml.setPageSize(pageSize); PageMargins pageMargins = new PageMargins(70, 36, 56, 36); pd4ml.setPageMargins(pageMargins); File file = new File(inputFile); FileInputStream is = new FileInputStream(file); pd4ml.readHTML(is, null, StandardCharsets.UTF_8.name()); FileOutputStream outputStream = new FileOutputStream(output); pd4ml.writePDF(outputStream, "pdf"); } Html for the footer: <pd4ml:page.footer scope="1"> <section class="export-page-footer"> <tr > <td class="right"> <span class="pagenum">pag. $[page]</span> </td> </tr> </section> </pd4ml:page.footer> Still shows me as: pag. 1 for all pages from 10-19, after pag.9 and pag. 2 for all pages from 20-29, etc.. Any help would be appreciated. Prasad_G in reply to: Page number not full when converting HTML to PDF December 1, 2021 at 12:28 #34572 Having the same issue with pd4ml 4.1.0. Any update on it please ? Author Posts Viewing 2 posts - 1 through 2 (of 2 total)