mobilecomposemail pdf attachment

Anything beyond the basics in using the LiveCode language. Share your handlers, functions and magic here.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

trevix
Posts: 961
Joined: Sat Feb 24, 2007 11:25 pm
Location: Italy
Contact:

Re: mobilecomposemail pdf attachment

Post by trevix » Tue Oct 25, 2022 7:14 pm

I modified the printing orientation to "landscape": nothing
I modified also the pintpapersize to "840,594" (with "landscape"): nothing
Also reversing, "portrait" and "840,594": nothing
LC always creates this cut out Pdf in the same way. So, I don't think that is the print orientation.

Then I checked the Pdf stack size before printing and I found out that, no matter my resizing on preopencard, at the end of PreopenCard the card size is the same of the screenRect.

Code: Select all

on PreOpenCard
     set the width of this stack to 594
     set the height of this stack to 840
    ...
     answer the rect of this card --= 0,0,685,360 which is the screenrect and explain my cut Pdf
end PreOpenCard
So, apparently the stack to be printed cannot be larger then the screenrect on Android. Unless I have to use the fullscreenMode??
Trevix
OSX 14.3.1 xCode 15 LC 10 DP7 iOS 15> Android 7>

trevix
Posts: 961
Joined: Sat Feb 24, 2007 11:25 pm
Location: Italy
Contact:

Re: mobilecomposemail pdf attachment SOLVED

Post by trevix » Tue Oct 25, 2022 7:24 pm

There you go...
Putting a
set the fullscreenmode of this stack to "showAll"
on the PreOpencard solved the problem on Android.
To be seen if it disrupt on iOS...sigh
Thanks for the help again.
Trevix
OSX 14.3.1 xCode 15 LC 10 DP7 iOS 15> Android 7>

jacque
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 7238
Joined: Sat Apr 08, 2006 8:31 pm
Location: Minneapolis MN
Contact:

Re: mobilecomposemail pdf attachment

Post by jacque » Tue Oct 25, 2022 8:09 pm

I didn't think about that, good sleuthing. I'll make a note of it, in case I need to print from a mobile device -- which I sincerely hope never happens.
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com

geo
Posts: 31
Joined: Sun Aug 04, 2019 7:28 pm

Re: mobilecomposemail pdf attachment

Post by geo » Wed Dec 28, 2022 7:11 pm

Code: Select all

on preOpenStack
    set the fullscreenmode of this stack to "noScale"
end preOpenStack
Hello
Set the print stack to the correct size, then use above code
It worked for me on iOS

Post Reply

Return to “Talking LiveCode”