Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > XML > XSLT
Password Reminder
Register
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old December 26th, 2007, 05:49 PM
Registered User
 
Join Date: Dec 2007
Location: , , .
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Default Page layout n specifications for Thermal printer

Hi,

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:layout-master-set>
                <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"
                    margin-right="0.25cm">
                    <fo:region-body margin-top="5cm" margin-bottom="7cm"/>
                    <fo:region-before extent="4cm"/>
                    <fo:region-after extent="6cm"/>
                </fo:simple-page-master>
            </fo:layout-master-set>

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

        </fo:root>
    </xsl:template>


Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


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



All times are GMT -4. The time now is 10:24 PM.


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