Paper Printout

We want to create form for users to fill in via their mobile device, so that once completed they have a ready to printout application that conforms to the A4 paper standard size.

The crucial aspect is to be able to construct a print-ready layout from the custom data users enter so they can save their form as a PNG, JPG or PDF that’s going to be a useful size (A4) for printing to paper later.

Is it possible?

Any input welcome. Many thanks in advance,

  • The Fixdit Team [import]uid: 21125 topic_id: 25697 reply_id: 325697[/import]

Here is what I’m thinking so far when I’m sketching the code in my mind.

1). User enters data via fields which is saved in variables.
2). These variables are used to populate various visual elements like ‘Your Address’.
3). All the final custom elements are placed within a displayObject that adheres to the same proportions as that of an A4 piece of paper.
4). User hits submit which triggers the display.save() function saving the layout within the displayObject() to a jpg/png.
5). User now has an image to send as an email or print from the phone.

How would you get the right resolution so that the saved image is not pixelated when printed at around 150 dpi? [import]uid: 21125 topic_id: 25697 reply_id: 103912[/import]

Problem: display.save() function only captures what’s within the device’s viewport. I don’t think this is any good for image resolution when you’re looking to print it’s output as a useable document.

Any thoughts on a workable way around this? [import]uid: 21125 topic_id: 25697 reply_id: 103924[/import]