Open printing to PDF bug?

JosepM jmyepes at mac.com
Thu Sep 23 18:57:30 EDT 2010


This work for me, without change the exact size of the elements, but l lost
about 2 cm at the bottom of the page.
I need to force the stack size and move to some position that I can edit
later, so if I use it in my laptop the stack is resized and when I print the
PDF only show the visible area of the stack. The idea is make this stack
invisible.

Put the margin to 0 left about 2 cm at top and at bottom, left and right are
about 1cm...

on mouseUp
   set the location of this stack to 600,600
   set the width of this stack to 595
   set the height of this stack to 842
   
   set the printPaperSize to "595,842"
   put "595,842" into thePaperSize
   
   put "0" into theMargin
   
   -- get the page area:
   set the printMargins to theMargin,theMargin,theMargin,theMargin
   -- put theMargin,theMargin, item 1 of thePaperSize - theMargin, item 2 of
thePaperSize - theMargin into destinationRect
   -- print into that rectangle:
   open printing to pdf "/Users/joss/Desktop/card_test.pdf"
   print this card --into destinationRect
   close printing
   
end mouseUp

Salut,
Josep
-- 
View this message in context: http://runtime-revolution.278305.n4.nabble.com/Open-printing-to-PDF-bug-tp2550663p2552864.html
Sent from the Revolution - User mailing list archive at Nabble.com.



More information about the use-livecode mailing list