DocumentCacheGetOrAddXpz Method

Gets or adds the XPZ cache file. This method handles the second step of the conversion: PDF -> XPZ.

Normally you would not need to call this method directly because calling only PreCacheDocument(FileProvider, DocumentCacheOptions) method handles the conversion chain: Source -> PDF -> XPZ.

Definition

Namespace: GleamTech.DocumentUltimate.Caching
Assembly: GleamTech.DocumentUltimate (in GleamTech.DocumentUltimate.dll) Version: 6.9.8
C#
public FileCacheItem GetOrAddXpz(
	DocumentCacheInfo cacheInfo,
	string attachment = null
)

Parameters

cacheInfo  DocumentCacheInfo
The cache info for a document.
attachment  String  (Optional)
The name of the attachment inside PDF Portfolio file to extract and generate XPZ for.

The attachment name in a PDF Portfolio file, can have folder information e.g. "Subfolder/File.docx". Also nested attachments can be accessed with "|" separator e.g. "FirstLevel.msg|SecondLevel.docx".

Return Value

FileCacheItem
A FileCacheItem instance for the cached XPZ file, this object contains information like cache key.

See Also