| Author |
Message |
Dromeno
Joined: 12 Sep 2008 Posts: 502
|
Posted: Sun 24 Feb 2013, 06:05 Post_subject:
wkhtmltopdf - html to pdf converter |
|
PuppyPDF does work for this but not optimal, PeasyPDF can not yet handle html pages
https://code.google.com/p/wkhtmltopdf/ produces better results
would be great if there was a pet available
|
|
Back to top
|
|
 |
muggins
Joined: 20 Jan 2006 Posts: 6663 Location: lisbon
|
Posted: Sun 24 Feb 2013, 07:17 Post_subject:
|
|
@Dromeno,
As it's a commandline utility, & the static compiled release here runs, why do you need a pet?
|
|
Back to top
|
|
 |
rcrsn51

Joined: 05 Sep 2006 Posts: 7833 Location: Stratford, Ontario
|
Posted: Sun 24 Feb 2013, 08:09 Post_subject:
|
|
What about doing this?
1. Open the HTML document in your web browser.
2. Select Print > Print to File
3. Select PDF output and give the output file a name.
|
|
Back to top
|
|
 |
muggins
Joined: 20 Jan 2006 Posts: 6663 Location: lisbon
|
Posted: Sun 24 Feb 2013, 08:39 Post_subject:
|
|
rcrsn51,
I did that, using this page as the input, & it gave me a pdf with one line at the top, & one at the bottom, but no content in between. Whereas, using wkhtmltopdf, gave me the full document, and a slightly smaller pdf as well.
|
|
Back to top
|
|
 |
rcrsn51

Joined: 05 Sep 2006 Posts: 7833 Location: Stratford, Ontario
|
Posted: Sun 24 Feb 2013, 08:41 Post_subject:
|
|
What browser are you using?
|
|
Back to top
|
|
 |
Dromeno
Joined: 12 Sep 2008 Posts: 502
|
Posted: Tue 05 Mar 2013, 05:40 Post_subject:
Thx! |
|
Muggins, thanks!
|
|
Back to top
|
|
 |
Dromeno
Joined: 12 Sep 2008 Posts: 502
|
Posted: Tue 05 Mar 2013, 05:49 Post_subject:
command not found?! |
|
Hm... what do I do wrong? I unzipped https://wkhtmltopdf.googlecode.com/files/wkhtmltopdf-0.11.0_rc1-static-i386.tar.bz2
to
/root/Downloads/wkhtmltopdf-i386
then changed permissions, opened a terminal in the Downloads directory, typed
wkhtmltopdf-i386 --help
and got 'command not found'
same for
wkhtmltopdf --help
'command not found'
|
|
Back to top
|
|
 |
muggins
Joined: 20 Jan 2006 Posts: 6663 Location: lisbon
|
Posted: Tue 05 Mar 2013, 07:43 Post_subject:
|
|
| Quote: | | and got 'command not found' |
Either extract to /usr/bin, or symlink binary to /usr/bin.
| Quote: | | What browser are you using? |
Yes, I was using chromium. Works fine with firefox.
|
|
Back to top
|
|
 |
aragon
Joined: 15 Oct 2007 Posts: 1691 Location: Germany
|
Posted: Sat 30 Mar 2013, 17:43 Post_subject:
|
|
dromeno,
if you run a binary in the same directory where it is located, you need to prefix it with ./ in your example that would be
./wkhtmltopdf-i386 --help
aragon
_________________ PUPPY SEARCH: http://wellminded.com/puppy/pupsearch.html
|
|
Back to top
|
|
 |
|