skelterjohn / go.wde

Windows, drawing and events for Go
217 stars 46 forks source link

Print Dialog cross platform #58

Open ghost opened 5 years ago

ghost commented 5 years ago

Cant see anything in issues or code for this.

I have a PDF and want to print it. I can just open the standard PDF preview app on each OS, and the user prints from the there.... BUT this is nuts BECAUSE I dont knwo the PRINT Size or Format yet.

SO instead i want to do is what the Chrome team did. They open a Print Preview where when you change the Pint format ( SIze and Orientation and Colour), it calls the backend ( my golang code doing PDF's), and then outputs a new PDF.

chrome-print

SO i figure i can build a similar GUI to the one Chrome uses. But then i need to get the list of Printers and their Formats. Maybe https://github.com/google/cloud-print-connector ?