Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Tue 21 Oct 2014, 22:27
All times are UTC - 4
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » REQUESTS
wkhtmltopdf - html to pdf converter
Post_new_topic   Reply_to_topic View_previous_topic :: View_next_topic
Page 1 of 1 Posts_count  
Author Message
Dromeno

Joined: 12 Sep 2008
Posts: 538

PostPosted: 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
View user's profile Send_private_message 
muggins

Joined: 20 Jan 2006
Posts: 6688
Location: lisbon

PostPosted: 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
View user's profile Send_private_message 
rcrsn51


Joined: 05 Sep 2006
Posts: 9200
Location: Stratford, Ontario

PostPosted: 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
View user's profile Send_private_message 
muggins

Joined: 20 Jan 2006
Posts: 6688
Location: lisbon

PostPosted: 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
View user's profile Send_private_message 
rcrsn51


Joined: 05 Sep 2006
Posts: 9200
Location: Stratford, Ontario

PostPosted: Sun 24 Feb 2013, 08:41    Post_subject:  

What browser are you using?
Back to top
View user's profile Send_private_message 
Dromeno

Joined: 12 Sep 2008
Posts: 538

PostPosted: Tue 05 Mar 2013, 05:40    Post_subject: Thx!  

Muggins, thanks!
Back to top
View user's profile Send_private_message 
Dromeno

Joined: 12 Sep 2008
Posts: 538

PostPosted: 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
View user's profile Send_private_message 
muggins

Joined: 20 Jan 2006
Posts: 6688
Location: lisbon

PostPosted: 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
View user's profile Send_private_message 
aragon

Joined: 15 Oct 2007
Posts: 1698
Location: Germany

PostPosted: 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
View user's profile Send_private_message 
Display_posts:   Sort by:   
Page 1 of 1 Posts_count  
Post_new_topic   Reply_to_topic View_previous_topic :: View_next_topic
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » REQUESTS
Jump to:  

Rules_post_cannot
Rules_reply_cannot
Rules_edit_cannot
Rules_delete_cannot
Rules_vote_cannot
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0511s ][ Queries: 12 (0.0051s) ][ GZIP on ]