Free Support Forum - aspose.com

Bug with french culture

Hi,

When trying to use the OpenPdfFile method on the PdfViewer object an exception (System.FormatException) is thrown. This only happens when CurrentCulture is set to french. I don’t reproduce this bug with english culture on.

Is there any workaround or hotfix available for this problem because I really need to use french culture within my application.

Regards

Louis

Hi Louis,

Thank you for considering Aspose.

Can you please share the PDF you're having problem with? Also, please share the code snippet you're using. Kindly mention the Aspose.Pdf.Kit version you're using.

We're sorry for the inconvenience.

Regards,

Code :

Aspose.Pdf.Kit.PdfViewer viewer = new Aspose.Pdf.Kit.PdfViewer();

viewer.AutoResize = true;

viewer.Resolution = 50;

viewer.OpenPdfFile(pdfStream);

Bitmap b = viewer.DecodePage(0);

Size s = new Size();

PDF file is attached

Regards,

Louis

Hi Louis,

I have reproduced the issue at my end and logged as PDFKITNET-9451 in our issue tracking system. Our development team will be looking into the matter and you'll be updated via this forum as the issue is resolved.

We're sorry for the inconvenience.

Regards,

Hi Louis,

This issue is resolved in our latest version. Can you please download the latest version and try it at your end?

If you still find any issue or have some more questions, please do let us know.
Regards,