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

That's not possible. The PDF format supports geometric shapes, which isn't something supported in HTML. Try drawing a circle using just HTML.


Well, in theory you could render text as HTML (with @font-face for example), and then have individual canvas elements for the geometric shapes and images.


In theory, you can also use CSS3 and some hackery and get all the geometric goodness ... but that's in theory. In practice, your code will look oh so nasty and be unmaintainable. Maybe by HTML6 or CSS4 we'll get some geometric goodness making this feasible, but for now, Canvas or SVG is the way to go.




Consider applying for YC's Fall 2026 batch! Applications are open till July 27.

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

Search: