We have implemented the ICacheDataHandler and IInputDataHandler to store our cached document HTML in S3. When we call ViewerHtmlHelper.GetDocumentHtml() to get the document info (on the initial cache generation and later to render the pages) we use the overload that takes a stream.
We are storing the cache state of each file in our own database, so I’d like to avoid having to re-read the source document stream just to get the number of pages. We could read the fd.xml file directly, but would prefer to use your API for this purpose.
Is there a way I can get the cached results from GetDocumentInfo() without it having to parse the source file again? I know from implementing the ICacheDataHandler that it eventually uses ICacheDataHandler.Exists() to find out if it already has fd.xml for the doc - but it overwrites it again later - suggesting that when a document is cached, GetDocumentInfo() repeats some of the work.
If I know it’s cached already, can I pass just the file information into one of the other GetDocumentInfo() overloads? I’m thinking that I need to use this overload:
public DocumentInfoContainer GetDocumentInfo(
Your assistance will be greatly appreciated.