https://developer.android.com/training/printing/custom-docs.html#print-adapter发送PDF文件到定义的打印机
我发现这个,但它太复杂,我认为。我只想发送一个现有的PDF文件到打印机。上述方法是唯一的方法吗?我找不到其他的东西。
https://developer.android.com/training/printing/custom-docs.html#print-adapter发送PDF文件到定义的打印机
我发现这个,但它太复杂,我认为。我只想发送一个现有的PDF文件到打印机。上述方法是唯一的方法吗?我找不到其他的东西。
我发现这一点,但它太复杂,我认为
我同意。 Google doesn't care。
是上述办法是唯一的出路?
据我所知,是的,尽管看到http://stackoverflow.com/a/20719729/115145和this基本实现。
耻辱!感谢你的回答。 –
我不知道什么是你的目标,但是,你的选择是:
Custom print adapter - 就像你所看到的。 CommonsWare编写的代码更容易实现。
Google Cloud Printer - 只是如果你的目标,每个用户将打印设置打印机本身的选项。
我必须说,这是最好的办法。 –
但目前尚不清楚如何实现有PrintDocumentAdapter。任何其他教程? –