PdfBox-Android icon indicating copy to clipboard operation
PdfBox-Android copied to clipboard

Is PDFRenderer working now?

Open jyosh opened this issue 11 years ago • 1 comments

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

jyosh avatar Jun 19 '15 09:06 jyosh

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.

TomRoush avatar Jun 19 '15 19:06 TomRoush