1

I tried to show content pdf file in my layout (customize). I used Pdf-renderer convert to image (search google solution...) but it have problem, I fixed project but it's still error..

my code:

     try{

        PDFPage mpdfpage;
        PDFFile mpdffile;
        Bitmap bitmap = mpdfpage.getImage(100, 100, null, null, true, true);

    }catch(Exception w)
    {

    }

but have problem: "The type java.awt.Image cannot be resolved. It is indirectly referenced from required .class files"

Blorgbeard
  • 101,031
  • 48
  • 228
  • 272
Mr. Jery
  • 35
  • 1
  • 5

1 Answers1

0

The java.awt packages are not available on Android. You need another PDF renderer that doesn't rely on them.

UPDATE: See if one of the renderers in the answers to this question suits your needs.

Community
  • 1
  • 1
Jan Gerlinger
  • 7,361
  • 1
  • 44
  • 52