You are here

getContent

public ContentFile getContent(Document document) - Downloads the content for the given document to a local file stored by default inside the application cache folder.

Parameters

Document document
The document for which content will be returned.

Returns

Returns a ContentFile object representing the downloaded content.

Example


    DocumentFolderService docfolderservice = session.getServiceRegistry().getDocumentFolderService();
    ...
    ContentFile cf = docfolderservice.getContent(doc);