Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Why not simply press Ctrl+p and print to PDF?


We have tried it in the past, just doesn't work reliably with different html configurations.

Does ctrl+p on this page -> https://jaresume.com/thomas look good for you?


Have you tried using a print media stylesheet? You could hide the navigation, reduce the whitespace, maybe shrink the font size a little bit, and remove link text decoration.


Great idea. I have used print media sheets in the past, but found them easy to have regressions e.g. elements that are introduced but not hidden. A webpage to pdf process is also vunerable to that though.

I think ideally, because the resume renderer is a react component, I'd rather just boot up chromium with the react component and resume data and do a fully clean render of the page into pdf.

We shall see.


For me, when I load the page, I see a resume display and then a split second later it's all replaced with "AN UNEXPECTED ERROR HAS OCCURRED."

Is the error so critical that it must hide your content? Did it accidentally include your AWS keys or something?


Sorry about that. I had just introduced a bug for anonymous users. Should work now.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: