Closed (works as designed)
Project:
Printer, email and PDF versions
Version:
7.x-2.0
Component:
Documentation
Priority:
Normal
Category:
Support request
Assigned:
Issue tags:
Reporter:
Created:
31 Oct 2014 at 11:48 UTC
Updated:
2 Dec 2015 at 15:25 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
enboig commentedafter looking at #1941772 I executed the shell command directly and it works, so I don't know why is it failing:
wkhtmltopdf ["/home/user/public_html/sites/all/modules/print/lib/wkhtmltopdf-amd64" --page-size A4 --orientation portrait --dpi 96 --disallow-local-file-access --footer-font-size 7 --footer-right '[page]' - -] (returned 1): No stderr output available. Command was: "/home/user/public_html/sites/all/modules/print/lib/wkhtmltopdf-amd64" --page-size A4 --orientation portrait --dpi 96 --disallow-local-file-access --footer-font-size 7 --footer-right '[page]' - -
I changed the input and de output and it works:
wget -O - -o /dev/null http://www.google.com | /home/user/public_html/sites/all/modules/print/lib/wkhtmltopdf-amd64 --page-size A4 --orientation portrait --footer-font-size 7 --footer-right '[page]' - google.pdf
Any hint?
Comment #2
enboig commentedOk, my old print module was patched to use temporary files and not pipes. I have recreated the patch and now it works. Is somebody is interested in the code I paste it here:
Comment #3
enboig commentedComment #4
ftorredeflot commentedHi,
I've been adapting enboig's patch, this adapted patch it works with print module 7.x-2.0