cachedIn
suspend fun <T : PdfDocument> PdfDocumentFactory<T>.cachedIn(holder: PublicationServicesHolder): PdfDocumentFactory<T>
Creates a new factory which caches the results of the wrapped factory into a PublicationServicesHolder.
This will ensure that the PDF documents are only cached as long as the Publication object is around.