Technologies XML / XSL-FO / Référence / Extensions XSL d’Antenna House Formatter / Propriétés / annotation-type
(Extrait de « XSL-FO ― Die Referenz » de 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
Catégorie Annotations dans la sortie PDF
Définit le type de l’annotation. [no-LT]
Valeur : | <string> |
Valeur initiale : | chaîne vide |
S’applique à : | tous les objets de mise en forme de niveau bloc ou en ligne |
Hérité : | no |
Pourcentages : | N/A |
N’importe lequel des types d’annotation suivants peut être spécifié.
Chaîne vide
Aucune annotation.
"Text"
Annotation de texte.
"FreeText"
Annotation de texte libre.
"Stamp"
Annotation de type tampon.
"FileAttachment"
Annotation de pièce jointe.
Les chaînes ne sont pas sensibles à la casse.
Cette propriété n’est pas disponible dans AH Formatter V6.3 Lite.
Exemple XSL-FO :
<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">
<axf:document-info name="document-title" value="Sample PDF to be embedded"/>
<axf:document-info name="author" value="Antenna House, Inc."/>
<fo:layout-master-set>
<fo:simple-page-master page-height="297mm" page-width="210mm" margin-top="10mm" margin-left="20mm" margin-right="20mm" margin-bottom="10mm" master-name="PageMaster1">
<fo:region-after extent="7mm"/>
<fo:region-body margin-top="0mm" margin-left="0mm" margin-right="0mm" margin-bottom="10mm"/>
</fo:simple-page-master>
</fo:layout-master-set>
<fo:page-sequence master-reference="PageMaster1">
<fo:static-content flow-name="xsl-region-after">
<fo:block font-size="0.8em" text-align="right" color="green">
<fo:basic-link external-destination="http://www.antennahouse.com/">
Antenna House, Inc.
</fo:basic-link>
</fo:block>
</fo:static-content>
<fo:flow flow-name="xsl-region-body" font-family="serif" font-size="1em" line-height="1.4" axf:hyphenate-hyphenated-word="false" hyphenate="true">
<fo:block span="all" font-family="sans-serif" font-size="2em" font-weight="bold" line-height="2" space-before="1em" space-after="1em" space-before.conditionality="retain" space-after.conditionality="retain" background-color="#EEEEEE">
<fo:block start-indent="1em" end-indent="1em">
Sample PDF to be embedded
</fo:block>
</fo:block>
<fo:block space-before="1em" font-family="sans-serif" font-size="1.2em" font-weight="bold" text-indent="0em" line-height="2" keep-with-next.within-column="always">
Annotation(axf:annotation)
</fo:block>
<fo:block>
axf:annotation-type="Text"
</fo:block>
<fo:block height="30pt" space-after="11em" axf:annotation-type="Text" axf:annotation-title="Annotation" axf:annotation-author="Antenna House" axf:annotation-contents="Sample" axf:annotation-color="lightgrey" axf:annotation-open="true" axf:annotation-position-horizontal="0pt" axf:annotation-position-vertical="0pt" axf:annotation-width="150pt" axf:annotation-height="70pt"/>
<fo:block>
axf:annotation-type="FreeText"
</fo:block>
<fo:block height="30pt" space-after="6em" axf:annotation-type="FreeText" axf:annotation-title="Annotation" axf:annotation-author="Antenna House" axf:annotation-contents="Sample" axf:annotation-color="lightgrey" axf:annotation-open="true" axf:annotation-position-horizontal="0pt" axf:annotation-position-vertical="0pt" axf:annotation-width="150pt" axf:annotation-height="40pt" axf:annotation-text-color="midnightblue" axf:annotation-font-family="Times" axf:annotation-font-size="2em"/>
<fo:block>
axf:annotation-type="Stamp"
</fo:block>
<fo:block height="30pt" space-after="7em" axf:annotation-type="Stamp" axf:annotation-title="Annotation" axf:annotation-author="Antenna House" axf:annotation-contents="Sample" axf:annotation-color="lightgrey" axf:annotation-position-horizontal="0pt" axf:annotation-position-vertical="0pt" axf:annotation-width="100pt" axf:annotation-height="40pt" axf:annotation-icon-name="Draft"/>
<fo:block space-before="1em" font-family="sans-serif" font-size="1.2em" font-weight="bold" text-indent="0em" line-height="2" keep-with-next.within-column="always">
Link(fo:basic-link、external-destination)
</fo:block>
<fo:block space-after="2em">
Please access to Antenna House homepage from
<fo:basic-link external-destination="http://www.antennahouse.com/">
<fo:inline font-size="1.5em" font-weight="bold" text-decoration="underline">
here
</fo:inline>
</fo:basic-link>
</fo:block>
<fo:block space-before="1em" font-family="sans-serif" font-size="1.2em" font-weight="bold" text-indent="0em" line-height="2" keep-with-next.within-column="always">
Multimedia
</fo:block>
<fo:block>
<fo:external-graphic src="img/Wildlife.mpg" content-type="video/mpeg" axf:show-controls="true" axf:media-volume="10%" axf:media-play-mode="2" axf:poster-image="img/Wildlife_0001.jpg" width="180pt" height="100pt"/>
</fo:block>
</fo:flow>
</fo:page-sequence>
</fo:root>Résultat :