Free Support Forum - aspose.com

Getting error in creating thumbnail from pdf

Hi,



We have pdf document, we would like to show a thumbnail image of the first page.

We are using aspose.pdf-3.0.1.jdk15.jar, aspose-pdf-kit-4.1.0.jar

we have jdk1.5 environment.
please find attached pdf which we are using.

We are using below code to generate thumbnail.



PdfConverter converter = new PdfConverter();

converter.bindPdf(“D:/Controller_Model_SPI_Final.pdf”);

System.out.println(“image pdf trying to create”);

//set start and end pages

converter.setStartPage(1);

converter.setEndPage(1);

converter.doConvert();

System.out.println(“image pdf successfully generated2222”);

String prefix = “D:/”;

String suffix = “sssss.png”;

int imageCount = 1;

while (converter.hasNextImage())

{

System.out.println(“image pdf successfully generated11111”);

converter.getNextImage(prefix + imageCount + suffix, ImageType.PNG);

imageCount++;

break;

}


We are getting error.

Exception in thread “main” java.lang.NoSuchFieldError: TRACKING

at com.aspose.pdf.kit.ks.a(Unknown Source)

at com.aspose.pdf.kit.lg.a(Unknown Source)

at com.aspose.pdf.kit.is.a(Unknown Source)

at com.aspose.pdf.kit.qy.a(Unknown Source)

at com.aspose.pdf.kit.is.a(Unknown Source)

at com.aspose.pdf.kit.is.a(Unknown Source)

at com.aspose.pdf.kit.lg.a(Unknown Source)

at com.aspose.pdf.kit.is.b(Unknown Source)

at com.aspose.pdf.kit.is.a(Unknown Source)

at com.aspose.pdf.kit.lg.a(Unknown Source)

at com.aspose.pdf.kit.js.a(Unknown Source)

at com.aspose.pdf.kit.PdfConverter.doConvert(Unknown Source)

at Test111.main(Test111.java:36)












Hi Saurabh,

I have reproduced this problem at my end and logged it as PDFKITJAVA-33154 in our issue tracking system. Our team will look into this issue and you’ll be updated via this forum thread once it is resolved.

We’re sorry for the inconvenience.
Regards,

The issues you have found earlier (filed as PDFKITJAVA-33154) have been fixed in Aspose.Pdf.Kit for Java 4.4.0.


This message was posted using Notification2Forum from Downloads module by aspose.notifier.