-
Notifications
You must be signed in to change notification settings - Fork 646
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Using WickedPDF with Webpacker & Bulma CSS #923
Comments
I can confirm that if I use a link to the assets via a CDN, the PDF renders correctly. |
+1 |
2 similar comments
+1 |
+1 |
I think what's happening here is the If you preprocess your CSS files with Sass, Please let me know if this helps. |
turns out in my case, it was because hope it helps |
Looks like this was fixed in #973 Please reopen if this can be reproduced in the latest version. |
Issue description
I'm trying to use WickedPDF in a Rails 6 project that uses the Bulma CSS framework. However, I cannot get it to work properly and I'm wondering what I am doing wrong.
I have a
pdf.html.slim
layout file with the following:My
app/javascript/packs/pdf.js
file looks like this:which in turn calls
app/javascript/stylesheets/pdf.css
When I open a PDF, however, none of the Bulma styling is applied.
I'm using a vanilla
config/webpacker.yml
file:Expected or desired behavior
The styling currently works as expected on the website but not on PDFs.
I'd expect that using Bulma CSS via webpacker displays styles properly in wicked_pdf generated files.
System specifications
cat Gemfile.lock | grep wicked_pdf
): 2.1.0wkhtmltopdf --version
): 0.12.6 (with patched qt)The text was updated successfully, but these errors were encountered: