I would like to build a button which would send a batch of files to the printer when clicked (It can prompt the user. Doesn't need to go to the printer without approval). The files would exist in a SharePoint library.
An Example of the situation:
Document A (.docx), Document B (.docx), and Document C (.xlsx) need to be printed weekly. There need to be 5 copies of Documents A and C, and 10 copies of B. When printed they need to be ordered (Bottom of pile to top of pile) as
- 5 Copies of Document A
- 10 Copies of Document B
- 5 Copies of Document C
Is there a way to print these as is, or possibly a way to convert the files to .pdf and use Print.js?
"externals": "printjs": { "path": "/externalLibraries/print.min.js", "globalName": "printjs"}
and in the tsx file you import this libraries as followingimport * as printjs from 'printjs';
– Oskar Apr 16 '18 at 14:10