LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 02-26-2006, 06:45 AM   #1
Randux
Senior Member
 
Registered: Feb 2006
Location: Siberia
Distribution: Slackware & Slamd64. What else is there?
Posts: 1,705

Rep: Reputation: 54
Question Convert .chm to .pdf or text?


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
 
Old 02-26-2006, 07:09 AM   #2
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 66
Take a look at xchm:
http://xchm.sourceforge.net/
 
Old 02-26-2006, 07:25 AM   #3
Randux
Senior Member
 
Registered: Feb 2006
Location: Siberia
Distribution: Slackware & Slamd64. What else is there?
Posts: 1,705

Original Poster
Rep: Reputation: 54
Thanks, man. I will try it later and report back to the group if I succeed (or more likely, break something)
 
Old 02-26-2006, 12:35 PM   #4
samac
Senior Member
 
Registered: Mar 2004
Location: Westray, Orkney
Distribution: Linux Mint 17.1
Posts: 1,424

Rep: Reputation: 138Reputation: 138
KDE 3.5.1 opens chm files within konqueror.

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

Samac
 
Old 02-26-2006, 02:00 PM   #5
Randux
Senior Member
 
Registered: Feb 2006
Location: Siberia
Distribution: Slackware & Slamd64. What else is there?
Posts: 1,705

Original Poster
Rep: Reputation: 54
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.
 
Old 02-26-2006, 02:22 PM   #6
dom83
LQ Newbie
 
Registered: Jan 2006
Posts: 20

Rep: Reputation: 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.
 
Old 02-26-2006, 03:42 PM   #7
Randux
Senior Member
 
Registered: Feb 2006
Location: Siberia
Distribution: Slackware & Slamd64. What else is there?
Posts: 1,705

Original Poster
Rep: Reputation: 54
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.
 
Old 02-26-2006, 05:17 PM   #8
JockVSJock
Senior Member
 
Registered: Jan 2004
Location: SATX
Distribution: RHEL/CentOS
Posts: 1,278
Blog Entries: 4

Rep: Reputation: 148Reputation: 148
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.
 
Old 02-27-2006, 06:17 AM   #9
allend
Senior Member
 
Registered: Oct 2003
Location: Melbourne
Distribution: Slackware-current
Posts: 4,983

Rep: Reputation: 1728Reputation: 1728Reputation: 1728Reputation: 1728Reputation: 1728Reputation: 1728Reputation: 1728Reputation: 1728Reputation: 1728Reputation: 1728Reputation: 1728
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?
 
Old 02-27-2006, 06:33 PM   #10
willysr
Senior Member
 
Registered: Jul 2004
Location: Jogja, Indonesia
Distribution: Slackware-Current
Posts: 3,825

Rep: Reputation: 1101Reputation: 1101Reputation: 1101Reputation: 1101Reputation: 1101Reputation: 1101Reputation: 1101Reputation: 1101Reputation: 1101
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
 
Old 03-12-2006, 06:30 PM   #11
Randux
Senior Member
 
Registered: Feb 2006
Location: Siberia
Distribution: Slackware & Slamd64. What else is there?
Posts: 1,705

Original Poster
Rep: Reputation: 54
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
 
  


Reply

Tags
pdf


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Convert RTF to PDF hypernetics Linux - Software 6 04-04-2014 04:46 AM
How to convert .info to .pdf? huweiming268 Linux - Software 2 09-19-2012 10:09 PM
What program can be used to view/convert *.chm (win help) files? shy Linux - Software 24 07-19-2011 08:53 AM
Convert pdf to html or txt or remaster the pdf? jago25_98 Linux - Software 1 12-13-2005 01:11 AM
PHP: convert to PDF mikeshn Programming 1 10-01-2003 06:23 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 09:46 PM.

Main Menu
Advertisement
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
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration