PDF to Image conversion Exception in Java

Hello,

I got Exception during convert a pdf file to jpg image.
Please find an attached file that cause the exception.

Thank you,
James Sung


Groupdocs version: 19.6.1 for java
OS: Windows 10
IDE: eclipse
Java: 1.8

ImageSaveOptions imagesaveOption = new ImageSaveOptions();
imagesaveOption.setConvertFileType(ImageSaveOptions.ImageFileType.JPG);
imagesaveOption.setPageNumber(1);//starting page
imagesaveOption.setNumPagesToConvert(1); //convert only one page

class com.groupdocs.conversion.internal.c.a.pd.exceptions.CrossTableNotFoundException: Cross reference table or cross refference stream not found
com.groupdocs.conversion.internal.c.a.pd.internal.l1v.l1v.lj(Unknown Source)
com.groupdocs.conversion.internal.c.a.pd.internal.l1v.l1v.s(Unknown Source)
com.groupdocs.conversion.internal.c.a.pd.internal.l1v.l1v.lI(Unknown Source)
com.groupdocs.conversion.internal.c.a.pd.PageCollection.getUnrestricted(Unknown Source)
com.groupdocs.conversion.internal.c.a.pd.PageCollection.lf(Unknown Source)
com.groupdocs.conversion.internal.c.a.pd.PageCollection.get_Item(Unknown Source)
com.groupdocs.conversion.internal.c.a.pd.facades.PdfPageEditor.getPageSize(Unknown Source)
com.groupdocs.conversion.domain.documents.PdfDocument.dp(Unknown Source)
com.groupdocs.conversion.domain.documents.PdfDocument.a(Unknown Source)
com.groupdocs.conversion.domain.documents.PdfDocument.a(Unknown Source)
com.groupdocs.conversion.domain.documents.PdfDocument.a(Unknown Source)
com.groupdocs.conversion.domain.DocumentBase.load(Unknown Source)
com.groupdocs.conversion.domain.DocumentLoader.a(Unknown Source)
com.groupdocs.conversion.domain.DocumentLoader.load(Unknown Source)
com.groupdocs.conversion.handler.ConversionHandler.convert(Unknown Source)
com.groupdocs.conversion.handler.ConversionHandler.convert(Unknown Source)
pdf-sample.pdf (20.1 KB)
pdf-sample.pdf (20.1 KB)

1 Like

@James.Sung,

This issue is reproduced at our end. Hence, it has been logged in our internal issue tracking system with ID : CONVERSIONJAVA-704. As we have any further update, we’ll notify you.

The issues you have found earlier (filed as CONVERSIONJAVA-704) have been fixed in this update. This message was posted using Bugs notification tool by atirtahir3