[xep-support] Can't get external graphic to scale to the page body size automatically

From: Jerry Janofsky <JanofskyJ@comcast.net>
Date: Thu Aug 31 2006 - 09:46:29 PDT

RenderX,

I am using "fo:external-graphic" to insert an external pdf page into a page
body. It is possible for the page body to be smaller then the pdf actual
size. Therefore, I want to force the PDF to be scaled to fit the page body.
However, I am unable to do this automatically. I tried several combinations
of properties including scaling="uniform", but it doesn't work. I can only
get the graphic to shrink if I specify the height to be less then 100%, but
I don't want to explicitly have to do this. Below is an example that doesn't
work if the page body is too small.

Am I doing something wrong? You help will be appreciated.

Jerry J

<fo:flow flow-name="xsl-region-body" end-indent="0pt" start-indent="0pt">
 <fo:block>
  <fo:external-graphic scaling-method="auto" scaling="uniform"
src="url(http://localhost/files/mypdf.pdf)"/>
 </fo:block>
</fo:flow>

-------------------
(*) To unsubscribe, send a message with words 'unsubscribe xep-support'
in the body of the message to majordomo@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/terms-of-service.html
Received on Thu Aug 31 09:58:26 2006

This archive was generated by hypermail 2.1.8 : Thu Aug 31 2006 - 09:58:29 PDT