Page 2 of 2

Re: mobilecomposemail pdf attachment

Posted: Tue Oct 25, 2022 7:14 pm
by trevix
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??

Re: mobilecomposemail pdf attachment SOLVED

Posted: Tue Oct 25, 2022 7:24 pm
by trevix
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.

Re: mobilecomposemail pdf attachment

Posted: Tue Oct 25, 2022 8:09 pm
by jacque
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.

Re: mobilecomposemail pdf attachment

Posted: Wed Dec 28, 2022 7:11 pm
by geo

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