I'm using mupdf library in my android application to view the pdf files. Can anyone tell me how to get the bitmap images of each page of a pdf using mupdf library? Thanks in advance....
相关问题
- How can I create this custom Bottom Navigation on
- Bottom Navigation View gets Shrink Down
- Correctly parse PDF paragraphs with Python
- How to make that the snackbar action button be sho
- Listening to outgoing sms not working android
相关文章
- android开发 怎么把图片放入drawable的文件夹下
- android上如何获取/storage/emulated/下的文件列表
- androidStudio有个箭头不认识
- SQLite不能创建表
- Windows - Android SDK manager not listing any plat
- Animate Recycler View grid when number of columns
- Why is the app closing suddenly without showing an
- Android OverlayItem.setMarker(): Change the marker
I found the solution for generate bitmap.
I hope this may help others.Thanks!
The library seems to be updated and doesn't render images if called drawPage() but works fine if we give updatePage()
Find snippet below from the sample source code
use function in
MUPDFcore.class
,it is calleddrawPage(int page, int PDF width,int PDF height, 0,0,int bitmap width,int bitmap height)
This function return bitmap image. 1st parameter is the page that will be rendered.
The 2nd and 3rd parameter are the size of PDF.
The 4th and 5th parameter are the beginning of the bitmap position to be filled with PDF rendered image (this is assumption, because there is no exact documentation regarding these parameters)
THe 6th and 7th parameter are the bitmap size that will be filled with PDF rendered image.
I have already done it within the sample project given by them. Now I'm trying to use it in another project but I still have difficulties.