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@lists.runrev.com>
To: How to use LiveCode <use-livecode@lists.runrev.com>
Cc: Terry Judd <terry.j...@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@lists.runrev.com> wrote:
> 
> Hi.
> Are you repeatedly using "open printing to PDF"?
> Craig
> 
> 
> -----Original Message-----
> From: Terry Judd via use-livecode <use-livecode@lists.runrev.com>
> To: use-livecode@lists.runrev.com <use-livecode@lists.runrev.com>
> Cc: Terry Judd <terry.j...@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@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@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@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@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Reply via email to