GolfGTIforum.co.uk
General => Site news and bright ideas => Topic started by: Ben Lessani on 15 April 2008, 19:13
-
Hi guys and girls, I wanted my project in PDF format so that I could email it to someone, but Firefox kept stuffing up the PDF print preview (infact, all browsers did). So I quickly knocked up some code to download a thread into HTML format (as a single document), images aren't downloaded, only referenced. Then using a PDF printer (Eg. CutePDF) you can print straight to PDF, but this time its much more viewable and clear. Or you can open the file in Internet Explorer / Firefox etc. and save it again - and it will download all the images too.
Its pretty easy to do it, just do the following...
http://vw.sonassi.com/49436/ (http://vw.sonassi.com/49436/)
Replace the topic number in the above URL to that of your own topic. The topic number can be found in your address bar. It is only 5 integers.
Or, if I have posted on a thread - click the link in my signature and it will load the page automatically.
This code is only going to work for GolfGTI.co.uk - its pretty low impact, it only opens as many pages as you have on your thread. The font and background etc. can all be set with CSS once you have downloaded the document. Enjoy!
Eg. bens ... 1986 MKII 1.8 8v K-Jet Golf ... project - http://vw.sonassi.com/49436/ (http://vw.sonassi.com/49436/)
Eg. dan23 - mk2 GTI project - http://vw.sonassi.com/82574/ (http://vw.sonassi.com/82574/)
FAO Administrators etc.
A small log (http://vw.sonassi.com/log/) is being kept of what has been downloaded, so you can see what effect (if any at all) it's having on the server. Also, the server is caching results now, so it will put a minute load on the GolfGTI server - if the cache is out of date, it will auto update on demand.
-
Very nice Ben, cheers :afro:
-
My first sticky :D
-
FAO Administrators etc.
A small log (http://vw.sonassi.com/log/) is being kept of what has been downloaded, so you can see what effect (if any at all) it's having on the server. Also, the server is caching results now, so it will put a minute load on the GolfGTI server - if the cache is out of date, it will auto update on demand.
So it's your fault!!! :grin:
-
Lol, yeah - so far 0 people have used it - it must be me :shocked: No, I wrote this after the server started having issues - because of that infact.
I'm amazed more people aren't using it really, you can pretty much save anything - Rubjonny's Tuning guide, Topics about polishing, pretty much anything, and it all suits for off line reading.
-
cool, will have a bash when i need to :)
-
Just found this and tried it, but am getting "error 404" :undecided:
-
My mistake mate. We had been porting our clients over from our US server to our UK unit - and I had overlooked this subdomain.
All working now though!
-
it doesnt do all of mine it stops after not very far!
-
http://vw.sonassi.com/46057./
All worky, just give the above a click!
-
Error 404 - Not Found
Oops...
-
Lol, this has been down a short while as it may have been "omitted" when I installed the new cluster.
I'll have a look around for it for you.
-
I hope you're using hyper-v...
-
Fixed just for you mate.
And no, I'm not using Hyper V - my company runs some pretty complex Linux clusters that far exceed what virtualisation could provide.
-
is it possible to use this on another site or can it only be used on golfgti?
-
As I wanted to pop my thread on Wordpress ... I wrote a quick script to parse the cached format and output in XML for Wordpress.
Here's the result http://bensgolf.sonassi.com/ (http://bensgolf.sonassi.com/)
I won't make the code public, but if anyone wants to convert their build thread into a Wordpress XML import file - drop me a PM and I'll take care of it.