document-viewer
document-viewer copied to clipboard
Printing documents
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.
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.
Is this enacement still considered to be comming?
Yes, although development on this project is slow. This might be a starting point: http://stackoverflow.com/a/20719729
I think that printing has involved since this enhancement was posted. https://developer.android.com/training/printing/index.html
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.
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...