So I’ve been struggling to convert html to pdf. There are many attempts at this in the forms of perl scripts, some php dom parsers making use of pdflib or fpdf, and some of them even work … mostly. But without exception all of the solutions I’ve come across in the last month fails on gb2312 (chinese character sets). I’ve actually wanted to hit my head that the solution didn’t make itself apparent earlier … seeing that I’ve been opening the sample .html files with firefox for most of that month to see what it should look like. It’s been staring me in the face and I didn’t realize it.
(more…)
Archive for the ‘Scripting/Programming’ Category
Using FireFox (3.5) to convert html to pdf
Sunday, August 23rd, 2009Live without version control …
Friday, November 21st, 2008I made a large commit a few minutes back, and crazy as this may sound, I nearly sighed an audible sound of relieve! I’m not sure why this is – I managed most of four years of university without version control without an insane amount of harm done.
3G, PINs, prompts and pppd
Monday, November 17th, 2008Webserver (apache) security
Wednesday, October 22nd, 2008Generally my experience with apache has been very good. It’s a decent web server and works very well, is well supported and generally doesn’t suffer too many problems. For an ISP though, there are a few issues: php and other sub-processes/modues runs with the privileges of the apache user. So what is so bad about that?
