OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.


Help: OASIS Mailing Lists Help | MarkMail Help

docbook-apps message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]

Subject: Re: [docbook-apps] Generating SVG in PDF

I found the issue - I had created the SVG from Adobe Illustrator, which adds a !DOCTYPE DTD declaration - that was not parsed when processed with RenderX XEP.

On 01-11-12 9:44 PM, Dew, Simon wrote:
Hi Dave

Sure, I use external SVG files all the time. The following code works
for me:

<fo:external-graphic src="url('images/external.svg')"
    content-height="1.72cm" content-width="3.92cm"

Note the url('...') wrapper in src, I think xep requires this but fop

This works with fop 1.0 and xep 4.19 demo version.

Simon Dew

Technical Author | Stanley Security Solutions
1 Park Gate Close, Bredbury, Stockport SK6 2SZ, U.K.

Simon.Dew@SBDInc.com | +44 (0) 161 406 3405

Registered Office: Stanley House, Bramble Road, Swindon
Registered in England and Wales No. 181585 VAT No. 232 2446 95

On 01/11/2012 06:07, Xmplar wrote:

Has anyone managed to produce PDFs with SVG files? I can only achieve
this with fo:instream-foreign-object, even though it is apparently
possible to use fo:external-graphicto refer to an external SVG (see “SVG
Essentials”, O’Reilly). Using fo:external-graphic (or even
background-image in fo:block) just gives me a little box with red cross
and the SVG is not generated.

I’m using XEP 4.21, Saxon 6.5.5.

The markup that works is:

border-top="1pt solid #ff0000"border-bottom="1pt solid #ff0000"
border-left="0pt none #000000"border-right="0pt none
width="193.26px"height="163.26px"viewBox="0 0 193.26
163.26"enable-background="new 0 0 193.26
</svg></fo:instream-foreign-object><fo:block ….

*Dave Gardiner*
To unsubscribe, e-mail: docbook-apps-unsubscribe@lists.oasis-open.org
For additional commands, e-mail: docbook-apps-help@lists.oasis-open.org

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]