We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Android Convert pdf file to png

Hi,

I need display pdf file inside android application
This file exist on directory on the file system store
I want open this file in WebView
Question 1:
How I use License for open document?

This my code:
InputStream iS = getResources().getAssets().open(“Aspose.Pdf.lic”);
// Create license object
com.aspose.pdf.License license= new com.aspose.pdf.License();
license.setLicense(iS);

String path = mMainActivity.getApplicationContext().getFilesDir() + “/” + docName;
Document doc = new Document(path);


Question 2:
How I can convert this file to image .png?

I seriously need help with this!!!.

EladAssuta:
I need display pdf file inside android application
This file exist on directory on the file system store
I want open this file in WebView
Hi Elad,

Thanks for contacting support.

Aspose.Pdf for Android provides the feature to create and manipulate existing PDF files. I am afraid it does not support the feature to display PDF files. However as per your requirement, you may consider converting PDF pages to Image format and then display the image files.
EladAssuta:
Question 1:
How I use License for open document?
Please visit the following link for further information on Licensing

EladAssuta:
Question 2:
How I can convert this file to image .png?
Please visit the following link for further details on Convert PDF Document to Specified Images

Hi ,

I am using “process” method in Aspose.pdf

the conversion is so slow it takes 70 seconds to convert a basic one page pdf with no pictures.
Is there any other faster means achieve this ? share some example.

@karan.deep.singh

Thanks for contacting support.

Could you please share your sample PDF document with us along with complete code snippet that you are trying at your side. We will test the scenario in our environment and address it accordingly.