Page 1 of 1

Exporting card to png then printing - Android

Posted: Mon Jun 23, 2014 1:02 pm
by newtronsols
Unfortunately Livecode Android doesn't support pdf printing so I'm stuck with using export, png then printing on a pc. I can email the exported image (a form) as a png which looks OK-ish as an attachment and prints OK if if opened in paint and then printed. Though I still need to figure out how to break it so it fits into 3 A4 pages neatly.

Any ideas to make a screen image fit onto A4 sheets - for example if I could email multiple attachments - so I can break the image into 3 separate rectangles to fit 3 A4 pages.

Re: Exporting card to png then printing - Android

Posted: Tue Jul 01, 2014 9:00 am
by LCNeil
Hi newtronsols,

Exporting a snapshot from a card will result in an image that is whatever the cards/controls dimensions are (e.g. a 400 x 400 stack will produce a 400 x 400 snapshot).

To have a stack snapshot at 72dpi A4, then its size should be ideally 595 x 842 (http://www.a4papersize.org/a4-paper-size-in-pixels.php). You could break the image down into smaller chunks (e.g. use the rect of a graphic as a template), but this would not provide any increase in image quality.

A possible solution to look into is using the open source PDF library available from Quartam software-

http://users.telenet.be/quartam/pdflib/ ... ction.html

This mentions Android support so it will hopefully give you some leads :)

Kind Regards,


Neil Roger
--
LiveCode Support Team ~ http://www.livecode.com
——