[xep-support] Image fitting

Dovid Zalkin dovid at tech-tav.com
Tue May 30 03:16:29 PDT 2006


Hi Volodymyr. Thanx for the suggestion. The problem I found with making the image a background, is that only the parts of the image where there was text on the page showed up. In other words, if only half of the page had text, then only half of the image displayed. Is there any way around that?
Thanx,
David

  ----- Original Message ----- 
  From: Volodymyr Mykhailyk 
  To: xep-support at renderx.com 
  Sent: Monday, May 29, 2006 12:40 PM
  Subject: Re: [xep-support] Image fitting


  Hi David,
  it is probably caused with margins in layout masters. To insert graphic to fill the page (for example in front-matter, or opener page of chapter), we are usually inserting it from layout masters.
  If you have some margin's in layout masters replace them with paddings, set margin to 0, and place your image as page background.
  here is example:
      <fo:simple-page-master
          master-name="Chapter-first-page"
          page-width="7in"
          page-height="9in">
          <fo:region-body
              margin="0"
              background-image="url(path_to_image)"
              background-repeat="no-repeat"
              padding-left=".9in"
              padding-right="2.5in"
              padding-top=".8in"
              padding-bottom="1.25in"/>
          <fo:region-before extent=".75in"
              display-align="before"
              region-name="first-header"/>
          <fo:region-after extent=".8in"
              padding-left="1in"
              padding-right=".4in"
              padding-bottom=".8in"
              display-align="after"
              region-name="first-footer"/>
      </fo:simple-page-master>
  If you want this image appear only from one side of page just create image (transparent or white) of page size and place your side image in it. 
  --BS
  Dovid Zalkin wrote: 
    Hi. I have an image I am using as a sidebar at the beginning of each chapter of my document. I have a small problem: If I resize the graphic to be exactly the size of the page, it doesn't show up at all in the PDF. However, if it is small enough to appear, it doesn't fill up the whole height of the page; there is a small amount of whitespace at the top and bottom of the image in the PDF. My client wants the image to fill up the page completely. Any suggestions will be welcome.
    Thank you,

    David Zalkin
    Technology Consultant
    Tech-Tav Documentation Ltd.
    +972 (0)57 313 8506

  ------------------- (*) 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 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.renderx.com/pipermail/xep-support/attachments/20060530/18067782/attachment.html>


More information about the Xep-support mailing list