I was planning to transition my resume to markdown. I used to have it in that format for a while, but my most recent form of it was written in pure HTML for convenience. One of the factors, thinking back, was that I started to want to put stuff in tables in my resume, which in itself is probably questionable, but here we are anyway. Tables aren't terribly flexible with markdown.

Because of this, I had been using a tool called wkhtmltopdf to convert my old resume html to pdf. I used to update it manually by printing to PDF, but I wanted to eliminate that workflow and automate it with the blog site "build" as it were.

For a year, I had the wkhtmltopdf only running under linux with docker. But since I don't like to use docker on Mac (with all the VM overhead), I had no ability to use this automation on my Mac and I eventually realized I'm only ever going to update my blog from my laptop (shocker isn't it?) so I needed a solution for this.

It was Codex actually that came up with the suggestion to directly launch Google Chrome straight out of /Applications with some self documenting flags:

"/Applications/Google Chrome.app/Contents/MacOS/Google Chrome" --headless --disable-gpu --no-pdf-header-footer --print-to-pdf=stage/files/slu-resume.pdf pages/old-resume/resume-static.html

This works like a charm!