How to convert this chm file to pdf?

10,695

Solution 1

You probably want to use chm2pdf from the universe repository.

You can install it either by clicking the red button or by running the terminal command below:

sudo apt-get install chm2pdf

Install via the software center

You then run the command like this:

chm2pdf OPTIONS FILENAME.CHM FILENAME.PDF

Note that as OPTIONS, you must at least specify either

  • --book (structured output: headings, chapters, ...),
  • --webpage (unstructured, but page breaks between different documents/URLs in the CHM file), or
  • --continuous (unstructured output)

For more information, see man chm2pdf or its online manpage Manpage icon.

Solution 2

Try a different online converter. Zamzar is useful if the CHM file is under 100MB.

http://www.zamzar.com/convert/chm-to-pdf/

Another option is to use chm2pdf. To do so, use the following commands in a terminal session...

sudo apt-get install chm2pdf
chm2pdf foo.chm foo.pdf

That second command assumes that your CHM file is named 'foo.chm', so adjust that as appropriate.

Source: http://www.ubuntugeek.com/how-to-convert-chm-files-into-pdf-files-in-ubuntu.html

Share:
10,695

Related videos on Youtube

Tim
Author by

Tim

Elitists are oppressive, anti-intellectual, ultra-conservative, and cancerous to the society, environment, and humanity. Please help make Stack Exchange a better place. Expose elite supremacy, elitist brutality, and moderation injustice to https://stackoverflow.com/contact (complicit community managers), in comments, to meta, outside Stack Exchange, and by legal actions. Push back and don't let them normalize their behaviors. Changes always happen from the bottom up. Thank you very much! Just a curious self learner. Almost always upvote replies. Thanks for enlightenment! Meanwhile, Corruption and abuses have been rampantly coming from elitists. Supportive comments have been removed and attacks are kept to control the direction of discourse. Outright vicious comments have been removed only to conceal atrocities. Systematic discrimination has been made into policies. Countless users have been harassed, persecuted, and suffocated. Q&A sites are for everyone to learn and grow, not for elitists to indulge abusive oppression, and cover up for each other. https://softwareengineering.stackexchange.com/posts/419086/revisions https://math.meta.stackexchange.com/q/32539/ (https://i.stack.imgur.com/4knYh.png) and https://math.meta.stackexchange.com/q/32548/ (https://i.stack.imgur.com/9gaZ2.png) https://meta.stackexchange.com/posts/353417/timeline (The moderators defended continuous harassment comments showing no reading and understanding of my post) https://cs.stackexchange.com/posts/125651/timeline (a PLT academic had trouble with the books I am reading and disparaged my self learning posts, and a moderator with long abusive history added more insults.) https://stackoverflow.com/posts/61679659/revisions (homework libels) Much more that have happened.

Updated on September 18, 2022

Comments

  • Tim
    Tim almost 2 years

    I want to convert a chm file to a pdf file. Calibre's command ebook-convert ebook-convert 1.chm 1.pdf only converts the first 7 pages of the chm file into a pdf file, while the chm file has much more pages. How can I convert the whole chm file into a pdf file? Thanks.

  • Mark Kirby
    Mark Kirby over 8 years
    +1 chm2pdf looks good, but no need for none Ubuntu based solutions (website) on ask Ubuntu :)
  • Aren
    Aren over 8 years
    Just giving Tim more options (in case chm2pdf is not available in his repositories, in the interests of giving a complete answer. :)
  • Aren
    Aren over 8 years
    Besides, if it's a small CHM, and this is the only one that needs conversion, it might not be worth the effort of installing additional software. ^.^