News for hackers. Stuff that matters.
Re:Show HN: I created snapDOM to capture DOM nodes as images... by maxloh on Sunday April 27, 2025 @02:42PM (#43814143)
Maybe add a function to convert to PDF? I've always dreamed of converting an element or the document body to a long-scrolling PDF. I tried to implement it with Playwright Python, but I had no luck. The resulting PDF height is messed up.
Re:Show HN: I created snapDOM to capture DOM nodes as images... by tinchox6 on Sunday April 27, 2025 @04:29PM (#43814857)
Its a bit out of scope right now, but I thing it would be possible using some external libraries such as jsPDF or svg2pdf.js