Free Support Forum -

.NET Loading a URL that contains ~



When loading a URL to the viewer that contains a “~”

i.e. -

the file name that gets saved in the temp directory is:


This cause the issue of loading the same file from the cache.

Is it possible to add a new parameter to the .URL call?


viewer.URL (,)

You can use the URL above for testing.




Hello Antonio,

We are sorry to hear that you have such issue.

The best choice in your situation is not to use Url method at all. The best way is to use Stream method - it has additional parameters, where you can specify your own filename along with caching policy. Here is a example:
/Instead of/
/use something like this/
.Stream(HttpWebRequest.Create(“”).GetResponse().GetResponseStream(), “Faktura.pdf”, “pdf”, “Faktura.pdf”, false)

The last Boolean parameter “tells” the GroupDocs.Viewer not to use public cached stream contents if possible.

If you will have more questions please feel free to contact us.


Thanks. It works great like that :slight_smile: