Page rendered twice, no generated content
I'm trying to generate a PDF of an invoice but the contents are rendered twice and the specified generated content is not rendered. The template uses Bootstrap 4.4.1
, a custom stylesheet with generated content and the Paged.js polyfill, the last two hosted on AWS S3. There are no errors in the Chromium developer console when debug mode is used.
The document body contains the pagedjs_pages
div twice, as shown via the Chromium developer console using debug mode. This only happens when the Paged.js polyfill is used. The generated content cannot be found anywhere in the document contents.
The CLI only logs 1 page that has been rendered.
- OS: VirtualBox
6.1.4
running Ubuntu18.04.4
- Paged.js polyfill version:
0.1.38
- Paged.js CLI version:
0.0.10
- Command used:
pagedjs-cli print-invoice.html -o print-invoice-output.pdf
This also occurs when the pagedjs polyfill from unpkg is used.
<script src="https://unpkg.com/pagedjs/dist/paged.polyfill.js"></script>
The files used and the PDF output: print-invoice.html, print-invoice.css, print-invoice-output.pdf