Hello,

I am working on scaling 300dpi JPEG images.  I have added the code to
fop 0.20.5rc2 suggested by this message in the archives:

http://marc.theaimsgroup.com/?l=fop-dev&m=100711466107531&w=2

I can currently render JPEG images that are 300dpi, and they do appear
to be print quality.  However, the scaling (by using the height and
width characteristics of the fo:block-container) does not appear to work
in any predictable way.

For instance, I have taken a very large image (1.2MB) that is 1760 x
1184 pixels (5.867in x 3.947in) and am trying to scale it.  I can get it
to change size, but it doesn't appear to have much rhyme or reason to
how it scales.  This is the FOP code that contains the image:

<?xml version="1.0" encoding="UTF-8"?>
<fo:root xmlns:fox="http://xml.apache.org/fop/extensions";
xmlns:fo="http://www.w3.org/1999/XSL/Format";>
<fo:layout-master-set>
<fo:simple-page-master margin-bottom="0pt" margin-top="0pt"
margin-left="0pt" margin-right="0pt" master-           name="page"
page-width="612.0pt" page-height="792.0pt">
<fo:region-body margin-bottom="0pt" margin-top="0pt" margin-left="0pt"
margin-right="0pt"/>
</fo:simple-page-master>
</fo:layout-master-set>
<fo:page-sequence master-reference="page">
<fo:flow flow-name="xsl-region-body">
<fo:block-container position="absolute" left="40pt" top="592.0pt"
width="0pt" height="12pt">
<fo:block white-space-collapse="false" font-family="Arial"
font-weight="normal" font-style="normal" font-          size="12pt"
color="#000000" letter-spacing="12pt" line-height="-1pt"
text-align="left">This is simple text</fo:    block>
</fo:block-container>
<fo:block-container position="absolute" left="40pt" top="392.0pt"
width="200pt" height="200pt">
<fo:block white-space-collapse="false">
<fo:external-graphic scaling="uniform" src="/var/data/images/1/127.jpeg"
width="" height=""/>
</fo:block>
</fo:block-container>
<fo:block break-after="page"/>
</fo:flow>
</fo:page-sequence>
</fo:root>


I have even tried it without the width tag within the fo:block-container
as was suggested in an earlier post.

So, the question is this:  What code am I going to have to change to get
the JPEGs to scale correctly?  Is it going to be FOP code, or is it
going to be XSL code?

If there is more clarification needed, let me know.

Thanks.

-- 
Nathan Hokanson
-- 
Nathan Hokanson


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]

Reply via email to