revPrintField ???? PDF

Sarah Reichelt sarah.reichelt at gmail.com
Sun Mar 21 07:18:18 EDT 2010


On Sun, Mar 21, 2010 at 8:19 PM, Richmond Mathewson
<richmondmathewson at gmail.com> wrote:
>  on mouseUp
>  revPrintField the name of fld "TTEXT"
> end mouseUp
>
> gives me (on Mac OS X) a standard print dialog (without the print to PDF
> option)

If you do:

on mouseUp
   showPrintDialog false, true
   revPrintField the name of fld "TTEXT"
end mouseUp

Then you will get the print dialog and be able to use OS X's standard
print to pdf.


> the documentation (PDF) has this:
>
> "On Mac OS X systems you can also print directly to a PDF file
> -- even without showing the user a print dialog if choose to."
>
> which is lovely - but nowhere can I find details on how to
> effect this . . .

There are 2 ways to do this. If you have revEnterprise, you can use
the new "open printing to pdf" command which allows lots of extras
like setting author, title, keywords etc, as well as including links
and anchor to allow hyper-linking within the pdf.
If you don't have revEnterprise, or you don't need those features,
then you can set the printerOutput before printing. If you set this to
print to a file, then you will get a pdf on Mac and an XPS file on
Windows.

HTH,
Sarah



More information about the use-livecode mailing list