Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Fresh install of latest dev doesnt appear to be including either the default css file or the custom css file as specified in configuration on checking source.
Also appears to be ignoring the settings for the Printer friendly URL list, have the box unchecked but still displays the list.
Cheers,
Sam
Comment | File | Size | Author |
---|---|---|---|
#2 | custom_css-1110046-2.patch | 939 bytes | guillaumev |
#1 | 1110046.patch | 562 bytes | essbee |
Comments
Comment #1
essbee CreditAttribution: essbee commentedPatch attached. Checks that the css file being unset isnt actually the css file added via the custom option.
Allows user to still keep their custom css file in their themes directory (previously would be unset).
Comment #2
guillaumev CreditAttribution: guillaumev commentedThis first patch does not work. I'm proposing another one to solve the issue...
Comment #3
garnett2125 CreditAttribution: garnett2125 commentedHi guys,
I'm trying to make any css file working on the pdf that is generated by this module but its still not working. I've try with the last patch you gave us guillaumev but no happy end. Does it works on your sides ?
Thanks
Comment #4
essbee CreditAttribution: essbee commentedWell this was all working fine, now I can't get dompdfto render anything but inline css. Just seems to ignore all @imports, I even debugged and checked the $html being passed and the css are their... No idea.
Comment #5
ts145nera CreditAttribution: ts145nera commentedwork for me. Thank you
Comment #6
sdsheridanAll:
Check out http://drupal.org/node/968016#comment-4404402 . I believe I've solved the issue for 6.x-1.12.
Shawn
Comment #7
essbee CreditAttribution: essbee commentedI went a different route to solve the same problem, which involved removing code rather than adding more.
Currently in print.pages.inc in _print_var_generator() if the page is being sent by email it embeds the CSS. I simply commented out the if statement (lines 196, 206-209) so that it embeds the CSS in all scenarios. This ensures the PDF doesnt even need to download css files.
Possibly worth considering, maybe not for all, but at least for PDF generated pages.
Cheers,
Sam
Comment #8
PixelClever CreditAttribution: PixelClever commentedThis is definitely a bug report not a support request. I've confirmed the same issue in dompdf and tcpdf in the 6x branch. I suspect it is an issue related to the path to the css file.
P.S. For those posting in the issue queue, you should be aware that changing the status to a "support request" can prevent the issue from getting noticed by the maintainer. Many maintainers (myself included) don't respond to support requests at all.
Comment #9
essbee CreditAttribution: essbee commentedIs there any reason not to go down the embedded CSS per #7?
I think embedding the CSS prior to PDF generation completely solves any of these type of issues. It works well for the email routine so the code is already there - in fact it actually reduces the amount of code overall.
Comment #10
jcnventura CreditAttribution: jcnventura commentedDuplicate of #1169148: Path to custom CSS not working