You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-commits@xmlgraphics.apache.org by je...@apache.org on 2007/11/18 18:17:26 UTC

svn commit: r596100 - /xmlgraphics/fop/trunk/examples/fo/basic/images.fo

Author: jeremias
Date: Sun Nov 18 09:17:24 2007
New Revision: 596100

URL: http://svn.apache.org/viewvc?rev=596100&view=rev
Log:
Added sample as suggested by Kumar Puppala.

Modified:
    xmlgraphics/fop/trunk/examples/fo/basic/images.fo

Modified: xmlgraphics/fop/trunk/examples/fo/basic/images.fo
URL: http://svn.apache.org/viewvc/xmlgraphics/fop/trunk/examples/fo/basic/images.fo?rev=596100&r1=596099&r2=596100&view=diff
==============================================================================
--- xmlgraphics/fop/trunk/examples/fo/basic/images.fo (original)
+++ xmlgraphics/fop/trunk/examples/fo/basic/images.fo Sun Nov 18 09:17:24 2007
@@ -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>
 



---------------------------------------------------------------------
To unsubscribe, e-mail: fop-commits-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-commits-help@xmlgraphics.apache.org