Skip to main content
Participant
January 6, 2014
Question

Print many pages with PrintJob

  • January 6, 2014
  • 1 reply
  • 306 views

I made a script that gets the database (per page) record, creates a Sprite and prints without problems.

The problem is I have the PrintJob, to add pages and then print, and that can take if you need to print 500 pages.

Is there any way to start printing and then go on adding pages. The idea is to make the user does not expect much and not cause slowdowns or system crash.

Any ideas or suggestions?

I used this script:

http://help.adobe.com/en_US/ActionScript/3.0_ProgrammingAS3/WS5b3ccc516d4fbf351e63e3d118a9b90204-7cc0.html

[Sorry my bad english]

This topic has been closed for replies.

1 reply

sinious
Legend
January 6, 2014

Not without a native extension. The PrintJob class (probably for good reasons, like wildly varying printer drivers/capabilities) does not emit events when pages are printed so you have no real way of knowing if a page is printed yet. At most, all you can do is know if your request was successful, not the result. At that point you're left on your own to handle the printing.

500 pages is pretty excessive. I'd look into Adobe Native Extensions to help you out (although most that pre-exist are device related).