Using the HTML2PDF Module, I cannot print a PDF from an HTML with @page css tag.
Example of my HTML:
<?xml version="1.0" encoding="UTF-8"?>
... a very long text...
I tried also to encapsulate @page inside a “@media print” class and setting WebPageSettings.SetPrintMediaType to true, but no success.
With the same css, the Chrome print to pdf prints a correct paginated PDF.
There is a way to make it work?
To investigate further could you please provide the following information.
- Input file(s) (HTML plus any other required external files)
- Generated output file(s) (PDF output)
- Code and settings used to generate (2) from (1)
- Screenshots showing the output, and clearly indicating what you expected to get instead, and also clearly indicating the application/browser being used to view.