trying to use DocumentCache cache with annotations and am struggling a bit with it, so wondered if you perhaps help. The scenario I have in mind:
1. Get document with an HttpWebRequest (from a SharePoint site) and use the DocumentCache.GenerateImages() call to cache the response stream. This works fine and I end up with a PDF in the /temp/s/ folder and files in the cache and processing folders.
2. A separate webpage then try to load the cached document into the annotations viewer. I've tried specifying just the file name of the file in /temp/s/ (annotation viewer doesn't load anything) and the full path (/temp/s/) when calling FilePath() on WidgetFactory (annotation viewer shows error about invalid characters in the path).
So how do I get the annotations viewer to access a previously cached file (that was cached using a stream)?
In an ideal world I'd also like to be able to use different root folders for where I store the cached documents and where the annotations viewer pick them up from. The WidgetFactory.Initialize() method seems to indicate this isn't possible since the samples show it being called in Application_Start(), but have also seen SetRootStoragePath() method in the Viewer documentation that has a 'per request' param. So is there a way to use different locations per request with the annotations viewer? If so - do you have some samples that show how to do this?