Free Support Forum - aspose.com

Error "Can not get AFM file" when converting PDF to Images

Hi aspose team,

whe i try

PdfConverter converter = new PdfConverter();
converter.bindPdf(new FileInputStream(“D:/2011-0539-2_Anfrage.pdf”));
converter.doConvert();

i get the following error about 1.000 times.

java.io.IOException: Can not get AFM file
at com.aspose.pdf.kit.np.ai(Unknown Source)
at com.aspose.pdf.kit.hy.drawString(Unknown Source)
at com.aspose.pdf.kit.b9.a(Unknown Source)
at com.aspose.pdf.kit.n4.a(Unknown Source)
at com.aspose.pdf.kit.c5.a(Unknown Source)
at com.aspose.pdf.kit.n4.a(Unknown Source)
at com.aspose.pdf.kit.n4.a(Unknown Source)
at com.aspose.pdf.kit.b9.a(Unknown Source)
at com.aspose.pdf.kit.n4.if(Unknown Source)
at com.aspose.pdf.kit.n4.a(Unknown Source)
at com.aspose.pdf.kit.b9.a(Unknown Source)
at com.aspose.pdf.kit.sw.fB(Unknown Source)
at com.aspose.pdf.kit.PdfConverter.doConvert(Unknown Source)

Any Help would be welcome.

Hi Golo,

First off, please make sure that you’re using the latest version of the Aspose.Pdf.Kit for Java at your end. If it still doesn’t resolve your issue then please share the input PDF file with us, so we could investigate the issue at our end. You’ll be updated with the results accordingly.

We’re sorry for the inconvenience.
Regards,

Hi,

i’m using PDF.Kit 3.9.0. So it should be up to date. I attached a sample PDF where the exception comes up.

Hi Golo,

Thank you very much for sharing the sample file with us. I have reproduced the same problem at my end and logged it as PDFKITJAVA-29963 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,