LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Tags used in this thread
Popular LQ Tags ,

Reply
 
Thread Tools
Old 02-26-2006, 07:45 AM   #1
Randux
Senior Member
 
Registered: Feb 2006
Location: Siberia
Distribution: Slackware & Slamd64. What else is there?
Posts: 1,707
Thanked: 19
Question Convert .chm to .pdf or text?


[Log in to get rid of this advertisement]
Has anybody using Slackware found a way to convert .CHMs to .PDFs or text files? I have some pretty nice doc that I would like to be able to read on my Linux machines.

Thanks,
Rand
Randux is offline     Reply With Quote
Old 02-26-2006, 08:09 AM   #2
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,036
Thanked: 0
Take a look at xchm:
http://xchm.sourceforge.net/
david_ross is offline     Reply With Quote
Old 02-26-2006, 08:25 AM   #3
Randux
Senior Member
 
Registered: Feb 2006
Location: Siberia
Distribution: Slackware & Slamd64. What else is there?
Posts: 1,707
Thanked: 19

Original Poster
Thanks, man. I will try it later and report back to the group if I succeed (or more likely, break something)
Randux is offline     Reply With Quote
Old 02-26-2006, 01:35 PM   #4
samac
Member
 
Registered: Mar 2004
Location: Westray, Orkney
Distribution: Slackware64-current (multi-lIb)
Posts: 741
Thanked: 40
KDE 3.5.1 opens chm files within konqueror.

Works way better than xchm for me, the pages are rendered much more accurately.

Samac
samac is offline     Reply With Quote
Old 02-26-2006, 03:00 PM   #5
Randux
Senior Member
 
Registered: Feb 2006
Location: Siberia
Distribution: Slackware & Slamd64. What else is there?
Posts: 1,707
Thanked: 19

Original Poster
Quote:
Originally Posted by samac
KDE 3.5.1 opens chm files within konqueror.

Works way better than xchm for me, the pages are rendered much more accurately.

Samac
That is interesting news; maybe there's a KDE module we can use. I don't run KDE, or I would just do like you said. Thanks for the info.
Randux is offline     Reply With Quote
Old 02-26-2006, 03:22 PM   #6
dom83
LQ Newbie
 
Registered: Jan 2006
Posts: 20
Thanked: 1
For watching chm files I use HelpExplorer. In my opinion it renders chm files really good. But as I haven't used xchm or konqueror I can't compare them.


But if you have to convert chm files, here is a quick description how I convert them:

You need chmlib and htmldoc. Both are available at linuxpackages.net

1. extract_chmLib file.chm tempDir
2. htmldoc --no-title -d outputDir tempDir/*.htm

After these two steps you will find a index.html in the output directory.

With htmldoc you can also create a pdf or a single html file, but I get the best results with the mentioned steps.
dom83 is offline     Reply With Quote
Old 02-26-2006, 04:42 PM   #7
Randux
Senior Member
 
Registered: Feb 2006
Location: Siberia
Distribution: Slackware & Slamd64. What else is there?
Posts: 1,707
Thanked: 19

Original Poster
Thanks, man. I only have to do this once (I hope) so I can even do it on doze if I can find an easier deal. Then I just pipe them over to my linux machines.

By the way, in case anyone cares, xpdf seems way better than gv. I started using it today and it's pretty nice for viewing doc because you can search. I couldn't find a search in gv. Also, I had a .PDF that gv couldn't open, but I had no problems when I used xpdf. Neither of them seem to do much good zooming on pages, though.
Randux is offline     Reply With Quote
Old 02-26-2006, 06:17 PM   #8
JockVSJock
Member
 
Registered: Jan 2004
Posts: 553
Thanked: 0
Quote:
Originally Posted by samac
KDE 3.5.1 opens chm files within konqueror.

Works way better than xchm for me, the pages are rendered much more accurately.

Samac

I could NEVER get xchm to work...but I got Kchm under KDE working like a champ...Didn't know about Konqueror...thanks for the tip.
JockVSJock is offline     Reply With Quote
Old 02-27-2006, 07:17 AM   #9
allend
Member
 
Registered: Oct 2003
Location: Melbourne
Distribution: Slackware-current
Posts: 853
Thanked: 48
Quote:
Also, I had a .PDF that gv couldn't open, but I had no problems when I used xpdf.
Did you try turning off the option to Respect Document Structure in gv?
allend is offline     Reply With Quote
Old 02-27-2006, 07:33 PM   #10
willysr
Member
 
Registered: Jul 2004
Location: Jogja, Indonesia
Distribution: Slackware-Current
Posts: 716
Thanked: 8
Quote:
I could NEVER get xchm to work
What's the problem? Have you installed all the required dependencies? I can install it and it's working great at my system
willysr is offline     Reply With Quote
Old 03-12-2006, 07:30 PM   #11
Randux
Senior Member
 
Registered: Feb 2006
Location: Siberia
Distribution: Slackware & Slamd64. What else is there?
Posts: 1,707
Thanked: 19

Original Poster
Ok, I finally had time to do this. I did like David Ross suggested and went to the xchm page. Actually I did an apt-get install on Debian just to see if I liked it- it works ok except the forwards/backwards buttons only work if you've already been there!

There are some prereqs, like wxGTK2.6 and chmlib. It took a while to build all this from sources but it's pretty nice. I added my NTFS to the fstab (I know everybody else probably already did this but I said "no" during the installation.) Now at least my Win machine can be a dead doc/music server.

If you use rox you can setup default actions for double-clicks (or single clicks) so now I can read PDFs and CHMs from my Win machine and save duplicating stuff.

Thanks, David and everybody.

Regards,
Randux
Randux is offline  
Tag This Post ,
Reply With Quote

Reply

Bookmarks


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
What program can be used to view/convert *.chm (win help) files? shy Linux - Software 22 01-17-2008 10:35 AM
Convert pdf to html or txt or remaster the pdf? jago25_98 Linux - Software 1 12-13-2005 02:11 AM
How to convert .info to .pdf? huweiming268 Linux - Software 1 07-20-2005 03:02 AM
Convert RTF to PDF hypernetics Linux - Software 2 12-06-2004 08:37 PM
PHP: convert to PDF mikeshn Programming 1 10-01-2003 07:23 AM


All times are GMT -5. The time now is 01:53 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
RSS2  LQ Podcast
RSS2  LQ Radio
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration