Normally you would not need to call this method directly because calling only PreCacheDocument(FileProvider, DocumentCacheOptions) method handles the conversion chain: Source -> PDF -> XPZ.
public FileCacheItem GetOrAddPdf(
DocumentCacheInfo cacheInfo,
string attachmentPath = null
)
Public Function GetOrAddPdf (
cacheInfo As DocumentCacheInfo,
Optional attachmentPath As String = Nothing
) As FileCacheItem
The attachment name can be specified as the file name e.g. "File.docx" or the internal key (unique fileSpec key in PDF) for the attachment e.g "<2>File.docx". Nested attachments can be accessed with "|" separator e.g. "FirstLevel.msg|SecondLevel.docx" or "<0>FirstLevel.msg|<2>SecondLevel.docx"
Not common but attachment name in a PDF, can also have folder information e.g. "Subfolder/File.docx". Internal id for the attachment will not have direct folder information but for example "<2>" in <2>File.docx" specifies PDF internal folder id.