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

RE: insert an image into a pdf

Subject: RE: insert an image into a pdf
From: <Jarno.Elovirta@xxxxxxxxx>
Date: Tue, 29 Nov 2005 13:06:32 +0200
insert picture into pdf
Hi,

>I run an xsl stylesheet to make a pdf which contains the expression:
><fo:external-graphic src='{$logo}' ...
>
>I use this expression because I want to insert an icon.
>
>It works fine when $logo=file:c:/icons/logo.jpg, but I would

See XSL spec, src attribute value space is a uri-specification, so you want

  <fo:external-graphic src='url("{$logo}")' ...

>like to read this image from a jar file and in this case I
>have not found the good syntax.
>I have tried $logo=file:archive.jar/icons/logog.jpg but still
>unsuccessful.
>
>Is it possible to do it by this way ?

Check the documentation of your XSL engine and if they support reading files
from JAR files.

Jarno

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.