[xep-support] making an image an external link

Russ Burdick rburdick at che.umn.edu
Wed Jul 23 12:33:08 PDT 2003


On Fri, Jul 18, 2003 at 02:49:58PM +0400, Alexander Peshkov wrote:
> 
> The only workaround I can think of is to manually set height of
> fo:basic-link to be equal that of the image. Since inline height
> governed by text-altitude/text-depth properties you should use
> something like this:
> 
>     <fo:basic-link external-destination="url(http://www.foo.com)"
>                    text-altitude="150px"
>                    text-depth="0px">
>        <fo:external-graphic src="url(foo.jpg)" height="150px"/>
>     </fo:basic-link>
> 
> Hope this helps.
> 

that works great, thanks.

however, what happens if i do not know teh height/width of the image or 
i'm scaling the image during inclusion in the PDF? what i have is 
something like this:

	<fo:basic-link external-destination="url(http://www.foo.com)">
	   <fo:external-graphic src="url(foo.png)"
	                        width="100%"
	                        content-width="scale-to-fit"
	                        scaling="uniform"/>
	</fo:basic-link>

in this case even if i know that foo.png is 600px x 100px, it is scaled 
to fit the page. is there any way to extract the scaled value?

i'm not opposed to resizing these images to be the "right" size as i'm 
only using this on a title page and i know what images will be included, 
so i dont really need to make this work for all cases. i just wondered 
if it's possible. thanks again for your suggestion.

Russ Burdick
Internet Systems Designer and Administrator, VAWOR
rburdick at che.umn.edu
(612)624-8796
University of Minnesota
School of Social Work
MINCAVA
105 Peters Hall
1404 Gortner Ave
St. Paul, MN 55108

-------------------
(*) To unsubscribe, send a message with words 'unsubscribe xep-support'
in the body of the message to majordomo at renderx.com from the address
you are subscribed from.
(*) By using the Service, you expressly agree to these Terms of Service http://www.renderx.com/tos.html



More information about the Xep-support mailing list