Printing to PDF - wants the card to be open
Posted: Sun Jul 27, 2014 5:26 pm
I currently have a program running where I ask for a bunch of user input and then save it to a PDF.
However, since this is to be a mobile application that creates a full size printable PDF, I am using a substack of the appropriate A4 paper size and saving that.
Unfortunately it will not create a PDF unless that card is open. is there a way around this? Thanks in advance!
I have scripted a button for creating the PDF is as follows:
However, since this is to be a mobile application that creates a full size printable PDF, I am using a substack of the appropriate A4 paper size and saving that.
Unfortunately it will not create a PDF unless that card is open. is there a way around this? Thanks in advance!
I have scripted a button for creating the PDF is as follows:
Code: Select all
On mouseUp
ask file "Save PDF as:" with "PDF.pdf"
if it is empty then exit mouseUp
open printing to PDF it
print card 1 of stack "surveyss" into the printRectangle
close printing
end mouseUp