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

Re: Getting from SVGs to PDF

Subject: Re: Getting from SVGs to PDF
From: "Bob Portnell" <simply.bobp@xxxxxxxxx>
Date: Thu, 7 Sep 2006 12:05:06 -0700
fop fo instream foreign object
We're using FOP ... neither SVG specific content/file reference will
output from the blocks below using the commandline call >fop
[filename].fo > [filename].pdf, but it outputs everything else.

This is the one we'd like to use...
<fo:block>
	<fo:external-graphic xmlns:svg="http://www.w3.org/2000/svg"
src="http://alph43/stepper/chunk/org_chart/org_chart.svg"/>
</fo:block>

We've tried testing this, but it didn't improve matters.
<fo:instream-foreign-object>
	<svg xmlns="http://www.w3.org/2000/svg" width="100%" height="100%">
	<circle fill="yellow" stroke="black" cx="62" cy="135" r="20"/>
	</svg>
</fo:instream-foreign-object>

Thoughts? Comments?

Bob P
simply.bobp@xxxxxxxxx

On 9/7/06, Huditsch, Roman (LNG-VIE) <Roman.Huditsch@xxxxxxxxxxxxx> wrote:
Hi Bob,

What have you tried exactly?
We are using <fo:block> sections like

<fo:block>
        <fo:instream-foreign-object>
                <svg:svg xmlns:svg="http://www.w3.org/2000/svg" width="22mm"
height="16mm">
<svg:rect width="22mm" height="16mm" x="0px" y="0px"
fill="black"/>
<svg:text y="22px" x="5px" font-family="AGaramond"
font-weight="bold" font-size="15pt" fill="white"
font-stretch="condensed">ABGB</svg:text>
                </svg:svg>
        </fo:instream-foreign-object>
</fo:block>

in our FO files, which are the rendered via XEP.
And it works perfectly...

best regards,
Roman

> -----Original Message-----
> From: Bob Portnell [mailto:simply.bobp@xxxxxxxxx]
> Sent: Wednesday, September 06, 2006 2:12 AM
> To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> Subject: Re:  Getting from SVGs to PDF
>
> We've been trying, but haven't had proper successes yet. :-(
>
> Bob P
> simply.bobp@xxxxxxxxx
>
> On 9/3/06, Huditsch, Roman (LNG-VIE)
> <Roman.Huditsch@xxxxxxxxxxxxx> wrote:
> > Hi Bob,
> >
> > Have you though about writing a skeleton XSL-FO file where you can
> > include your SVG over <fo:foreign-object>. Then just pass
> it through
> > XEP, FOP or whatever and there you are.
> >
> > Hope this helps.
> >
> > best regards,
> > Roman
> >
> > > -----Urspr|ngliche Nachricht-----
> > > Von: Bob Portnell [mailto:simply.bobp@xxxxxxxxx]
> > > Gesendet: Donnerstag, 31. August 2006 21:01
> > > An: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> > > Betreff:  Getting from SVGs to PDF
> > >
> > > (This may be borderline off-topic. If so, please reply
> directly to
> > > my e-mail, and Tommie is allowed to slap me down.)
> > >
> > > My problem with attribute matching earlier this month was
> related to
> > > pulling text info from one XML file into an SVG file as it is
> > > transformed into another SVG file. So far so good. It all
> displays
> > > very nicely, but we're having a dickens of a time getting
> it changed
> > > into a sharp resolution PDF. We 'draw' our SVGs in text,
> so we don't
> > > have the boon of PDF-export from Adobe Illustrator or GIMP.
> > >
> > > Advice, pointers, links (and warranted slaps) welcome.
> > >
> > > Bob P
> > > simply.bobp@xxxxxxxxx

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.