Alejandro Gorgal
Alejandro Gorgal

Reputation: 303

How to take a screenshot of a HTML form?

I'm working on a project that's basically a web form that the user fills in. Once complete they can save a screenshot of the entire, complete form to use as a sort of pamphlet.

I'm trying to work out the best way to approach this programatically.

I have a simple prototype working using the canvas tag, but the text formatting options aren't good enough for what I need so I'm wondering if there's some other way to generate a screenshot of a HTML element.

Upvotes: 2

Views: 166

Answers (1)

Patrick Hofman
Patrick Hofman

Reputation: 157136

If I may suggest, post the result to a webserver and create a nice PDF document from it using some reporting tool available.

In my opinion, this is the best, maintainable solution. No need for hacking it in HTML or Javascript. You can use your own logo, print layout, fonts, etc.

Upvotes: 3

Related Questions