Wrox Programmer Forums
Go Back   Wrox Programmer Forums > XML > XSLT
XSLT General questions and answers about XSLT. For issues strictly specific to the book XSLT 1.1 Programmers Reference, please post to that forum instead.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the XSLT section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old December 26th, 2007, 05:49 PM
Registered User
Join Date: Dec 2007
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Default Page layout n specifications for Thermal printer


I'm using XSLT to transform XML data to PDF receipts for my application. The generated PDF look good when I do a print preview and fire printouts on a printer with A4 size sheets but if I fire printout on a thermal printer after changing page-specifications in my XSLT, printed PDF content comes out to be very tiny all concentrated on one end of the page. Below is the snippet of the XSLT I'm using. Can anyone guide me how to change its specifications for thermal printing.

<xsl:template match="/">

        <fo:root font-size="8pt" color="black" font-family="MyriadMed">
                <fo:simple-page-master master-name="POSReceipt" page-height="20cm" page-width="8cm"
                    margin-top="1.25cm" margin-bottom="0.25cm" margin-left="0.25cm"
                    <fo:region-body margin-top="5cm" margin-bottom="7cm"/>
                    <fo:region-before extent="4cm"/>
                    <fo:region-after extent="6cm"/>

            <fo:page-sequence master-reference="POSReceipt">
                <fo:static-content flow-name="xsl-region-before">
                        <xsl:call-template name="adminReceiptHeader"/>
                <fo:static-content flow-name="xsl-region-after">
                        <xsl:call-template name="adminReceiptFooter"/>
                <fo:flow flow-name="xsl-region-body">
                        <xsl:call-template name="adminReceiptBody"/>


Similar Threads
Thread Thread Starter Forum Replies Last Post
Opening page layout... photon BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0 1 October 7th, 2008 04:22 PM
page layout breaks in IE 6 & 7 Cyber Shiva CSS Cascading Style Sheets 0 July 5th, 2008 09:19 AM
Page Layout without tables atcs2152 CSS Cascading Style Sheets 4 December 16th, 2005 10:30 AM
Page Layout Problem Spades Dreamweaver (all versions) 1 December 2nd, 2004 04:55 PM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.