Print.js: Printing multiple files in a batch

Created on 10 Aug 2017  路  2Comments  路  Source: crabbly/Print.js

Hi,

in my use case I want to print multiple Files in batch.

I use follwing code to print:

$('#printfiles').click(function(ev){
  // print pdf files
  $('#pdf').children('div').each(function(i, child){
    $child = $(child);
    printJS({printable:$child.data("path")});               
  });
});

Because of the async request all the files will be requested at the same time but
only one will be printed.

In my opinion there are three possible solutions:

  • giving printjs the option to executed the request sync
  • open each file in a blank page
  • queue the print requests

Most helpful comment

Hey @mrothenbuecher , yea, the library currently doesn't support printing multiple files. Not sure if this is even something we should do, as the preview screen has to show to the user for each file. Sounds like a quite annoying user experience. I would code something towards merging the files first into a single file, then printing that one file. This would create one print preview only, providing a better user experience.

All 2 comments

Hey @mrothenbuecher , yea, the library currently doesn't support printing multiple files. Not sure if this is even something we should do, as the preview screen has to show to the user for each file. Sounds like a quite annoying user experience. I would code something towards merging the files first into a single file, then printing that one file. This would create one print preview only, providing a better user experience.

Hi @crabbly ,

Since this case is still closed, I guess printing of multiple files in a batch is not yet supported?

Was this page helpful?
0 / 5 - 0 ratings

Related issues

joster-dev picture joster-dev  路  8Comments

optone picture optone  路  8Comments

r3wt picture r3wt  路  8Comments

Kreativschnittstelle picture Kreativschnittstelle  路  8Comments

Orcinuss picture Orcinuss  路  8Comments