Flutter desktop - send PDF to a printer

*爱你&永不变心* 提交于 2021-02-08 04:23:29

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!