PDFNetSetViewerCache Method |
Sets the default parameters for the viewer cache. Any subsequently opened documents
will use these paramaters.
Namespace:
pdftron
Assembly:
pdftron (in pdftron.dll) Version: 255.255.255.255
Syntax public static void SetViewerCache(
uint max_cache_size,
bool on_disk
)
Public Shared Sub SetViewerCache (
max_cache_size As UInteger,
on_disk As Boolean
)
public:
static void SetViewerCache(
[InAttribute] unsigned int max_cache_size,
[InAttribute] bool on_disk
)
pdftron.PDFNet.SetViewerCache = function(max_cache_size, on_disk);
Parameters
- max_cache_size
- Type: SystemUInt32
The maximum size, in bytes, of the entire document's page cache. Set to zero to disable the viewer cache.
- on_disk
- Type: SystemBoolean
If set to 'true', cache will be stored on the local filesystem. If set to 'false', cache will be stored in heap memory.
Remarks Default Desktop: max_cache_size = 512 MB, on_disk = true | Default Mobile: max_cache_size = 100 MB, on_disk = false
See Also