Embedded and External Multimedia Data

On <video>, '-ah-multimedia-treatment' allows you to specify whether to embed multimedia data in PDF output or to reference it. For example: <video src="video.mpg" type="video/mpeg" class="multimedia-object multimedia-base"></video>. A poster picture can be specified using the standard HTML5 \`poster\` attribute. To apply '-ah-multimedia-treatment', specify as follows: 'auto' (use the multimedia-treatment value in the Option Setting File); 'embed' (embed multimedia in the PDF); 'absolute-link' (refer to multimedia using an absolute path); 'relative-link' (refer to multimedia using a relative path); 'richmedia' (embed as a Rich Media annotation); 'richmedia-windowed' (embed as a Rich Media annotation but display in a separate window when playing). For more details see also "-ah-multimedia-treatment" in the Manual. '-ah-multimedia-treatment' is available in AH Formatter V6.3 and later. Handling multimedia files is valid only with PDF1.5 or higher. 'richmedia' and 'richmedia-windowed' require both PDF1.7 or higher and AH Formatter V6.5 or later.

In this sample, multimedia is referenced by a relative path by specifying -ah-multimedia-treatment="relative-link". If you embed multimedia by specifying -ah-multimedia-treatment="embed", the size of the PDF will increase according to the size of the multimedia.

Without '-ah-poster-image'

With '-ah-poster-image'

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

Whether or not the '-ah-show-controls', '-ah-media-volume', and '-ah-media-play-mode' settings are valid depends on the multimedia data, the viewer and the player.