Hi,
you can draw a solid rectangle on many ways:

empty b-c:
<fo:block-container width="6in" height="0.7in" background-color="#ddd">
    <fo:block/>
</fo:block-container>

resized e-g:
<fo:block-container>
  <fo:block font-size="0">
    <fo:external-graphic src="url('java/images/FI_Graybar.jpg')"
        width="6in" height="0.7in"
        content-width="scale-to-fit"
        content-height="scale-to-fit"
        scaling="non-uniform"/>
  </fo:block>
</fo:block-container>

using svg:
<fo:block-container>
  <fo:block font-size="0">
    <fo:instream-foreign-object>
    <svg xmlns="http://www.w3.org/2000/svg";
        width="6in" height="0.7in" viewBox="0 0 1 1">
      <rect fill="#ddd" x="0" y="0" width="1" height="1"/>
    </svg>
  </fo:instream-foreign-object>
  </fo:block>
</fo:block-container>

HTH,
Pascal

Le 15/06/2010 21:06, Steffanina, Jeff a écrit :
>
> I have a form which contains several .jpg files.  They all print
> fine.  However, near the bottom of the form,  I need to print a
> light-gray bar from left to right prior to the footer.  I tried to do
> it by coloring a line with a height of one inch.  When that did not
> work, I added the "external-graphic".  The graphic works BUT I cannot
> get the image to be the proper width and height.
>
> Any ideas?
>
>    <fo:block-container position="absolute" top="8.5in" left=".5in"
>             height="1in" width="7.5in">
>      <fo:block white-space-collapse="false" linefeed-treatment="preserve"
>             color="#DDDDDD"
>          >
>      <fo:external-graphic src="url('java/images/FI_Graybar.jpg')"
>             content-height=".70in" content-width="6in">
>      </fo:external-graphic>
>
>     </fo:block>
>    </fo:block-container>
>
>
>
>
> */Jeff/*
>

Reply via email to