wkhtmltopdf blank page from file

1,740 views
Skip to first unread message

Francesco Faenza - Dreamers

unread,
Feb 25, 2020, 11:20:13 AM2/25/20
to wkhtmltop...@googlegroups.com
Hello Everyone,

I'm having a very strange issue on my debian docker with wkhtmltopdf.

If I try to render and html page serverd by localhost everything is ok.
But if I try to render the same pdf directly from file I obtain an empty
pdf.

`wkhtmltopdf http://localhost/path /path/test.pdf` -> working

`wkhtmltopdf /path/file.html /path/test.pdf` -> blanck pdf

both url and file path are correct, and I've already tried:

- disabled SeLinux

- changed file right to 777

- executing as root

- removed anything from html file but a simple text

Now I'm trying combinations of page options but I really appreciate help.


Thank you in advance

Francesco


--
/* Books are the best weapon in the world.
[...]Arm yourself! */

Francesco Faenza
Independent Developer
https://www.francescofaenza.it

hiey...@gmail.com

unread,
Feb 25, 2020, 11:24:04 AM2/25/20
to wkhtmltop...@googlegroups.com
Try this:
https://stackoverflow.com/questions/4550612/wkhtmltopdf-cannot-convert-local-file
--
===================================================
You received this message because you are subscribed to the "wkhtmltopdf General" group.
To post to this group, send email to wkhtmltop...@googlegroups.com
To unsubscribe from this group, send email to wkhtmltopdf-gen...@googlegroups.com

For more options, visit this group at
http://groups.google.com/group/wkhtmltopdf-general?hl=en?hl=en
---
You received this message because you are subscribed to the Google Groups "wkhtmltopdf General" group.
To unsubscribe from this group and stop receiving emails from it, send an email to wkhtmltopdf-gen...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/wkhtmltopdf-general/777ec84f-0de5-a392-2ec4-4bc797dcc12b%40associazionedigitaldreamers.it.

Francesco Faenza - Dreamers

unread,
Feb 25, 2020, 1:09:34 PM2/25/20
to wkhtmltop...@googlegroups.com
Thank for help but I've already found that answer and it does not work.
Reply all
Reply to author
Forward
0 new messages