Hi,
I have two questions:
Android application
Convert pdf file to image
This is my code:
License license= new License();
InputStream iS = getResources().getAssets().open(“Aspose.Pdf.lic”); license.setLicense(iS);
String path = getApplicationContext().getFilesDir() + “/”;
com.aspose.pdf.facades.PdfConverter converter = new com.aspose.pdf.facades.PdfConverter();
converter.bindPdf(path + “myPdfFile.pdf”);
converter.setStartPage(1);
converter.setEndPage(1);
converter.doConvert();
String suffix = “.jpg”;
int imageCount = 1;
while (converter.hasNextImage())
{
File file = new File(path+imageCount + suffix);
if (file.exists())
file.delete();
//convert pdf page to image
converter.getNextImage(path + imageCount + suffix, ImageFormat.getJpeg(),300,600,100);
imageCount++;
}
Qustion 1:
Still there is a message :Evaluation Only.Created with Aspose…????
Question 2:
Why doing this
converter.getNextImage (
takes 3 to 5 minutes ???
pdf file contains only one page!!!
Thank you in advance for your help