pvginkel / PdfiumViewer

PDF viewer based on Google's PDFium.
Apache License 2.0
972 stars 418 forks source link

Adds default printer property; #126

Closed VitorRigoni closed 7 years ago

VitorRigoni commented 7 years ago

I loved your component but it was missing a small setting that would allow me to fulfill my requirements.

So what I did was basically externalize a property where a printer can be pre-selected when clicking the print button. If used the default empty, the default printer will be selected automatically by the print dialog.

By setting this property, when clicking the print button, the printer with that name will be the one selected for printing, instead of the default printer.

Thank you for the component!

pvginkel commented 7 years ago

Thanks for the pull request. I've merged it with some minor changes.