W3C home > Mailing lists > Public > www-xsl-fo@w3.org > December 2007

Page layout n specifications for Thermal printer

From: xsltuser <charanpreet1499@yahoo.com>
Date: Wed, 26 Dec 2007 13:57:50 -0800 (PST)
Message-ID: <14506902.post@talk.nabble.com>
To: www-xsl-fo@w3.org


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"
                    <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"/>

View this message in context: http://www.nabble.com/Page-layout-n-specifications-for-Thermal-printer-tp14506902p14506902.html
Sent from the w3.org - www-xsl-fo mailing list archive at Nabble.com.
Received on Friday, 28 December 2007 17:34:38 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 20:58:31 UTC