Printing to pdf cuts off portion of card
Posted: Wed Dec 23, 2020 3:26 am
So I've had two posts with this whole printing to pdf thing on android. Overall, great results.
1) How do I get it to save to the document folder? And, Klaus totally answered that.
2) How do I display that pdf once it's saved? And, Bernard totally answered that.
Now, one more and I think I am set. For some reason the following code cuts off the right and bottom of the card being printed. Both on the IDE (and desktop web browser to display) and on the android device:
--
on mouseUp
put specialfolderpath("documents") & "/lms.pdf" into tPDFPath
open printing to pdf tPDFPath
print card
close printing
end mouseUp
--
Any thoughts on why it is doing that?
1) How do I get it to save to the document folder? And, Klaus totally answered that.
2) How do I display that pdf once it's saved? And, Bernard totally answered that.
Now, one more and I think I am set. For some reason the following code cuts off the right and bottom of the card being printed. Both on the IDE (and desktop web browser to display) and on the android device:
--
on mouseUp
put specialfolderpath("documents") & "/lms.pdf" into tPDFPath
open printing to pdf tPDFPath
print card
close printing
end mouseUp
--
Any thoughts on why it is doing that?