TomRoush / PdfBox-Android

The Apache PdfBox project ported to work on Android
Apache License 2.0
1.02k stars 263 forks source link

Is PDFRenderer working now? #46

Closed jyosh closed 9 years ago

jyosh commented 9 years ago

I saw couple of commits related to PDFRenderer, is it working now? I tried following code but didn't give any output

        InputStream inputStream = assetManager.open("Test.pdf");
        PDDocument pdDocument = PDDocument.load(inputStream);;
        PDFRenderer pdfRenderer = new PDFRenderer(pdDocument);
        Bitmap pageBitmap = pdfRenderer.renderImage(0);
        ImageView imageView = (ImageView)findViewById(R.id.imageView);
        imageView.setImageBitmap(pageBitmap);

If it is working now please provide a sample code for how to use it

TomRoush commented 9 years ago

I've made some progress, but it still isn't done yet. If you try to render, you should still probably be getting a white/black blank image.