Printing just one card to PDF [was Re: The owner of a selected control - a mystery]

Paul Hibbert paul at livecode.org
Tue Feb 24 01:29:26 CET 2015


> On Feb 23, 2015, at 1:00 AM, Graham Samuel <livfoss at mac.com> wrote:
> 
> I am trying to understand how to generate a PDF which has exactly the same dimensions as the object which is being ‘printed’


Try this…

     set the printMargins to 0,0,0,0
     set the printPaperSize to the width of this card,the height of this card
     open printing to pdf specialFolderPath("Documents") & "/mytest.pdf" -- or Wherever
     print this card
     close printing

It works for me in LC5.5.5 to LC7.0.2(rc2).

Paul


More information about the use-livecode mailing list