problems printing a card to pdf

LiveCode is the premier environment for creating multi-platform solutions for all major operating systems - Windows, Mac OS X, Linux, the Web, Server environments and Mobile platforms. Brand new to LiveCode? Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
a-revuser
Posts: 23
Joined: Fri Dec 04, 2009 10:23 am

problems printing a card to pdf

Post by a-revuser » Sun Oct 31, 2010 4:24 pm

Using the following script on a windows XP fails to produce a full card on the paper.
The card is effectively landscape and prints to paper perfectly.
The resulting pdf shows the paper image in landscape with the full card height printed
correctly to the image.
The image is truncated on the right as though it were actually printing a landscape
image on portrait paper. i.e. about 2/3rds of the full image is shown with a third
blank paper where the missing bit should have gone.

Printing a text field (which I know is not a card) works fine with the version 4.5

on mouseUp


--set the printPaperSize to "595,842"
--get the printRectangle
set the printpaperorientation to "landscape"--"portrait" --
set the printcolors to true
--set the printcardborders to true
set the formatforprinting of this stack to true
open printing to pdf "Calcs.pdf"

print this card
close printing
set the formatforprinting of this stack to false
launch document "Calcs.pdf"
end mouseUp

I have experimented with more or less code, but without any cure.
Can you help?
Attachments
landscape card pdf problem.jpg
shows the problem
landscape card pdf problem.jpg (160.48 KiB) Viewed 1788 times

Post Reply