Slowdown when printing to PDF in a loop
Terry Judd
terry.judd at unimelb.edu.au
Wed Oct 23 17:16:13 EDT 2019
Hi Craig - nah, just tried and doesn't work in my situation. I'm creating multipage PDFs which requires the use of "print break" between each card, and if I don't "close printing" between reports the PDFs are corrupted (I suspect only one page of each reports gets printed and then something goes awry). I think I'll try automating a batch-based approach.
Thanks for the suggestion though.
Terry...
On 24/10/19, 7:16 am, "use-livecode on behalf of dunbarx--- via use-livecode" <use-livecode-bounces at lists.runrev.com on behalf of use-livecode at lists.runrev.com> wrote:
Terry.
Do this. Should be instantaneous:
on mouseUprepeat with y = 1 to 5put yourPathName && y into jobPathopen printing to pdf (jobPath & ".pdf")print this cardend repeatclose printingend mouseUp
You should get five PDF's in a flash.
Craig
-----Original Message-----
From: Terry Judd via use-livecode <use-livecode at lists.runrev.com>
To: How to use LiveCode <use-livecode at lists.runrev.com>
Cc: Terry Judd <terry.judd at unimelb.edu.au>
Sent: Wed, Oct 23, 2019 2:58 pm
Subject: Re: Slowdown when printing to PDF in a loop
Hi Craig - yes, I open and close printing for each report. I might be wrong (I’ve been using variations of the same printing routine for ages) but I seem to recall that I was unable to successfully or reliably create separate reports unless I closed printing after each one.
Terry...
Sent from my iPad
> On 24 Oct 2019, at 12:53 am, dunbarx--- via use-livecode <use-livecode at lists.runrev.com> wrote:
>
> Hi.
> Are you repeatedly using "open printing to PDF"?
> Craig
>
>
> -----Original Message-----
> From: Terry Judd via use-livecode <use-livecode at lists.runrev.com>
> To: use-livecode at lists.runrev.com <use-livecode at lists.runrev.com>
> Cc: Terry Judd <terry.judd at unimelb.edu.au>
> Sent: Tue, Oct 22, 2019 9:11 pm
> Subject: Slowdown when printing to PDF in a loop
>
> I'm printing a whole bunch of PDFs (multipage feedback reports generated by populating a series of cards with individualised data - mix of text and graphics) and it starts off fast and then inevitably slows down - a lot. While it might start off printing say 14 reports per minute after a few minutes it's down to only 2 or 3. When you're printing 350 reports that obviously takes some time. I'm wondering whether there is something I can try to 'clear the pipes' every few minutes to speed the process up a bit? I've had some success in the past splitting the data up into batches and looping through one batch at a time but it would be great (or at least simpler) not having to do that.
>
> Any ideas? I'm on a Mac BTW, so I'm not sure whether this is a cross-platform issue. LC 9.0.5.
>
> Terry...
>
> _______________________________________________
> 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