Efficient Resume Upkeep with xHTML & CSS


Enjoy the powers of today’s CSS and xHTML? Feel you could be putting it to better use? I feel the same way, I’ve come to the conclusion that I really have little need for a word processor when my grasp of xHTML and CSS has become so complete. I don’t say this to brag for myself, but more to brag for the html – I feel this mark-up is under appreciated.
Only a Binary File and No Source
Just a “for instance”, the other day I needed to print off my resumé and quickly. However, a few obstacles stood in my way:
- I’m in between laptops; the PC I’ve been using is my girlfriend’s. This means limited time to fiddle around and learn cool stuff like LaTeX.
- Being that I’m in between laptops, the source file for my most recent resumé will stay buried in my old PC’s hard drive until the new one arrives.
- The only thing I have to work off of for my resumé was a somewhat old PDF print-out I’ve kept on line.
xHTML & CSS: A Natural Choice
So, I needed a quick way to convert my PDF resumé back into source so I could edit it again. I copy/pasted a “select all” out of the PDF into OpenOffice Writer. This turned out more ugly than I had hoped, as the pretty layout of my name/contact info at the top of the page were all dropped down into plain sentences. Naturally, I hastily began restructuring everything using a table — then I thought, “What am I doing? I’m deploying bad html/1990’s habits in Open Office“. I realized I could be structuring my resumé far more efficiently and fruitfully with a few minutes between vi and Firefox.
Nasty Printer Habits
My decision turned out to be for the best, as I now have a resumé that’s sleeker looking than before which I can now tweak with more precision. Then in my haste I continued, “All right, now on to a PDF. File… Print.. ‘to pdf’ … Crap!” Turns out I completely took for granted the nasty print-job that’s become a standard for browser derived content. By that I’m particularly referring to the tendancy for browers not to print background colors (and more importantly css background-images) and the standard of placing time/url/title stamps on all four corners of the pages. 
FLOSS to the Rescue
Into the picture comes the wonderfully efficient and easy to use wkhtmltopdf (web kit html to pdf). This was easy to install, as per my usual findings with GNU/Linux applications, it was simply a matter of:
apt-get install wkhtmltopdf
Then, into my directory containing my beautiful xHTML/CSS Resumé and call with a “html” parameter and “pdf” parameter, like so:
wkhtmltopdf ./htmlresume.html ./htmlresume.pdf
Voilá! I now have a beautiful resumé in PDF format with divs (who’s background-images aren’t being ignored) and output that doesn’t look like it was printed off a website at exactly 02/19/2010 4:31pm and is Page 1 of 1.
You may be asking yourself how I’ve even come to need such a hack. Well, firstly: its a hack so there’s probably another 99 approaches that I could take, but this ones mine. Secondly: good question! Let me explain what I’ve been up to that involves such a care for CSS. I’ve been falling in love with hand-coding standards compliant xHTML and CSS. I’ve been coding a new website to serve as my future home on the inter-webs (don’t hold your breath, though). Building this new site is serving a few purposes: education/experience, plain old fun, and a chance to live without a database. For the seed of inspiration, see 