open printing to pdf - does not work
Posted: Wed Sep 21, 2022 5:58 pm
Hi,
I have not gone to trouble of creating a standalone application, so as I understand it, Livecode (version 9.6.8 Build 15593) on a Mac has everything it needs for standard operation.
I have a card with buttons, labels, text fields on it.
One of the buttons is a "Print" button and it has an "on mouseUp" handler.
If I put the following code in, the card is printed on the printer:
open printing
print card 1;
close printing;
As expected.
However, nothing happens with the following code:
open printing to pdf "file:/Users/andrewtaylor/temp/myFile.pdf"
print card 1;
close printing;
Yet that is all that is needed to print to PDF according to the Dictionary and all documentation that I can find.
Either bug, or I am missing something fundamental.
The above simple code is nowhere near what I want to do - which is to present a dialog box so that the user can select various parameters as well as target either printer or PDF or Preview, but I can't even get the above to work.
Please Help!
Thanks,
Andrew
I have not gone to trouble of creating a standalone application, so as I understand it, Livecode (version 9.6.8 Build 15593) on a Mac has everything it needs for standard operation.
I have a card with buttons, labels, text fields on it.
One of the buttons is a "Print" button and it has an "on mouseUp" handler.
If I put the following code in, the card is printed on the printer:
open printing
print card 1;
close printing;
As expected.
However, nothing happens with the following code:
open printing to pdf "file:/Users/andrewtaylor/temp/myFile.pdf"
print card 1;
close printing;
Yet that is all that is needed to print to PDF according to the Dictionary and all documentation that I can find.
Either bug, or I am missing something fundamental.
The above simple code is nowhere near what I want to do - which is to present a dialog box so that the user can select various parameters as well as target either printer or PDF or Preview, but I can't even get the above to work.
Please Help!
Thanks,
Andrew