| ▲ | tacostakohashi 8 hours ago | ||||||||||||||||||||||
I've periodically struggled with an HTML resume that can be converted to a PDF using chrome headless / puppeteer wkhtmltopdf, and looks good both on screen and PDF/printed. Admittedly I'm not an HTML/css guru, but I know a bit... and it really feels like it shouldn't be this hard / require so many tricks to get it working even half ok. The biggest issue is that the pages kind of fight against the DOM structure of the HTML. Like lets say I have big: <div> <h2>Experience<h2>
</div>There isn't really a good way to say... * Keep "Experience" and "Job A" on the same page. * Don't break after Job X / before Description. * Don't try to keep the whole toplevel div on one page by breaking before, just break within it, sensibly. Whatever tweaks/hints/hacks one applies to achieve that tend to be pretty brittle across browsers/page sizes/etc. It's very tempting to just give up and go back to... something actually page-centric like word, pagemaker or whatever, instead of HTML and then having print as a second class citizen. | |||||||||||||||||||||||
| ▲ | Rygian 8 hours ago | parent | next [-] | ||||||||||||||||||||||
Have you looked into the CSS paged media directives?. https://developer.mozilla.org/en-US/docs/Web/CSS/Guides/Page... | |||||||||||||||||||||||
| ▲ | alDuncanson 7 hours ago | parent | prev | next [-] | ||||||||||||||||||||||
I was dealing with something similar and ended up writing my resume in markdown and converting the markdown to html, pdf, and png (with tools like pandoc and tectoni) in CI with a custom GitHub action I wrote: https://github.com/alDuncanson/md-press | |||||||||||||||||||||||
| ▲ | INTPenis 8 hours ago | parent | prev [-] | ||||||||||||||||||||||
Oh man, we are kindred spirits. I also feel like there's no point in making a CV in HTML for my website, if I'm going to re-make it in PDF for all the old school application processes out there. My solution was simply to keep the online CV as simple as possible, so it still looked good in PDF. But it's far from perfect. | |||||||||||||||||||||||
| |||||||||||||||||||||||