Nick Long
Nick Long

Reputation:

How to wget a website and then export all the pages into a single pdf?

IS there any way i can do that?

Upvotes: 0

Views: 1662

Answers (2)

user23743
user23743

Reputation:

Yes, you could write an AppleScript to automate Safari to do the printing (and the fetching, if you'd like, though you can drive wget from AppleScript using do shell script). If you don't fancy using AppleScript, you could use Automator instead; the result would be pretty much the same.

BTW if you aren't using Mac OS X, it wasn't clear from the question you asked :-)

Upvotes: 0

Jörg W Mittag
Jörg W Mittag

Reputation: 369430

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

I used:

  • wget to download the pages
  • html2ps to convert the individual pages to PostScript
  • ps2ps to splice the individual 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 could add an additional step of ps2pdf.

Upvotes: 2

Related Questions