diff options
author | Adrian Cumiskey <acumiskey@apache.org> | 2008-10-16 11:02:44 +0000 |
---|---|---|
committer | Adrian Cumiskey <acumiskey@apache.org> | 2008-10-16 11:02:44 +0000 |
commit | 9df39994b1b22bc033b89e564058842c8f73be46 (patch) | |
tree | ef8b7c866a0c5b4d25d0cdeb717524e62b5ce599 /src/documentation/content | |
parent | 5c6a77531f85042510f7ef3755c16d825e073673 (diff) | |
download | xmlgraphics-fop-9df39994b1b22bc033b89e564058842c8f73be46.tar.gz xmlgraphics-fop-9df39994b1b22bc033b89e564058842c8f73be46.zip |
Added an example of using afp:resource-level="inline" with an instream SVG.
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/Temp_AFPGOCAResources@705207 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/documentation/content')
-rw-r--r-- | src/documentation/content/xdocs/trunk/output.xml | 25 |
1 files changed, 20 insertions, 5 deletions
diff --git a/src/documentation/content/xdocs/trunk/output.xml b/src/documentation/content/xdocs/trunk/output.xml index 1aa062a6a..6a7170641 100644 --- a/src/documentation/content/xdocs/trunk/output.xml +++ b/src/documentation/content/xdocs/trunk/output.xml @@ -730,22 +730,37 @@ out = proc.getOutputStream();]]></source> <title>Foreign Attributes</title> <section id="afp-foreign-attributes-resource"> <title>Resource</title> - <p>The resource foreign attributes provides the ability to name and control where data object resources (e.g. images) - will reside in the AFP output. Example:</p> + <p>The resource foreign attributes provides the ability to name and control where data object resources + (e.g. images/scalable vector graphics) will reside in the AFP output. + The afp foreign attributes are only used in conjuntion with <fo:external-graphic/> and <instream-foreign-object/>. + Example:</p> <source><![CDATA[ <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:afp="http://xmlgraphics.apache.org/fop/extensions/afp"> ... - <block> + <fo:block> <fo:external-graphic width="2.0cm" content-width="2.0cm" height="1.8cm" content-height="1.8cm" src="examples/fo/graphics/xml_feather.gif" afp:resource-name="feather" afp:resource-level="external" afp:resource-group-file="resources.afp"/> - </block> + </fo:block> + <fo:block> + <fo:instream-foreign-object height="758.047pt" content-height="758.047pt" width="576.96pt" content-width="576.96pt" + afp:resource-name"circles" afp:resource-level="inline"> + <svg xmlns="http://www.w3.org/2000/svg" width="12cm" height="12cm"> + <g style="fill-opacity:0.7; stroke:black; stroke-width:0.1cm;"> + <circle cx="6cm" cy="2cm" r="100" style="fill:red;" transform="translate(0,50)" /> + <circle cx="6cm" cy="2cm" r="100" style="fill:blue;" transform="translate(70,150)" /> + <circle cx="6cm" cy="2cm" r="100" style="fill:green;" transform="translate(-70,150)"/> + </g> + </svg> + </fo:instream-foreign-object/> + </fo:block> ]]></source> <p>The resource-level attribute where the resource object will reside in the AFP output datastream. The possible values for this are "inline", "print-file" and "external". + When no resource-level attribute is provided, resources are by default placed at "print-file" level. When "external" is used a resource-group-file attribute must also be specified.</p> - <p>The afp foreign attributes are only used in conjuntion with <fo:external-graphic/> and <instream-foreign-object/>.</p> + <p></p> </section> </section> </section> |