Hey, great script. Works great, save for one thing. I think you could/should change the following line:
Code:
for htm in $SUBDIR/*.htm $SUBDIR/*.html; do ## for all the HTML files
to have quotes like this:
Code:
for htm in "$SUBDIR"/*.htm "$SUBDIR"/*.html; do ## for all the HTML files
It fixes a problem of spaces in the folder name.
Before calling htmldoc, I added this line, to change the title of the resulting PDF. It's ugly & hacky, but it gets something better than the 1st line of text as the PDF title.
Code:
sed -i "s,\<title\>.*\<,title\>`basename "$htm"`\<\/,g" "$htm"
I also added to the htmldoc line, so that I get page numbers & a title on the top of each page.
Bookmarks