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.
2 Answers
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 chm2pdfYou then run the command like this:
chm2pdf OPTIONS FILENAME.CHM FILENAME.PDFNote 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 .
Try a different online converter. Zamzar is useful if the CHM file is under 100MB.
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.pdfThat second command assumes that your CHM file is named 'foo.chm', so adjust that as appropriate.
Source:
3