I have some print code that will be printing a lot of pages.
Overall, calling addPage in a loop takes over 60seconds and I get a
timeout. I tried to use callLaters to add each page after each
callLater, but it won't let me add a page after the first
callLater. The documentation says you can call addPage in the
nextFrame, but it doesn't seem to work. Any ideas?
First, what was the reason for you to use PrintJob, not the
Second, using callLater for printing is wrong - the content
has not been rendered yet when callLater is invoked.
You should use validateNow() as it gives you at least a
result of the first pass rendering.