Pages: 1
Print
Author Topic: Page layouts for PDF output  (Read 3457 times)
valtteri
Member

Posts: 4


« on: August 06, 2009, 05:36:43 AM »

Hi!

We need change the width and heigth of the pages in our PDF output. I found the layout-masters.xml file but I'm not sure if this is the file I should be editing. Is this the only file that controls those properties or are there more?

So, does anyone have any experience on this matter? If someone could kindly provide me with the information on the steps I need to do in order to change the width and heigth of the pages, that would be appreciated. :)

Thanks in advance.

-Valtteri
Logged
Chris
Solutions Consultant (XMetaL)
Member

Posts: 18


« Reply #1 on: August 13, 2009, 05:44:25 PM »

Hi valtteri,

Add the following to your customization:

<!-- file: DITA_OT/demo/xmfo/[Customization]/fo/attrs/custom.xsl -->
<!-- START layout parameters -->
<xsl:param name="xm.page.margin.bottom">1in</xsl:param>
<xsl:param name="xm.page.margin.inner">0.75in</xsl:param>
<xsl:param name="xm.page.margin.outer">1.25in</xsl:param>
<xsl:param name="xm.page.margin.top">1in</xsl:param>

<xsl:param name="xm.page.orientation" select="'portrait'"/>
<xsl:param name="xm.paper.type" select="'letter'"/>
<!-- END layout parameters -->

Note:
1. If you are running XMetaL 5.5, the DITA_OT/demo/xmfo/attrs/custom.xsl file may be in your user directory. See this forum thread for details:
http://forums.xmetal.com/index.php/topic,180.msg549.html#msg549

2. Margins can be specified in in, mm and cm. "inner" and "outer" refer to the left- and right-margins on an odd-numbered page. This is for double-sided output. If you want single-side output, just give "xm.page.margin.inner" and "xm.page.margin.outer" the same value.

3. Orientation can be portrait or landscape

4. Sizes supported are letter, legal, tabloid, A0, A1, A2, A3, A4, A5, A6 and A7.
Logged

Chris Johnson
XMetaL Services
Pages: 1
Print
Jump to:  

email us