iOS: print to pdf crashing app, please help

William de Smet williamdesmet at gmail.com
Thu May 31 10:23:15 EDT 2012


Hi Chris,

This is my code:
 lock screen
   put specialFolderPath("documents") & "/screenshot.pdf" into tPDFPath
   open printing to pdf tPDFPath
   print this card from 13,6 to 750,753 into 13,6,600,600
   close printing
   unlock screen

Hope this works for you now.

greetings,

William


2012/5/31 Chris Sheffield <cmsheffield at me.com>:
> William,
>
> I've tried different paths as well, including documents. Doesn't seem to make a difference in this case. Every time my handler hits the "print this card" line the app crashes. Are you able to successfully print a pdf into the documents folder?
>
> Thanks,
> Chris
>
>
> On May 31, 2012, at 4:45 AM, William de Smet wrote:
>
>> Hi there,
>>
>> I use 'put specialFolderPath("documents") & "/screenshot.pdf" into tPDFPath'
>> This works fine with me.
>> I don't use 'temporary folder'.
>>
>> greetings,
>>
>> William
>>
>>
>> 2012/5/31 Thomas McGrath III <mcgrath3 at mac.com>:
>>> I could not get this to work for me either.
>>>
>>>
>>> -- Tom McGrath III
>>> http://lazyriver.on-rev.com
>>> 3mcgrath at comcast.net
>>>
>>> On May 30, 2012, at 4:45 PM, Chris Sheffield wrote:
>>>
>>>> So I simply need to print a card to a pdf file. I've looked at the docs, and even viewed Kevin's very handy video from the Small Business Academy. No matter what I try, my app crashes when I try to print the card. Here's my code:
>>>>
>>>> put the temporary folder & "/summary.pdf" into tDocPath
>>>> open printing to PDF tDocPath
>>>> print this card into the printRectangle
>>>> close printing
>>>>
>>>> All goes well until the third line. Am I doing something wrong, or have I found a nasty bug? Anyone else out there printing to pdf files under iOS?
>>>>
>>>> Thanks,
>>>> Chris
>>>>
>>>>
>>>> --
>>>> Chris Sheffield
>>>> Read Naturally, Inc.
>>>> www.readnaturally.com
>>>>
>>>> _______________________________________________
>>>> 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
>
>
> _______________________________________________
> 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