Quantcast
Channel: Appcelerator Developer Center Q&A Unanswered Questions 20
Viewing all articles
Browse latest Browse all 8068

view.toimage(); CM size to print in badge Size

$
0
0

I trying to print an image like a badge size. I’m printing with acktie module but its prints too big. I want to know if I can put the parameters to print in 85.60 × 53.98 mm for example.

code: var airprintImageLandFile = Titanium.UI.createButton({ title : 'Print full page image', height : 40, width : '100%', top : 255 }); airprintImageLandFile.addEventListener('click', function() { util.copyLocalFileToDocumentDir("badge.jpg"); var options = { file : "badge.png", view : airprintImageLandFile, sentToPrinter : airPrintCallback };

printer.print(options);

});

thanks :)


Viewing all articles
Browse latest Browse all 8068

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>