Quantcast
Channel: Ghostscript.NET
Viewing all articles
Browse latest Browse all 393

Closed Unassigned: SystemFormatException if PDF Filename contains diacritics [2129]

$
0
0
If the PDF file name contains diacritics e.g."Verträge.pdf" a format exception "Input string was not in a correct format." is thrown:
at System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal)
at System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info)
at Ghostscript.NET.Viewer.GhostscriptViewerPdfFormatHandler.StdOutput(String message)
at Ghostscript.NET.Viewer.GhostscriptViewerStdIOHandler.StdOut(String output)
at Ghostscript.NET.GhostscriptStdIO.gs_std_out(IntPtr handle, IntPtr pointer, Int32 count)
at Ghostscript.NET.Interpreter.GhostscriptInterpreter.Run(String str)
at Ghostscript.NET.Viewer.GhostscriptViewerFormatHandler.Execute(String str)
at Ghostscript.NET.Viewer.GhostscriptViewerPdfFormatHandler.Open(String filePath)
at Ghostscript.NET.Viewer.GhostscriptViewer.Open()
at Ghostscript.NET.Viewer.GhostscriptViewer.Open(String path, GhostscriptVersionInfo versionInfo, Boolean dllFromMemory)

I checked various diacritics like ćšäö and the exception is always thrown.
As a workaround the Open(MemoryStream stream, GhostscriptVersionInfo versionInfo, bool dllFromMemory) overload works like a charm
Comments: Fixed in current release (v.1.1.5)

Viewing all articles
Browse latest Browse all 393

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>