Hi Daniel,
And if it does save then where?
well, you are the developer and if you can answer this, who can?
Come on!
And this is exactly is the problem:
"myPDF.pdf" is a valid filename on the desktop/IDE.
This will be in the current "defautlfolder", whereever that may be!
It is up to you to know this!
But "the defaultfolder" on iOS is obviopusly the folder inside of the
application package***, where you do NOT have write permissions!
*** specialfolderpath("engine")
So at this point the script silently fails and does not continue!
If you pass a VALID filename to the print command, it sure will work!
...
## We are allowed to write to the users docs folder!
put specialfolderpath("documents") & "/yourPDF.pdf" into tPdfFile
open printing to PDF tPdfFile
print this card
close printing
launch document tPdfFile
...
Best
Klaus