Using muPDF with curl/flip effect

前端 未结 2 455
悲&欢浪女
悲&欢浪女 2020-12-16 17:49

I\'m using muPDF for reading PDFs in my application. I don\'t like its default animation (Switching horizontally). In other side i found this brilliant library for curl effe

2条回答
  •  [愿得一人]
    2020-12-16 18:00

    If the muPDF does not support rendering to a bitmap, you have no other choice than rendering to a regular view and take a screen dump to a bitmap like this:

    View content = findViewById(R.id.yourPdfView);
    Bitmap bitmap = content.getDrawingCache();
    

    Then use this bitmap as input to your other library.

提交回复
热议问题