How do I create a website and then export all pages to one PDF file?

Is there a way I can do this?

0
pdf


source to share


2 answers


I did it once. It was almost 10 years ago, so I don't remember the details.

I used:



  • wget

    to load pages.
  • html2ps

    to convert individual pages to PostScript
  • ps2ps

    for merging separate PostScript files together
  • ps2ps

    again to put 4 pages on 1

Then I sent the PostScript file to the printer. Since you want PDF, you can add an extra step ps2pdf

.

+2


source to share


Yes, you can write AppleScript to automate Safari for printing (and fetching if you like, although you can control wget from AppleScript using do shell script

). If you don't want to use AppleScript, you can use Automator instead; the result will be about the same.



By the way, if you are not using Mac OS X, it was not clear from your question :-)

0


source to share







All Articles
Loading...
X
Show
Funny
Dev
Pics