/**
* Initializes the region decoder. This method initializes
* @param context not used here
* @param uri not used here (file is already loaded)
* @return the rescaled point
* @throws Exception
*/
@Override public Point init(Context context, Uri uri) throws Exception {
this.descriptor = ParcelFileDescriptor.open(file, ParcelFileDescriptor.MODE_READ_ONLY);
this.renderer = new PdfRenderer(descriptor);
page = renderer.openPage(position);
return new Point((int) ((page.getWidth() * scale + 0.5f)),
(int) ((page.getHeight() * scale + 0.5f)));
}
PDFRegionDecoder.java 文件源码
java
阅读 23
收藏 0
点赞 0
评论 0
项目:subsampling-pdf-decoder
作者:
评论列表
文章目录