Printing just one card to PDF [was Re: The owner of a selected control - a mystery]
dochawk at gmail.com
Mon Feb 23 23:26:01 CET 2015
On Mon, Feb 23, 2015 at 1:00 AM, Graham Samuel <livfoss at mac.com> wrote:
> But meanwhile, for my personal knowledge database, I am trying to
> understand how to generate a PDF which has exactly the same dimensions as
> the object which is being ‘printed’
I currently have this:
-- print otCd from 0,0 to pg_wdt,pg_hgt into 18,18,576+18,756
print otCd into 18,18,576+18,756
The commented version worked in 5.5. I had to change to the current
version for 7. If memory serves, it was crashing.
In any event, keeping the card to the same dimensions should do it (at
least with square pixels . . .)
Also, it was set up in preOpenCard with
set the height of me to pg_hgt --+ the height of graphic "bgCtrlRect"
--room at the bottom for controls
set the width of me to 8*72
set the printMargins to 12,12,24,24
The older bgCtrlRect was an area that hung around at the bottom. The
crashes led to my replacing it with a palette (which was on my to do list,
I don't think I've tried the offending language in 7.0.2 (undoing my
workarounds is *way* down on the priorities list).
Dr. Richard E. Hawkins, Esq.
More information about the use-livecode