-
public final class PdfDocumentKt
-
-
Method Summary
Modifier and Type Method Description final static <T extends PdfDocument> PdfDocumentFactory<T>cachedIn(PdfDocumentFactory<T> $self, PublicationServicesHolder holder)Creates a new factory which caches the results of the wrapped factory into a PublicationServicesHolder. final static List<Link>toLinks(List<PdfDocument.OutlineNode> $self, Url documentHref)Converts a PDF outline to Link objects. final static LinktoLink(PdfDocument.OutlineNode $self, Url documentHref)-
-
Method Detail
-
cachedIn
final static <T extends PdfDocument> PdfDocumentFactory<T> cachedIn(PdfDocumentFactory<T> $self, PublicationServicesHolder holder)
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.
-
toLinks
final static List<Link> toLinks(List<PdfDocument.OutlineNode> $self, Url documentHref)
Converts a PDF outline to Link objects.
- Parameters:
documentHref- HREF of the PDF document in the Publication to which the links are relative to.
-
toLink
final static Link toLink(PdfDocument.OutlineNode $self, Url documentHref)
-
-
-
-