问题
I have a requirement to print PDF on the printer from the Flutter app. Is there a chance to have a possibility to do so right now? I mean that my application is going to fetch the PDF file from the server and then I would like to put it directly to the printer, so it can be printed instantly. The platform that I am targetting is windows.
If this is not possible then is there a chance to execute .bat script using flutter? In the case that there would be no such possibility I could make the script that would print expected file to avoid flutter in this functionality
回答1:
Printing support is something you would likely want to implement with a plugin. The flutter-desktop-embedding project has information about using desktop plugins in the current state, as well as a trivial example plugin to use as a starting point.
来源:https://stackoverflow.com/questions/57579158/flutter-desktop-send-pdf-to-a-printer