Feature request

7 views
Skip to first unread message

Jeroen

unread,
Oct 14, 2011, 6:25:25 AM10/14/11
to chm2pdf
Hi,

I noticed that with the option --extract-only it is possible to
extract the file. I would like to have it made possible to edit these
HTML files and then continue the process, could this be made possible?
Or that it would me made possible to exclude portions of the chm pages
by html or css tags.

thanks.

Reto

unread,
Nov 12, 2011, 9:49:00 AM11/12/11
to chm2pdf
Hi Jeroen!

I just started using chm2pdf (and also ubuntu) and I am trying to
debug some problem I have.
But maybe I have a solution for you: what you ask is already possible!

If you run the chm2pdf with the --verbose --verbositylevel high
option, you'll see the invoke of htlmdoc.
Just for example, something like this;

htmldoc --book --duplex --format 'pdf14' --jpeg='100' --linkcolor
'blue' --header 'c C' --size 'a4' --no-duplex --linkstyle 'plain' --
embedfonts --bodyfont times --footer 'c C' "/tmp/tmpz5hkxw/Example/
temp0001.html" "/tmp/tmpz5hkxw/Example/temp0002.html" "/tmp/tmpz5hkxw/
Example/temp0003.html" "/tmp/tmpz5hkxw/Example/temp0004.html" "/tmp/
tmpz5hkxw/Example/temp0005.html" "/tmp/tmpz5hkxw/Example/
temp0006.html" "/tmp/tmpz5hkxw/Example/temp0007.html" "/tmp/tmpz5hkxw/
Example/temp0008.html" "/tmp/tmpz5hkxw/Example/temp0009.html" "/tmp/
tmpz5hkxw/Example/temp0010.html" "/tmp/tmpz5hkxw/Example/
temp0011.html" -f example.pdf > /dev/null

In the folder "/tmp/tmpz5hkxw/Example/ you have the prepared files for
htmldoc.
You can browse them with a browser and also edit them.
Then, when you are ready, just copy the invoke for htmldoc (with the
mouse) and paste it (also with the mouse) in the terminal to run it
again.
That should do it!

Ciao
Reto

Reto

unread,
Nov 13, 2011, 9:20:24 AM11/13/11
to chm2pdf
There is even a simpler solution:
first use the --extract-only option, then edit what you need and at
the end re-run script using --dontextract option
(see http://www.karakas-online.de/forum/viewtopic.php?t=11078)
Reply all
Reply to author
Forward
0 new messages