You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to render a PDF with a page break at a specific point in the HTML. I am using wicked_pdf (2.1.0) and wkhtmltopdf-binary (0.12.6.5) and the suggested CSS classes from wicked_pdf's documentation.
I believe that the problem is not related to wicked_pdf, because the page break is respected when I use the binary installed directly on my computer and not the one that comes from the wkhtmltopdf_binary gem. Strangely though, the version of wkhtmltopdf installed on my computer is the same as the one provided by the gem.
My set-up: Fedora 34 x86_64, Ruby 3.0.2 (rbenv)
Any ideas?
The text was updated successfully, but these errors were encountered:
Could you please post the results of running wkhtmltopdf --version for both the system binary and the one from this project?
One difference I could see is that system binaries often are compiled without QT support, which is necessary for many PDF abilities. Another is that the binaries distributed here sometimes need libraries to be installed on the host system, like libjpeg etc. These may not be present on your current system.
I didn't manage to find an official guide (may be I missed it) with the dependencies, but I have the following installed and latest version for my OS: libjpeg-turbo zlib fontconfig freetype libX11 qt
Just to make sure I was clear earlier, page break works when specifying the system wkhtmltopdf, but does not work with the gem-provided binary.
I am trying to render a PDF with a page break at a specific point in the HTML. I am using wicked_pdf (2.1.0) and wkhtmltopdf-binary (0.12.6.5) and the suggested CSS classes from wicked_pdf's documentation.
I believe that the problem is not related to wicked_pdf, because the page break is respected when I use the binary installed directly on my computer and not the one that comes from the wkhtmltopdf_binary gem. Strangely though, the version of wkhtmltopdf installed on my computer is the same as the one provided by the gem.
My set-up: Fedora 34 x86_64, Ruby 3.0.2 (rbenv)
Any ideas?
The text was updated successfully, but these errors were encountered: