Jeremias Maerki wrote:
The problem here is testing. I don't have a duplex-capable printer so I
can test the behaviour. You obviously do. Can you please try to fix the
problem in code yourself and post a patch?

This is a known problem with the PS Renderer for which is there is already a patch to fix the issue (Bugzilla 42144). The patch will change the PS Renderer so that it only outputs page size if the page size actually changes.

Note: that not putting the page size information on every page breaks DSC compliance, so the patch makes turning off page size being put into every page configurable rather than always doing it.

I wasn't aware that the same problem existed in PCL Renderer :(

Chris


Jeremias Maerki



On 28.09.2007 10:18:02 Thomas Margreiter wrote:

we have updated from FOP 0.20.5 to 0.94 FOP and since this update we cannot
print in duplex-mode because the fop-renderers send on every page a page-Size
statement for example in PCL we get on each side a 'ESC &l1O' for landscapeA4 ! when we print this on HP-Printers (HP 4530, HP 4000, Brother Printers ... ) the
printer disables the duplex-mode because it recognizes a new Page-size ) only
xerox printers ignore the page-size command on every page ! the same problem is with postcript renderer ! you test this by creating a simplex job to a file and insert a few PJL -lines before the job for activating the duplex mode !

Here is our short xsl-code-snippet:  maybe there is something wrong !?!?

--------------------------------------------------------------------

<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.1" xmlns:xsl="http://www.w3.org/1999/XSL/Transform";
xmlns:fo="http://www.w3.org/1999/XSL/Format"; exclude-result-prefixes="fo">
        <xsl:template match="WorkTimeLog">
                
                <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format";>
                
                        <fo:layout-master-set>
                                <fo:simple-page-master master-name="landscapeA4" 
page-height="21cm"
page-width="29.7cm" margin-top="0.5cm" margin-bottom="0.5cm" margin-left="0.8cm"
margin-right="0.8cm">
                                        <fo:region-body margin-top="2.2cm" 
margin-bottom="1.0cm"/>
                                        <fo:region-before extent="3cm"/>
                                </fo:simple-page-master>
                        </fo:layout-master-set>
                        <fo:declarations>
                                <ps:ps-setup-code name="duplex"
xmlns:ps="http://xmlgraphics.apache.org/fop/postscript";>
                                        &lt;&lt;
                                        /Duplex true
                                        &gt;&gt; setpagedevice
                                </ps:ps-setup-code>
                        </fo:declarations>
                        <fo:page-sequence master-reference="landscapeA4">
                                <fo:static-content 
flow-name="xsl-region-before">
                                        <xsl:call-template name="Header"/>
                                </fo:static-content>
                                <fo:flow flow-name="xsl-region-body">
                                        <fo:block font-size="8pt">
                                                <xsl:apply-templates 
select="Data"/>
                                        </fo:block>
                                        <fo:block>
                                                <xsl:value-of 
select="/WorkTimeLog/Label/EndOfPrint"/>
                                        </fo:block>
                                </fo:flow>
                        </fo:page-sequence>
                </fo:root>
        </xsl:template>



.....


----------------------------------------------------------------------
thanks for help




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]







---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to