RE: FW: Print renderer does not render body region

2013-09-06 Thread Arkady Leyner

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@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 :
> 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
>
>  xmlns:fo="http://www.w3.org/1999/XSL/Format";
>>
>   
>  page-width="21cm" margin-top="2cm" margin-bottom="2cm" margin-left="2cm" 
> margin-right="2cm">
>   
>   
> 
>   
>   
> 
>   Hello Static!
> 
>
> 
>   Hello World!
> 
>   
> 
>
> 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
>ark...@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-unsubscr...@xmlgraphics.apache.org
> For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org



-- 
pascal

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


<>
-
To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org

Convert SVG which references image at a relative path to PDF

2013-09-06 Thread kalyan ayyagari
I use FOP to convert SVG to PDF by embedding the SVG in a HTML object tag
and use FOP to convert this HTML to PDF, which works in most cases. However
for the SVGs which internally reference an image present at a different
location, FOP is not able to render the image correclty. I have tried this
by setting the path of the location as the baseurl on fop factory.

fopFactory.setBaseURL(baseUrl);

This approach however works for a HTML which has an image present in a
different folder. What should be done to handle such SVGs?

Kalyan.


Re: FW: Print renderer does not render body region

2013-09-06 Thread Pascal Sancho
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 :
> 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
>
>  xmlns:fo="http://www.w3.org/1999/XSL/Format";
>>
>   
>  page-width="21cm" margin-top="2cm" margin-bottom="2cm" margin-left="2cm" 
> margin-right="2cm">
>   
>   
> 
>   
>   
> 
>   Hello Static!
> 
>
> 
>   Hello World!
> 
>   
> 
>
> 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
>ark...@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-unsubscr...@xmlgraphics.apache.org
> For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org



-- 
pascal

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



FW: Print renderer does not render body region

2013-09-06 Thread Arkady Leyner
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

http://www.w3.org/1999/XSL/Format";
>
  

  
  

  
  

  Hello Static!



  Hello World!

  


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
   ark...@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 






helloworld_static_print.PDF
Description: helloworld_static_print.PDF


helloworld_static.fo
Description: helloworld_static.fo


helloworld_static_FOP.pdf
Description: helloworld_static_FOP.pdf

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

Re: html content in xml input file.

2013-09-06 Thread Pascal Sancho
Hi,

This is not a FOP related question, but an XML/XSLT one.

That said, unless you have a strict DTD that prevent to add alternate
namespace xml in your xml source, you don't need to put your FO
snippet in a CDATA section.

then, in your XSLT, you just need to use a xsl:copy-of rather than a
xsl:value-of[@disable-output-escaping="yes"]

2013/9/3 Spoorthi Myneni :
> Hi All,
>
> I am trying to generate PDF output using xml and xsl files as my input
> files.
>
> My input xml and xsl files are:
> 24_24177_Proof.xsl
> 24_24177_Recipient.xml
>
> (I have attached them).
>
> My xml file has a node where in I have CDATA like below:
>
> 
> 
> 
>
> I have run the below command and generated an fo file using the
> 24_24177_Proof.xsl and 24_24177_Recipient.xml file.
>
> fop -xml "C:\Users\spoorthi\Desktop\24_24177_Reciepients.
> xml" -xsl "C:\Users\spoorthi\Desktop\24_24177_Proof.XSL" -foout
> "C:\Users\spoort
> hi\Desktop\24_24177_Proof.fo"
>
> and then Generated pdf file using the above created fo file using the
> following command.
>
> fop -fo "C:\Users\spoorthi\Desktop\24_24177_Proof.fo" -pd
> f "C:\Users\spoorthi\Desktop\24_24177_FoOutput.pdf" -c fop.xconf
>
> My 24_24177_FoOutput.pdf gets the formatting of the content in the xml
> correctly.
>
> But when I directly use the -xml and -xsl files as input and generate the
> pdf file as ouput then the formatting of the text is not retained.
>
> I have used the following command and the output file is 24_24177_Proof.pdf
>
> fop -xml "C:\Users\spoorthi\Desktop\24_24177_Reciepients.
> xml" -xsl "C:\Users\spoorthi\Desktop\24_24177_Proof.XSL" -pdf
> "C:\Users\spoorthi
> \Desktop\24_24177_Proof.pdf" -c fop.xconf
>
>
>  Can someone explain me on why it doesnot retain the formatting in the
> second case(using xml and xsl as input and generating pdf as output)?
>
> and I would like to know what else I need to include in order to get the
> formatting in the second case.
>
>
> I have attached all the files in the mail, for your reference.
> I have many instances like this for which I need this to work, any advice
> will be appreciated a lot.
>
> Thank you in advance.
>
> -Spoorthi
>
>
> -
> To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
> For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org



-- 
pascal

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