You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-users@xmlgraphics.apache.org by Glenn Brand <gb...@odprofessional.com> on 2008/01/03 22:52:07 UTC

Need image to render at higher DPI

I have a graphic that is rendering at a low resolution. See below in the
last several lines. How do I get the image to render at a higher
resolution? 

 

                            <fo:block>
                                <fo:inline font-family="Arial"
color="#000000">
                                    <fo:table width="100%"
border-style="none" border-width="0pt" background-repeat="repeat">
                                        <fo:table-column
column-width="225pt"/>
                                        <fo:table-column
column-width="310pt"/>
                                        <fo:table-body>
                                            <fo:table-row
height="200pt">
                                                <fo:table-cell
border-style="none" border-width="0pt" background-repeat="repeat"
display-align="center">
                                                    <fo:block>
                                                        <fo:block>
                                                            <fo:table
width="225pt" border-style="none" border-width="0pt"
background-repeat="repeat">
 
<fo:table-column column-width="225pt"/>
 
<fo:table-body>
 
<fo:table-row>
 
<fo:table-cell border-style="none" border-width="2pt"
background-repeat="no-repeat" display-align="center">
 
<fo:block>
 
<fo:block>
 
<fo:inline font-family="Arial" font-weight="bold">
 
<xsl:value-of
select="/Recordset[1]/spPatientStatement[1]/Location_BusinessName[1]"/>
 
</fo:inline>
 
</fo:block>
 
</fo:block>
 
</fo:table-cell>
 
</fo:table-row>
 
<fo:table-row>
 
<fo:table-cell border-style="none" border-width="2pt"
background-repeat="repeat" display-align="center">
 
<fo:block>
 
<fo:block>
 
<fo:inline font-family="Arial" font-weight="bold">
 
<xsl:value-of
select="/Recordset[1]/spPatientStatement[1]/Location_Address[1]"/>
 
</fo:inline>
 
</fo:block>
 
</fo:block>
 
</fo:table-cell>
 
</fo:table-row>
 
<fo:table-row>
 
<fo:table-cell border-style="none" border-width="2pt"
background-repeat="repeat" display-align="center">
 
<fo:block>
 
<fo:block>
 
<fo:inline font-family="Arial" font-weight="bold">
 
<xsl:value-of
select="/Recordset[1]/spPatientStatement[1]/Location_City[1]"/>, 
 
<xsl:value-of
select="/Recordset[1]/spPatientStatement[1]/Location_State"/>
 
</fo:inline>
 
</fo:block>
 
</fo:block>
 
</fo:table-cell>
 
</fo:table-row>
 
<fo:table-row>
 
<fo:table-cell border-style="none" border-width="2pt"
background-repeat="repeat" display-align="center">
 
<fo:block>
 
<fo:block>
 
<fo:inline font-family="Arial" font-weight="bold">
 
<xsl:value-of
select="/Recordset[1]/spPatientStatement[1]/Location_PostalZip[1]"/>
 
</fo:inline>
 
</fo:block>
 
</fo:block>
 
</fo:table-cell>
 
</fo:table-row>
 
<fo:table-row>
 
<fo:table-cell border-style="none" border-width="2pt"
background-repeat="repeat" display-align="center">
 
<fo:block>
 
<fo:block>
 
<fo:inline font-family="Arial" font-weight="bold">
 
<xsl:value-of
select="/Recordset[1]/spPatientStatement[1]/Location_Website[1]"/>
 
</fo:inline>
 
</fo:block>
 
</fo:block>
 
</fo:table-cell>
 
</fo:table-row>
 
<fo:table-row>
 
<fo:table-cell border-style="none" border-width="2pt"
background-repeat="repeat" display-align="center">
 
<fo:block/>
 
</fo:table-cell>
 
</fo:table-row>
 
<fo:table-row>
 
<fo:table-cell border-style="none" border-width="2pt"
background-repeat="repeat" display-align="center">
 
<fo:block>
 
<fo:block>
 
<fo:inline font-family="Arial" font-weight="bold">
 
<xsl:value-of select="concat('Phone
',/Recordset[1]/spPatientStatement[1]/Location_Phone[1])"/>
 
</fo:inline>
 
</fo:block>
 
</fo:block>
 
</fo:table-cell>
 
</fo:table-row>
 
<fo:table-row>
 
<fo:table-cell border-style="none" border-width="2pt"
background-repeat="repeat" display-align="center">
 
<fo:block>
 
<fo:block>
 
<fo:inline font-family="Arial" font-weight="bold">
 
<xsl:value-of select="concat('Fax
',/Recordset[1]/spPatientStatement[1]/Location_Fax[1])"/>
 
</fo:inline>
 
</fo:block>
 
</fo:block>
 
</fo:table-cell>
 
</fo:table-row>
 
<fo:table-row>
 
<fo:table-cell border-style="none" border-width="2pt"
background-repeat="repeat" display-align="center">
 
<fo:block>
 
<fo:block>
 
<xsl:text>  </xsl:text>
 
</fo:block>
 
</fo:block>
 
</fo:table-cell>
 
</fo:table-row>
 
</fo:table-body>
                                                            </fo:table>
                                                        </fo:block>
                                                    </fo:block>
                                                </fo:table-cell>
                                                <fo:table-cell
border-style="none" border-width="0pt"
background-image="url(file:///c:/CacheSys/CSP/qacahaba/ODprofessional_lo
go.gif)" background-repeat="repeat" display-align="center">
                                                    <fo:block/>
                                                </fo:table-cell>
                                            </fo:table-row>
                                        </fo:table-body>
                                    </fo:table>
                                </fo:inline>
                            </fo:block>

 


Re: Need image to render at higher DPI

Posted by Chris Bowditch <bo...@hotmail.com>.
Glenn Brand wrote:
> I have a graphic that is rendering at a low resolution. See below in the 
> last several lines. How do I get the image to render at a higher 
> resolution?

When including an image via fo:external-graphic tag the resolution can 
be controlled by making the content-width/height smaller so that the 
pixels are packed more densely. However, you can't set the size of a 
image included via background-image attribute. In this case I think FOP 
just assumes a default DPI of 72 DPI.

Chris



---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org


Re: Need image to render at higher DPI

Posted by "J.Pietschmann" <j3...@yahoo.de>.
Glenn Brand wrote:
> I am getting better results but the image still comes in bigger than
> what I specifiy and at the lower DPI.
> Can you spot the problem from the XSL-FO?
...
> <fo:external-graphic background="transparent" width="50pt" height="50pt"

I think you need
  <fo:external-graphic content-width="50pt" content-height="50pt"

J.Pietschmann

---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org


RE: Need image to render at higher DPI

Posted by Glenn Brand <gb...@odprofessional.com>.
Thanks Chris,

I am getting better results but the image still comes in bigger than
what I specifiy and at the lower DPI.
Can you spot the problem from the XSL-FO? 
                                                <fo:table-cell
border-style="none" border-width="0pt" background-repeat="no-repeat"
display-align="center">
                                                    <fo:block>
                                                        <fo:block>
 
<fo:external-graphic background="transparent" width="50pt" height="50pt"
src="url(file:///c:/CacheSys/CSP/qacahaba/ODprofessional_logo.gif)"/>
                                                        </fo:block>
                                                    </fo:block>
                                                </fo:table-cell>

-----Original Message-----
From: Chris Bowditch [mailto:bowditch_chris@hotmail.com] 
Sent: January 4, 2008 2:10 PM
To: fop-users@xmlgraphics.apache.org
Subject: Re: Need image to render at higher DPI

Glenn Brand wrote:
> I have a graphic that is rendering at a low resolution. See below in
the 
> last several lines. How do I get the image to render at a higher 
> resolution?

When including an image via fo:external-graphic tag the resolution can 
be controlled by making the content-width/height smaller so that the 
pixels are packed more densely. However, you can't set the size of a 
image included via background-image attribute. In this case I think FOP 
just assumes a default DPI of 72 DPI.

Chris



---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org