cordova-plugin-printer
cordova-plugin-printer copied to clipboard
Print multiple files at once?
Is it possibile to print multiple files at once? For example, printing 2 or 3 PDF files with only one call to print function?
@Polm90 Did you find a way to do that?
No
@Polm90 Do you have any idea on printing via html content? Like if i need to print different html contents in two different pages at a time. Is that possible to do that?
You can build a single html document with all the content you need. To be sure to break page as needed, I suggest you to use the css page-break rules
@Polm90 Nice idea and thank you very much!
Anyone found solution to print multiple files at once?
@Phoenix-Alpha Yes you need append after a photo or doc this code <p style="page-break-after : always"></p>.
Then call the print function cordova.plugins.printer.print($('#divwithalldocs').html()); and you get multiple prints.
Thanks to @Polm90 very nice idea!