【问题标题】:Send a pdf file to the defined printer将 pdf 文件发送到定义的打印机
【发布时间】:2017-10-17 11:33:44
【问题描述】:

https://developer.android.com/training/printing/custom-docs.html#print-adapter

我找到了这个,但我认为它太复杂了。我只想将现有的 pdf 文件发送到打印机。上面的方法是唯一的方法吗?我找不到其他任何东西。

【问题讨论】:

  • 我必须说这是最好的方法。
  • 但不清楚如何在那里实现 PrintDocumentAdapter。还有其他教程吗?

标签: java android


【解决方案1】:

我找到了这个,但我认为它太复杂了

我同意。 Google doesn't care.

以上方法是唯一的方法吗?

AFAIK,是的,不过请参阅 http://stackoverflow.com/a/20719729/115145this 了解基本实现。

【讨论】:

  • 耻辱!感谢您的回答。
【解决方案2】:

我不确定你的目标是什么,但你的选择是:

  1. Custom print adapter - 就像你看到的那样。正如 CommonsWare 所写,您可以找到更简单的实现。

  2. Google Cloud Printer - 如果您的目标是每个用户都将打印并自行设置打印机,则可以选择此选项。

【讨论】:

    猜你喜欢
    • 2013-07-01
    • 1970-01-01
    • 1970-01-01
    • 2017-05-10
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2019-12-25
    相关资源
    最近更新 更多