You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-users@xmlgraphics.apache.org by Arkady Leyner <ar...@islandpacific.com> on 2013/09/06 13:29:47 UTC

FW: Print renderer does not render body region

Dear fop users,

I use FOP 1.1 on Windows XP, JRE 1.7, JDK 6. I have no problem with rendering to PDF. But I can't print to printer.

Following simple test demonstrates my problem. Very simple FO sheet helloworld_static.fo

<fo:root 
    xmlns:fo="http://www.w3.org/1999/XSL/Format"
>
  <fo:layout-master-set>
    <fo:simple-page-master master-name="simpleA4" page-height="29.7cm" page-width="21cm" margin-top="2cm" margin-bottom="2cm" margin-left="2cm" margin-right="2cm">
      <fo:region-body margin-top="3cm" />
      <fo:region-before extent="3cm"></fo:region-before>
    </fo:simple-page-master>
  </fo:layout-master-set>
  <fo:page-sequence master-reference="simpleA4">
    <fo:static-content flow-name="xsl-region-before">
      <fo:block>Hello Static!</fo:block>
    </fo:static-content>
    
    <fo:flow flow-name="xsl-region-body">
      <fo:block>Hello World!</fo:block>
    </fo:flow>
  </fo:page-sequence>
</fo:root>

I render to PDF with the command fop -fo helloworld_static.fo -pdf helloworld_static.pdf. Result looks like expected - attached in the file helloworld_static_fop.pdf.

Then I print to PDF printer with the command fop -fo helloworld_static.fo -print. Result attached in the file helloworld_static_print.pdf. Body region not printed. Similar result if I print to laser printer.

By the way when I render this and much more complicated sheet to PCL then print it works perfectly.

What is wrong with the direct printing? Every recommendation will be highly appreciated.

Best regards

Arkady Leyner
�������arkady@islandpacific.com
�������t. +61 2 9369�8519 reception +61 2 9369 8500��
������ f. +61 2 9387 7110
�������Ground Floor / 35 Spring Street, Bondi Junction� NSW 2022� Australia�





RE: FW: Print renderer does not render body region

Posted by Arkady Leyner <ar...@islandpacific.com>.
Thank you for prompt response,

PDF printer is PS printer. PDF printer and PCL printer produce the same result - body not rendered.

Anyway I'll try to install PS driver on office Ricoh printer and let you know if this helps.

Best regards
Arkady

-----Original Message-----
From: Pascal Sancho [mailto:psancho.asf@gmail.com]
Sent: Fri 9/6/2013 10:16 PM
To: fop-users@xmlgraphics.apache.org
Subject: Re: FW: Print renderer does not render body region
 
Hi,

there are known issues when using -print option on windows.
Perhaps you are facing to one; see [1] for further information.

[1] http://xmlgraphics.apache.org/fop/1.1/output.html#print

2013/9/6 Arkady Leyner <ar...@islandpacific.com>:
> Dear fop users,
>
> I use FOP 1.1 on Windows XP, JRE 1.7, JDK 6. I have no problem with rendering to PDF. But I can't print to printer.
>
> Following simple test demonstrates my problem. Very simple FO sheet helloworld_static.fo
>
> <fo:root
>     xmlns:fo="http://www.w3.org/1999/XSL/Format"
>>
>   <fo:layout-master-set>
>     <fo:simple-page-master master-name="simpleA4" page-height="29.7cm" page-width="21cm" margin-top="2cm" margin-bottom="2cm" margin-left="2cm" margin-right="2cm">
>       <fo:region-body margin-top="3cm" />
>       <fo:region-before extent="3cm"></fo:region-before>
>     </fo:simple-page-master>
>   </fo:layout-master-set>
>   <fo:page-sequence master-reference="simpleA4">
>     <fo:static-content flow-name="xsl-region-before">
>       <fo:block>Hello Static!</fo:block>
>     </fo:static-content>
>
>     <fo:flow flow-name="xsl-region-body">
>       <fo:block>Hello World!</fo:block>
>     </fo:flow>
>   </fo:page-sequence>
> </fo:root>
>
> I render to PDF with the command fop -fo helloworld_static.fo -pdf helloworld_static.pdf. Result looks like expected - attached in the file helloworld_static_fop.pdf.
>
> Then I print to PDF printer with the command fop -fo helloworld_static.fo -print. Result attached in the file helloworld_static_print.pdf. Body region not printed. Similar result if I print to laser printer.
>
> By the way when I render this and much more complicated sheet to PCL then print it works perfectly.
>
> What is wrong with the direct printing? Every recommendation will be highly appreciated.
>
> Best regards
>
> Arkady Leyner
>        arkady@islandpacific.com
>        t. +61 2 9369 8519 reception +61 2 9369 8500
>        f. +61 2 9387 7110
>        Ground Floor / 35 Spring Street, Bondi Junction  NSW 2022  Australia
>
>
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
> For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org



-- 
pascal

---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org



Re: FW: Print renderer does not render body region

Posted by Pascal Sancho <ps...@gmail.com>.
Hi,

there are known issues when using -print option on windows.
Perhaps you are facing to one; see [1] for further information.

[1] http://xmlgraphics.apache.org/fop/1.1/output.html#print

2013/9/6 Arkady Leyner <ar...@islandpacific.com>:
> Dear fop users,
>
> I use FOP 1.1 on Windows XP, JRE 1.7, JDK 6. I have no problem with rendering to PDF. But I can't print to printer.
>
> Following simple test demonstrates my problem. Very simple FO sheet helloworld_static.fo
>
> <fo:root
>     xmlns:fo="http://www.w3.org/1999/XSL/Format"
>>
>   <fo:layout-master-set>
>     <fo:simple-page-master master-name="simpleA4" page-height="29.7cm" page-width="21cm" margin-top="2cm" margin-bottom="2cm" margin-left="2cm" margin-right="2cm">
>       <fo:region-body margin-top="3cm" />
>       <fo:region-before extent="3cm"></fo:region-before>
>     </fo:simple-page-master>
>   </fo:layout-master-set>
>   <fo:page-sequence master-reference="simpleA4">
>     <fo:static-content flow-name="xsl-region-before">
>       <fo:block>Hello Static!</fo:block>
>     </fo:static-content>
>
>     <fo:flow flow-name="xsl-region-body">
>       <fo:block>Hello World!</fo:block>
>     </fo:flow>
>   </fo:page-sequence>
> </fo:root>
>
> I render to PDF with the command fop -fo helloworld_static.fo -pdf helloworld_static.pdf. Result looks like expected - attached in the file helloworld_static_fop.pdf.
>
> Then I print to PDF printer with the command fop -fo helloworld_static.fo -print. Result attached in the file helloworld_static_print.pdf. Body region not printed. Similar result if I print to laser printer.
>
> By the way when I render this and much more complicated sheet to PCL then print it works perfectly.
>
> What is wrong with the direct printing? Every recommendation will be highly appreciated.
>
> Best regards
>
> Arkady Leyner
>        arkady@islandpacific.com
>        t. +61 2 9369 8519 reception +61 2 9369 8500
>        f. +61 2 9387 7110
>        Ground Floor / 35 Spring Street, Bondi Junction  NSW 2022  Australia
>
>
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
> For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org



-- 
pascal

---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org