Package

ViewHelpers

ViewHelper Documentation

v:media.pdfThumbnail

Converts the provided PDF file into a PNG thumbnail and renders the according image tag using Fluid's standard image ViewHelper thus implementing its arguments. For PDF documents with multiple pages the first page is rendered by default unless specified.

Arguments

additionalAttributes anySimpleType

Additional tag attributes. They will be added directly to the resulting HTML tag.

class string

CSS class(es) for this element

dir string

Text direction for this HTML element. Allowed strings: "ltr" (left to right), "rtl" (right to left)

id string

Unique (in this file) identifier for this HTML element.

lang string

Language for this element. Use short names specified in RFC 1766

style string

Individual CSS styles for this element

title string

Tooltip text of element

accesskey string

Keyboard shortcut to access this element

tabindex integer

Specifies the tab order of this element

onclick string

JavaScript evaluated for the onclick event

alt string

Specifies an alternate text for an image

ismap string

Specifies an image as a server-side image-map. Rarely used. Look at usemap instead

longdesc string

Specifies the URL to a document that contains a long description of an image

usemap string

Specifies an image as a client-side image-map

path string

Path to PDF source file

width integer

Width of resulting thumbnail image. See imgResource.width for possible options

height integer

Height of resulting thumbnail image. See imgResource.width for possible options

minWidth integer

Minimum width of resulting thumbnail image

minHeight integer

Minimum height of resulting thumbnail image

maxWidth integer

Maximum width of resulting thumbnail image

maxHeight integer

Maximum height of resulting thumbnail image

density integer

Canvas resolution for rendering the PDF in dpi (higher means better quality)

background string

Fill background of resulting image with this color (for transparent source files)

rotate integer

Number of degress to rotate resulting image by (caution: very slow if not multiple of 90)

page integer

Optional page number to render as thumbnail for PDF documents with multiple pages

forceOverwrite boolean

Forcibly overwrite existing converted PDF files

ViewHelper Resources

Schema Resources