Please give a brief summary of your issue:
Page numbers not showing on report from Linux
Please describe your issue and provide steps to reproduce it:
Using HTML2PDF, I’m trying to print page number on the footer but it’s always blank. The same code works on Windows.
Hello, I’m AiRon, an automated tech support bot While you wait for one of our customer support representatives, I can help you with your question.
It seems that you are experiencing an issue with displaying page numbers in the footer when using the HTML2PDF feature of Apryse SDK on a Linux environment. The problem could be due to differences in how CSS is rendered or fonts are handled between Windows and Linux.
Some things you can try:
Ensure that all required fonts are installed on your Linux system. Missing fonts can cause rendering issues.
Check if the CSS styles for the footer are correctly being applied by inspecting the generated PDF.
Try using absolute positioning in your CSS to ensure the footer is placed correctly.
Test with a simple HTML/CSS to see if the issue persists, isolating the problem to specific CSS properties or HTML structures.
Verify that the HTML2PDF conversion settings are consistent across platforms.
Page numbers for headers and footers not displaying in the generated PDF is a known issue with the current release of the HTML2PDF module. We have an experimental release available that corrects this issue you can download here: Download HTML2PDF Module
Can you try it out and let me know if it corrects your missing page numbers on Linux?