Android : Android convert PDF (with PDFPage) to Jpeg not working with pictures

on Wednesday, September 10, 2014


i'm using the object com.sun.pdfview.PDFPage in order to parse a PDF file to a Jpeg file. It works almost well with lines and text but is not working if the pdf contains pictures, i'm tired tryng for solutions for this.



Bitmap bm = null;
mPdfPage = mPdfFile.getPage(page, true);
float wi = mPdfPage.getWidth();
float hei = mPdfPage.getHeight();
RectF clip = new RectF(0, 0, mPdfPage.getWidth(), mPdfPage.getHeight());
bm = mPdfPage.getImage((int)(wi*zoom), (int)(hei*zoom), clip, true, true);


What's wrong? Should i use another object to parse the pdf?


Thx!!


0 comments:

Post a Comment