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

Free Support Forum - aspose.com

Error converting PDF to EMF files

Hi,

I want to convert a PDF file to EMF files.
But I have an error : encoder parameter cannot be null.

Here is my code :


PdfConverter pdfConverter = new PdfConverter();
pdfConverter.BindPdf(pdfFilePath);
pdfConverter.DoConvert();

int count = 1;

while (pdfConverter.HasNextImage())
{
// Here is where the error occur
pdfConverter.GetNextImage(string.Format(“C:\{1}.emf”, count), ImageFormat.Emf);
count++;
}

pdfConverter.Close();

It works fine with Jpeg and Png image format…

Thanks for your help,

Quentin

Hi Quentin,

I have reproduced this problem at my end and logged it as PDFKITNET-17618 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 17618) have been fixed in this update.


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

PdfConverter pdfConverter = new PdfConverter();
pdfConverter.BindPdf(pdfFilePath);
pdfConverter.DoConvert();

int
count = 1;

while (pdfConverter.HasNextImage())
{
// Here is where the error occur
pdfConverter.GetNextImage(string.Format(“C:\{0}.emf”,
count), ImageFormat.Emf);
count++;
}

pdfConverter.Close();

---------------------------------------------------

Hi,

Using this code and your update, I still have an error.
This time it says that the object is used somewhere else.

I can’t convert PDF to EMF files.

I need your help.

Thanks,

Quentin

Hi Quentin,

Please find attached the hot fix for this issue. I’m sure this is going to resolve your issue. However, if you still find any problem, please share the sample PDF file with us as well.

We’re sorry for the inconvenience.
Regards,