Forum How do I...?

convert a website into 1 pdf

mel
Hi,
I'm experimenting this software, which is great! But my knowledge of programmation is insufficient to do what I want.
I have a website (from a wiki software), where html files are in folders within many subfolders. I want to create one pdf, and if possible keeping the links between pages.
I found on this forum how to convert all html from 1 folder :
for file in *.html ; do
prince $file
done

Works fine, but didn't go within subfolders.
If after I use pdftk to merge files, it doesn't work because the file's hierarchy is not preserved.
Is it possible to accomplish this task (or a part) in Prince?
Thanks
mel
mikeday
How about:
prince `find . -name "*.html"` -o out.pdf
mel
wow, it works fine to get all html pages. But the order is a complete mess, I can't really find what is it. But will try to go with that unless someone find an other solution!
Thanks
mikeday
You can save the list of a files to a temporary file, reorder it manually, and then convert:
find . -name "*.html" > files.txt
# edit files.txt manually
prince -l files.txt -o out.pdf

Or if you just want to sort it alphabetically by path name:
find . -name "*.html" | sort > files.txt
mel
Oh, thanks so much, it's wonderful! I should learn those little tricks, it will make my life easier... ;-)