Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > XML > XSLT
Password Reminder
| 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
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


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


Reply With Quote

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.