Closed (duplicate)
Project:
Printer, email and PDF versions
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
30 Mar 2011 at 00:28 UTC
Updated:
14 Jul 2011 at 15:50 UTC
Jump to comment: Most recent file
Comments
Comment #1
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 commentedThis first patch does not work. I'm proposing another one to solve the issue...
Comment #3
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 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 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 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 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 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
jcnventuraDuplicate of #1169148: Path to custom CSS not working