Hi All

We recently migrated from FOP 0.95 to FOP 1.0. Everything worked fine except 
some strange problem with the Mac OS X 10.6.6 print preview dialog. This dialog 
now consistently wants to scale the printed PDF down to 90%. PDFs generated 
with FOP 0.95 are not scaled, which is what I expect. Note that Acrobat Reader 
9.4.2 works fine with both FOP 0.95 and 1.0, i.e., it does not scale the 
printed PDF.

The source XML causing the problem looks the same for FOP 0.95 and FOP 1.0:

<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform";
    xmlns:xs="http://www.w3.org/2001/XMLSchema"; 
xmlns:fo="http://www.w3.org/1999/XSL/Format";
    version="1.1" exclude-result-prefixes="fo">

    <xsl:output method="xml" version="1.0" omit-xml-declaration="no" 
indent="yes"/>

    <xsl:template match="/">

        <fo:root>
            <fo:layout-master-set>
                <fo:simple-page-master master-name="content"
                    page-width="8.27in" page-height="11.7in">
                    <fo:region-body/>
                </fo:simple-page-master>
            </fo:layout-master-set>
            <fo:page-sequence master-reference="content">
                <fo:flow flow-name="xsl-region-body">
                    <fo:table table-layout="fixed" width="100%">
                        <fo:table-column 
column-width="proportional-column-width(1)"/>
                        <fo:table-body>
                            <fo:table-row>
                                <fo:table-cell display-align="center">
                                    <fo:block text-align="center">
                                        <xsl:text>TEST</xsl:text>
                                    </fo:block>
                                </fo:table-cell>
                            </fo:table-row>
                        </fo:table-body>
                    </fo:table>
                </fo:flow>
            </fo:page-sequence>
        </fo:root>

    </xsl:template>

</xsl:stylesheet>


So obviously, something changed between FOP 0.95 and 1.0 that causes the Mac OS 
X print preview dialog to scale the FOP 1.0 PDF to 90%. The page size info (in 
cm) displays a tiny difference (all with the same source XML):

FOP 0.95 PDF page size in cm: 21 x 29.71
FOP 1.0  PDF page size in cm: 21 x 29.7

Playing around with different page-width and page-height did not solve the 
problem.

Is there anything I can do to convince Mac OS X print preview dialog _not_ to 
scale the FOP 1.0 PDF?

Kind regards,
Marc

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

Reply via email to