axf:background-content-height
(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
content-width, content-height, content-type, and scaling can be applied to background-image, which are the same properties applied to fo:external-graphic.
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"> | |
| ||
| ||
| ||
| <fo:simple-page-master background-image="img/peace.svg" background-position-horizontal="center" background-position-vertical="center" background-repeat="no-repeat" axf:background-content-height="250pt" page-height="150mm" page-width="210mm" margin-top="10mm" margin-left="20mm" margin-right="20mm" margin-bottom="10mm" master-name="PageMaster"> | |
| ||
| ||
| ||
| ||
| ||
| ||
| ||
| ||
| ||
| Antenna House, Inc. | |
| ||
| </fo:block> | |
| ||
| ||
| ||
| ||
| Scaling the background image | |
| </fo:block> | |
| </fo:block> | |
| ||
| By specifying background-image to fo:simple-page-master, you can scale the background image.Use axf:background-content-height and axf:background-content-width for your adjustment. This page is expanded by axf:background-content-height="200pt". | |
| </fo:block> | |
| </fo:flow> | |
| ||
| </fo:root> |
Output:
Tipp der data2type-Redaktion: Zum Thema XSL-FO bieten wir auch folgende Schulungen zur Vertiefung und professionellen Fortbildung an: |