Exporting card to png then printing - Android

Moderators: LCNeil, heatherlaine, kevinmiller, elanorb

Post Reply
Posts: 192
Joined: Tue Mar 11, 2014 12:57 pm

Exporting card to png then printing - Android

Post by newtronsols » Mon Jun 23, 2014 1:02 pm

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.

Livecode Staff Member
Livecode Staff Member
Posts: 1223
Joined: Wed Oct 03, 2012 4:07 pm

Re: Exporting card to png then printing - Android

Post by LCNeil » Tue Jul 01, 2014 9:00 am

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

Post Reply

Return to “idea2app and Coding School”