HTML to PDF / DOCX / RTF Java converter library › Forums › PD4ML Forums › Technical questions / Troubleshooting › Page number not full when converting HTML to PDF › Reply To: Page number not full when converting HTML to PDF
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.

