Printing rubbish
Richmond Mathewson
richmondmathewson at gmail.com
Sat Nov 28 11:18:25 EST 2009
I have a card containing a field that is 875 wide (on a Mac),
so when I do this:
on mouseUp
set the printerOutput to "file: Rubbish.pdf"
print this card
end mouseUp
I get rubbish insofar as i get the left half of
the card in a PDF file; wonder what happened to the
right half?
----------------------------------------------------------
Of course this:
on mouseUp
set the printerOutput to "file: RubbishToo.pdf"
print fld "fTEXT"
end mouseUp
just throws a "bluey"!
A bit of a shame, really, as printing from text-fields would
be ever-so nifty.
/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\
I wonder whether this:
"Output direct to PDF
Cards or portions of cards can now be output direct to pdf format files."
means that one can do this in Supercard ????
/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\
This:
on mouseUp
set the printerOutput to "file: RubbishToo.pdf"
print this card from 204,159 to 764,561
end mouseUp
proved interesting as it printed out most of the field (204,159 being
the field's top-left
and 764,561 being its bottom-right), but chopped off its right side
(presumably the
field is too wide).
-----------------------------------------------------------------------
Of course, printing a scrolling field to PDF would have been a
non-starter as what is REALLY being printed is a SNAPSHOT of all
or part of the card.
-----------------------------------------------------------------------
Tried this:
on mouseUp
set the printerOutput to "file: RubbishToo.pdf"
revPrintField ("field" && "fTEXT")
end mouseUp
and got a printer dialogue; and, interestingly enough, not the
standard Mac OS X one where there is the option to output to PDF.
---------------------------------------------------------------------
So, for now (at least) outputting a whole field to PDF on Mac looks
fairly hopeless.
More information about the use-livecode
mailing list