W3C home > Mailing lists > Public > www-xsl-fo@w3.org > September 2001

Problem with position of external-graphic

From: Scott Moore <Scott.Moore@netDecide.com>
Date: Fri, 7 Sep 2001 10:28:16 -0400
Message-ID: <05BDA8D924CBD411832200508BACF7646CA21C@NDEXCH1>
To: "'www-xsl-fo@w3.org'" <www-xsl-fo@w3.org>
I'm using FOP 0.20.1 and I have a graphic that I'm placing on the title page
of my PDF file.  But, I'm having a couple of problems getting it the right
size and to be right justified.  Here's an approximation of how I want the
page to look:

|                           |
|                   Title   |
|                           |
|               *********   |
|               *       *   |
|               * Image *   |
|               *       *   |
|               *********   |
|                           |

First, the image is shrunk to about half it's normal size.  I've tried
setting content-height and content-width to various values, but nothing
works.  Plus, no matter what I try, the image is always left justified.
Even placing padding-left on the block element doesn't work.  Below is the
actual fo file.  Any help would be greatly appreciated!


<?xml version="1.0" encoding="iso-8859-1"?>
<fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format">
    <fo:simple-page-master master-name="first-page" font-family="Times">
      <fo:region-body margin-bottom="1in" margin-left="1in"
margin-right="1in" margin-top="1.5in"/>

  <fo:page-sequence master-name="first-page">
    <fo:flow flow-name="xsl-region-body">
      <fo:block font-size="20pt" color="white" background-color="black"
text-align="end" font-weight="bold">
        Company Name
      <fo:block padding-top=".2in" text-align="end" color="purple"
      <fo:block text-align="end" padding-top="1.5in">
        <fo:external-graphic src="testimage.jpg" content-height="auto"
Received on Friday, 7 September 2001 10:32:41 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 20:58:25 UTC