eastsideTim
eastsideTim UltimaDork
7/11/22 3:11 p.m.

Was just thinking it would be nice to be able to convert some old build threads into PDF files, to have an offline copy.  I know there are tools out there that can convert an html page to PDF, but that'd only be one page at a time.  Some of my old threads are 25+ pages long. 

GameboyRMH
GameboyRMH MegaDork
7/11/22 3:20 p.m.

It's pretty computationally expensive to do PDF exports on the server side, but having a one-page reading mode would make it easy to print the page as a PDF on the client side with no extra load on the server (other than possibly having to load a ton of images from the GRM AWS bucket at once).

wae
wae PowerDork
7/11/22 3:55 p.m.

You could use wget to pull everything down for a local copy, but you'd still need to print each page individually.  In Windows, get the latest version of wget and then use powershell:

Using the build thread for der Scheißwagen as a test:

for ($num=1;$num -le 26;$num++){.\wget.exe -p https://grassrootsmotorsports.com/forum/build-projects-and-project-cars/they-said-it-cant-be-fixed-journey-inside-mercedes/142999/page$num/}

I get a directory for each page with the index.html.

With some sed or perl work, I could probably figure a way to stitch those all together as a single page....  hmm

eastsideTim
eastsideTim UltimaDork
7/11/22 4:02 p.m.
wae said:

You could use wget to pull everything down for a local copy, but you'd still need to print each page individually.  In Windows, get the latest version of wget and then use powershell:

Using the build thread for der Scheißwagen as a test:

for ($num=1;$num -le 26;$num++){.\wget.exe -p https://grassrootsmotorsports.com/forum/build-projects-and-project-cars/they-said-it-cant-be-fixed-journey-inside-mercedes/142999/page$num/}

I get a directory for each page with the index.html.

With some sed or perl work, I could probably figure a way to stitch those all together as a single page....  hmm

Yeah, come to think of it, each thread page is a predictable name, isn't it?

914Driver
914Driver MegaDork
7/12/22 12:01 p.m.

Copy & paste to MS Word or Google Doc?

You'll need to log in to post.

Our Preferred Partners
bTSZ9f7VjtJaf6DsPi927RtONmYHLqXN0CEMJU6S3zKX44GeO4h31iOJQFOhY9HP