Print to PDF

Paul Hibbert paul at livecode.org
Thu Jan 4 00:47:49 EST 2018


Richmond,

I tried using macOS High Siera version 10.13.2 (17C88) and your script writes a PDF in LC7.1.4 & LC8.2.0 (dp2), but in LC9.0.0 (dp11) it prints the card to my default printer, so it seems the ’to PDF’ part is being ignored.

Maybe time for a Bug Report. :)

Paul


> On Jan 3, 2018, at 1:25 PM, Richmond Mathewson via use-livecode <use-livecode at lists.runrev.com> wrote:
> 
> Dunno where all the spaces have gone: I copy-pasted from the 8.1.8 scriptEditor om Mac OS 10.7.5
> 
> Richmond.
> 
> On 3/1/2018 11:00 pm, Tom Glod via use-livecode wrote:
>> let me look up my pdf printing code.....why are all the spaces gone from
>> your code?
>> 
>> On Wed, Jan 3, 2018 at 3:10 PM, Richmond Mathewson via use-livecode <
>> use-livecode at lists.runrev.com> wrote:
>> 
>>> I wonder why this doesn't work:
>>> 
>>> onmouseUp
>>> 
>>> setthelockScreentotrue
>>> 
>>> settheformatForPrintingofthis stack totrue
>>> 
>>> openprinting topdf "./sampleOutput"
>>> 
>>> setthewidthoffld "fff" tothewidthofstack "PDF Printer"
>>> 
>>> settheheightoffld "fff" totheheightofstack "PDF Printer"
>>> 
>>> printcard 1
>>> 
>>> setthewidthoffld "fff" to450
>>> 
>>> settheheightoffld "fff" to560
>>> 
>>> setthetopoffld "fff" to20
>>> 
>>> settheleftoffld "fff" to20
>>> 
>>> closeprinting
>>> 
>>> setthelockScreentofalse
>>> 
>>> endmouseUp
>>> 
>>> 
>>> Richmond.
>>> 
>>> _______________________________________________
>>> use-livecode mailing list
>>> use-livecode at lists.runrev.com
>>> Please visit this url to subscribe, unsubscribe and manage your
>>> subscription preferences:
>>> http://lists.runrev.com/mailman/listinfo/use-livecode
>>> 
>> _______________________________________________
>> use-livecode mailing list
>> use-livecode at lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
>> http://lists.runrev.com/mailman/listinfo/use-livecode
> 
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode





More information about the use-livecode mailing list