aboutsummaryrefslogtreecommitdiffstats
path: root/examples/fo/basic/images.fo
diff options
context:
space:
mode:
authorJeremias Maerki <jeremias@apache.org>2007-11-18 17:17:24 +0000
committerJeremias Maerki <jeremias@apache.org>2007-11-18 17:17:24 +0000
commit937cba834122dd819150f791ece047a01da97306 (patch)
tree86547500f3f961c92458a51d318390ff5dd2cfa9 /examples/fo/basic/images.fo
parentedc6153b9a6e328c23d32b3ab5a0b493319b0ccb (diff)
downloadxmlgraphics-fop-937cba834122dd819150f791ece047a01da97306.tar.gz
xmlgraphics-fop-937cba834122dd819150f791ece047a01da97306.zip
Added sample as suggested by Kumar Puppala.
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@596100 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'examples/fo/basic/images.fo')
-rw-r--r--examples/fo/basic/images.fo15
1 files changed, 15 insertions, 0 deletions
diff --git a/examples/fo/basic/images.fo b/examples/fo/basic/images.fo
index 9ded34e94..3bb864fd8 100644
--- a/examples/fo/basic/images.fo
+++ b/examples/fo/basic/images.fo
@@ -146,6 +146,21 @@
<fo:block keep-with-next.within-column="always">Properties: width="60mm" content-width="scale-to-fit"</fo:block>
<fo:block><fo:external-graphic src="../graphics/asf-logo-nt.png" width="60mm" content-width="scale-to-fit" border="solid 0.1pt" background-color="yellow"/></fo:block>
+
+ <fo:block break-before="page"/>
+ <fo:block keep-with-next.within-column="always">Properties: width="100%" content-width="scale-to-fit"</fo:block>
+ <fo:block><fo:external-graphic src="../graphics/asf-logo-nt.png" width="100%" content-width="scale-to-fit" border="solid 0.1pt" background-color="yellow"/></fo:block>
+ <fo:block space-before="0.5em">
+ The following example shows how to fit an oversized image into the
+ available width, but not scale smaller images up. This is a work-around
+ until "scale-down-to-fit" is supported. The second feather below is in
+ a block-container with a width of 40mm to simulate an oversized image.
+ </fo:block>
+ <fo:block keep-with-next.within-column="always">Properties: width="100%" content-width="scale-to-fit" content-height="100%"</fo:block>
+ <fo:block><fo:external-graphic src="../graphics/asf-logo-nt.png" width="100%" content-width="scale-to-fit" content-height="100%" border="solid 0.1pt" background-color="yellow"/></fo:block>
+ <fo:block-container width="40mm" background-color="lightgray">
+ <fo:block><fo:external-graphic src="../graphics/asf-logo-nt.png" width="100%" content-width="scale-to-fit" content-height="100%" border="solid 0.1pt" background-color="yellow"/></fo:block>
+ </fo:block-container>
</fo:block>
</fo:flow>