Add a pdf preview on documents

When a document is placed on a node, it is possible to let the node show a preview of the first page of the pdf. The preview will be displayed when nodes are shown as a gallery.

This function is available in version 4.4 and later.

Instructions

Usage is that function must be turned on using below profile.config. Also, on the node which has the document which shall have a preview, mode “InhertitPresentationInfo” must be checked.

The function will create a preview of the first page of the pdf. This preview image will be treated as an image on the document presentation object.

Note that when painting images on nodes, web viewer will first look at the node to see if it has an image and select that image to be shown. If node does not have an image, and mode “InhertitPresentationInfo” is checked, web viewer will look at the presentation (in this case the document) for an image. Now if this function is turned on, the preview will be fetched and displayed.

Version 5.2 and later

Setting for generating document thumbnail is available in Config area of admin page.

Note. If wait time is set to 0, no conversion will be made at all.

Version 5.0 and 5.1

<!-- If node already has a node image, this setting will force the preview to display instead --> <ForceDocumentNodeInheritImageEnabled>true</ForceDocumentNodeInheritImageEnabled>

Version 4.4 and 4.5

Function has two settings in profile.config.

<!-- Turns on preview of pdf --> <DocumentNodeInheritImageEnabled>true</DocumentNodeInheritImageEnabled> <!-- If node already has a node image, this setting will force the preview to display instead --> <ForceDocumentNodeInheritImageEnabled>true</ForceDocumentNodeInheritImageEnabled>