-
Notifications
You must be signed in to change notification settings - Fork 23
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use better print API #13
Comments
I have started implementing this in https://github.com/cgogolin/penandpdf/tree/printing but, it seems the Android print API does not work well with the pdfs produced by MuPDF, or it is very picky about the pdf having exactly the right page sizes. I will have to investigate more... |
Yes, at least it appears to be. There are some fixed layouts. What about using |
I am not keen on adding another pdf library to the app. Everything is built around mupdf and I don't think it is currently possible to change the page size with mupdf, unfortunately. Is there any way to tell the print API that that my app only offers to print in a given format (that natural to the pdf)? |
I have not inspected the code regarding print api, but it renders web pages in On the other side, would you mind attaching an |
I am not concerned about APK size. It is more that already now, I don't have the time to regularly update mupdf to the newest version. I am against adding another library because of maintainability. |
The thing being that ~60% or more of the users don't need How about releasing another |
Btw, I have noticed that with MuPDF 1.12 and newer, you could making build easier. Here is the release notes copied from official release history:
|
Pen&PDF could use this API instead of cloud print. There's some support in the "AndroidX" support library as well, to keep compatibility with much older devices.
Looks like this tutorial might be applicable:
Also relevant to #8
The text was updated successfully, but these errors were encountered: