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

Jerry Janofsky JanofskyJ at comcast.net
Thu Aug 31 09:46:29 PDT 2006


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 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/terms-of-service.html



More information about the Xep-support mailing list