axf:poster-image

(Auszug aus "XSL-FO ― Die Referenz" von Manuel Montero Pineda & Steffen Herkert, 2016, dpunkt.verlag)

A | B | C | D | E | F | G | H | I | J | K | L | M | N | O | P | Q | R | S | T | U | V | W | X | Y | Z

Category Images, Multimedia

Specifies the poster image for embedded multimedia. [no-LT]

Value:<uri-specification> | none | auto
Initial:auto
Applies to:fo:external-graphic / multimedia objects
Inherited:no
Percentages:N/A

Values have the following meanings.

<uri-specification>Specifies the URL of the poster image. Multimedia, such as video or audio, cannot be specified.
noneSpecifies no poster images.
autoUses the plain fallback image for the poster image.

This property is not available with AH Formatter V6.3 Lite.

See also Multimedia.

XSL-FO sample:

<fo:root xml:lang="en" xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:cpfo="http://www.compart.net/xmlns/cpfo" xmlns:svg="http://www.w3.org/2000/svg" xmlns:axf="http://www.antennahouse.com/names/XSL/Extensions">

Antenna House, Inc.

Example of embedding multi media in PDF

Multimedia data such as audio, video can be embedded in PDF. You can specify it as <fo:external-graphic src="video.mpg" content-type="video/mpeg">. A poster picture can be specified to axf:poster-image. You can show the player control bar by axf:show-controls, the volume of the sound by axf:media-volume and the number of times to play the multimedia by axf:media-play-mode. Embedding of multi media data is available only with PDF1.5 or later.

Without the setting of axf:poster-image

With the setting of axf:poster-image

axf:show-controls="true", axf:media-volume="10%", axf:media-play-mode="2"

The control bar is shown in the lower side of the multimedia under playing. An enough space is required under the multimedia element. Whether the setting of axf:show-control, axf:media-volume, axf:media-play-mode may become effective or not depends on multimedia data, a viewer and a player.

Download der Beispiele

Output:

Tipp der data2type-Redaktion:
Zum Thema XSL-FO bieten wir auch folgende Schulungen zur Vertiefung und professionellen Fortbildung an: