[xep-support] Letter sized EPS file on letter sized page?

From: Mark Jackson (mark.jackson@pyp.us)
Date: Thu Oct 24 2002 - 11:12:08 PDT


I'm having a problem fitting an 8.5in x 11in EPS file onto a 8.5in x 11in page (with no margins or side regions). The width does not seem to be a problem, but I need to set the content-height to "10.95in" to make it fit. Otherwise, I receive the message: {?no space for an element, trying to recover}.

I can provide the EPS file if needed, but the test case uses a simple page with %%BoundingBox: 0 0 612 792.

Here is the test case. Please let me know if I'm doing something incorrectly. I need to get this working today. I've also tried using point sizes. It looks like I need to specify a height 4 points shorter than a full page to make it fit.

<?xml version="1.0" encoding="utf-8"?>
<fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format">
        <fo:layout-master-set>
                <fo:simple-page-master master-name="odd-page-cover" page-height="11in" page-width="8.5in">
                        <fo:region-body margin-top="0" margin-bottom="0" margin-left="0" margin-right="0"/>
                </fo:simple-page-master>
                <fo:simple-page-master master-name="even-page-cover" page-height="11in" page-width="8.5in">
                        <fo:region-body margin-top="0" margin-bottom="0" margin-left="0" margin-right="0"/>
                </fo:simple-page-master>
                <fo:page-sequence-master master-name="duplex-cover">
                        <fo:repeatable-page-master-alternatives>
                                <fo:conditional-page-master-reference master-reference="odd-page-cover" odd-or-even="odd"/>
                                <fo:conditional-page-master-reference master-reference="even-page-cover" odd-or-even="even"/>
                        </fo:repeatable-page-master-alternatives>
                </fo:page-sequence-master>
        </fo:layout-master-set>
        <fo:page-sequence master-reference="duplex-cover" initial-page-number="auto" format="1">
                <fo:flow flow-name="xsl-region-body">
                
                                <fo:block>
                                        <fo:external-graphic scaling="non-uniform" content-width="100%" content-height="100%" src="url(file://C:/xep/letter-page.eps)"/>
                                </fo:block>
                                
                </fo:flow>
        </fo:page-sequence>
</fo:root>

-------------------
By using the Service, you expressly agree to these Terms of Service http://www.renderx.com/tos.html



This archive was generated by hypermail 2.1.5 : Wed Dec 18 2002 - 08:41:28 PST