• android pdf转bitmap

    将pdf文件转换成图片并显示在界面, 先要引用AndroidPDFViewerLibrary-master ByteBuffer buffer = ByteBuffer.NEW(bytes); String data = Base64.encodeToString(bytes, Base64.DEFAULT); PDFFile pdf_file = new PDFFile(buffer); int numPages = pdf_file.getNumPages(); Log.v("tag","numPages:"+numPages); PDFPage page = pdf_file.getPage(0,true); float scale=2f; Bitmap image = page.getImage((int)(page.getWidth() * scale), (int)(page.getHeight() * scale), null, true, true);

    0
    782
    20.29MB
    2018-08-01
    48
  • JAVA基础问答大全

    通常刚从学校学完 去面试的时候会发现自己忘记了很多不常用的基础问题 希望这个文件能帮上忙

    0
    57
    17KB
    2011-02-11
    17
关注 私信
上传资源赚积分or赚钱