Hi,
When loading a URL to the viewer that contains a “~”
i.e. - https://www.infoportal4.com/demoserver/docs/~D14716
the file name that gets saved in the temp directory is:
https___www.infoportal4.PDF
This cause the issue of loading the same file from the cache.
Is it possible to add a new parameter to the .URL call?
i.e.
viewer.URL (,)
You can use the URL above for testing.
Thanks.
Antonio
Hello Antonio,
We are sorry to hear that you have such issue.
/Instead of/
.Url("
https://www.infoportal4.com/demoserver/docs/~D14716
")/use something like this/
.Stream(HttpWebRequest.Create("
https://www.infoportal4.com/demoserver/docs/~D14716
").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