Using pdfbox displays an error:
import java.awt
import javax`
Based on the following code:
imageType = BufferedImage.TYPE_INT_ARGB; //need to specifies java.awt
String[] formats = ImageIO.getReaderFormatNames(); //need to specifies javax
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Finally i found the solution. We can’t use awt with Android, so, finally go for the pdf viewver lib on http://sourceforge.net/projects/andpdf/files/
Find out the apk and also source for pdf to image.
Here is myclass to convert pdf to image: