document-viewer icon indicating copy to clipboard operation
document-viewer copied to clipboard

Printing documents

Open jalami opened this issue 8 years ago • 6 comments

Android 4.4 added the ability to use print plugins to print content over wifi. It looks like it's expecting a pdf to be passed to the print plugin so we could start with pdf documents.

How feasible would this be to implement? If this is something you want to do and need help with something like this, let me know where to start.

jalami avatar Nov 21 '15 16:11 jalami

I think this would be nice to have. I had a look at the printing API, and I'm not sure if we can get away with just passing the PDF file to the printing system. At least, it looks like printing a page range requires the app to generate a new PDF with just those pages.

mupdf has an API for writing to PDF, maybe we could use that? http://mupdf.com/docs/browse/include/mupdf/pdf/output-pdf.h

Alternative is to just write each page to a bitmap (afaik that's the only option for some of the formats Document Viewer supports like djvu) and then add those to a PDF, perhaps using android's builtin PDF writing API.

ericwa avatar Nov 25 '15 21:11 ericwa

Is this enacement still considered to be comming?

theScrabi avatar Jun 09 '16 06:06 theScrabi

Yes, although development on this project is slow. This might be a starting point: http://stackoverflow.com/a/20719729

ericwa avatar Jun 10 '16 21:06 ericwa

I think that printing has involved since this enhancement was posted. https://developer.android.com/training/printing/index.html

zyphos avatar Jan 12 '17 07:01 zyphos

Adding printing capability to this app would make it the top pdf app! Since now most devices are using at android 4.4 and newer, I think that the android print service is just perfect.

frazzmark avatar Jul 11 '17 07:07 frazzmark

So what's the state? Would someone be encouraged to add this in the near future, if there was a bounty on this? I'd give 5€ for this feature to be implemented...

castilma avatar Jan 26 '20 15:01 castilma