public class PDFDecoder
extends java.lang.Object
PdfRenderer.Page into a Bitmap| Constructor and Description |
|---|
PDFDecoder(int position,
java.io.File file,
float scale)
basic constructor for PDFDecoder.
|
| Modifier and Type | Method and Description |
|---|---|
android.graphics.Bitmap |
decode(android.content.Context context,
android.net.Uri uri)
Creates a
Bitmapin the correct size and renders the PdfRenderer.Page into it. |
public PDFDecoder(int position,
java.io.File file,
float scale)
scale - the scale to get from Point to Pixelpublic android.graphics.Bitmap decode(android.content.Context context,
android.net.Uri uri)
throws java.lang.Exception
Bitmapin the correct size and renders the PdfRenderer.Page into it.context - not useduri - not usedException, - if rendering failsjava.lang.Exception