[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

XSL-FO: How to Control Rendered Size of InStream SVG?

Subject: XSL-FO: How to Control Rendered Size of InStream SVG?
From: "Eliot Kimber ekimber@xxxxxxxxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx>
Date: Sat, 26 Jul 2014 20:38:20 -0000
 XSL-FO: How to Control Rendered Size of InStream SVG?
I'm trying to use a simple SVG drawing in an FO document and I'm not
seeing how to control the rendered size. I know it is some interaction
between settings in the FO data and values in the SVG but my initial Web
search did not lead me to any answers.

I'm using FOP for this exercise.

Here is my FO markup, within a static-content region that is 7in wide:

<fo:block>
<fo:instream-foreign-object width="100%" height="9pt">

          <svg version="1.1" id="Layer_1"
xmlns="http://www.w3.org/2000/svg"
xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
	 viewBox="0 0 612 792" enable-background="new 0 0 612 792"
xml:space="preserve">
<rect x="53.9" y="27" fill="#9A9A9A" width="504.1" height="9"/>
</svg>
        </fo:instream-foreign-object>
</fo:block>


This produces a simple shaded rectangle, but the rendered size on the page
is tiny,

I created the SVG by editing in Illustrator a PDF that had the box I
wanted then saving the Illustrator file as SVG. The SVG markup is exactly
what Illustrator produced.

Any guidance on what I need to adjust to control the size of the rendered
SVG to my desires?

Thanks,

Eliot
bbbbb
Eliot Kimber, Owner
Contrext, LLC
http://contrext.com

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.