Using the sample of GhostScriptViewer i've noticed that there are some paths that make GhostScriptViewer throw a FormatException (because it's trying to cast a string as a page number, whereas the page number is the folllowing message : Unrecoverable erro : stackunderflow[...]
It' happen when using a path like :
C:\échanges\COMMDIS\PROD\Affaires\CPEN\CPEN140002 - EDF CIPN - PSPR\10 Suivi\40 Ecarts contract\Développements .NET\...
Yes I know, a lot of unexpected caracter...
Comments: ** Comment from web user: flipnode **
It' happen when using a path like :
C:\échanges\COMMDIS\PROD\Affaires\CPEN\CPEN140002 - EDF CIPN - PSPR\10 Suivi\40 Ecarts contract\Développements .NET\...
Yes I know, a lot of unexpected caracter...
Comments: ** Comment from web user: flipnode **
I do this before passing file path.
// just incase the fileName contains any diacritics
filePath = System.Text.Encoding.Default.GetString(System.Text.Encoding.UTF8.GetBytes(filePath));