简体   繁体   English

在Android按钮上打印Pdf文件单击

[英]Print a Pdf file on the Android Button Click

I have a pdf file in my sd card i want to print that file on the button click. 我的SD卡中有一个pdf文件,我想在单击按钮时打印该文件。 In this document it tells only how to print a custom content by rendering it on a PDF canvas and sending thus created PDF document for printing. 在本文档中,它仅说明如何通过在PDF画布上呈现自定义内容并发送由此创建的PDF文档进行打印来打印自定义内容。 But has no information about how to print a pdf file directly from sd card? 但是没有有关如何直接从SD卡打印pdf文件的信息? Please anybody has any idea how to handle this. 请任何人有任何想法如何处理。 Thanks in advance 提前致谢

Please go through this document which explains how to print a particular doc, image etc. 请仔细阅读本文档,其中说明了如何打印特定文档,图像等。

https://developer.android.com/training/printing/index.html https://developer.android.com/training/printing/index.html

It even contains a link for the sample and a tutorial video to achieve the same. 它甚至包含该示例的链接和实现该示例的教程视频。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM