Click or drag to resize

PdfViewerDocuments Class

The PDF documents the web viewer serves from memory. The viewer controls add the documents given as bytes themselves; use this class to show such a document in a viewer you build yourself, or to get its address.
Inheritance Hierarchy
SystemObject
  PdfViewer4AspNetPdfViewerDocuments

Namespace: PdfViewer4AspNet
Assembly: PdfViewerAspNet (in PdfViewerAspNet.dll) Version: 10.0
Syntax
public static class PdfViewerDocuments

The PdfViewerDocuments type exposes the following members.

Properties
 NameDescription
Public propertyStatic memberSlidingExpiration How long a document is kept after it was last requested. The default value is 30 minutes.
Top
Methods
 NameDescription
Public methodStatic memberAdd Adds a document and returns its token. The document is served at "{viewer path}/document/{token}".
Public methodStatic memberRemove Removes a document before it expires.
Top
Remarks
A document is kept for SlidingExpiration after it was last requested (30 minutes by default). The documents are kept in the memory of the web server process: in a web farm, route the requests of a user to the same server, or display documents from an address (PdfSourceURL / src) instead.
See Also