You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-dev@xmlgraphics.apache.org by Venkat Reddy <va...@googlemail.com> on 2009/12/10 16:33:53 UTC

Failing to pass through AFPRenderer

Hi,

Please someone help me in understanding following scenarios...

_*Test 1:*_

I have a simple FO input file (i.e., hello.fo), when I tried the 
following command

    *fop -c C:\fop.xconf -fo hello.fo -afp hello.afp

*the AFPRenderer class is being used to render the input document, as I 
have forced the renderer with *<prefer-renderer> true </prefer-renderer> 
*in my fop configuration file.

_*Test 2:*_
*
*I have generated an intermediate (hello.if) file from the FO input 
document (hello.fo) using the following command...

    *fop -c C:\fop.xconf -fo hello.fo -if application/x-afp hello.if*

Now, I have tried to generate AFP output file from the the above 
generated intermediate file (hello.if) using the following command...

   * fop -c C:\fop.xconf -ifin hello.if -afp hello.afp* *

*I am using the same fop configuration file, forcing the renderer on 
both the occations, but the AFPPainter class is being used in the second 
test (Test 2) instead of AFPRenderer...
Is this the correct behaviour? Can someone explain this to me?

Thanks,
Venkat.

Re: Failing to pass through AFPRenderer

Posted by Chris Bowditch <bo...@hotmail.com>.
Venkat Reddy wrote:
> Hi,

Hi Venkat,

<snip/>

> 
> _*Test 2:*_
> *
> *I have generated an intermediate (hello.if) file from the FO input 
> document (hello.fo) using the following command...
> 
>    *fop -c C:\fop.xconf -fo hello.fo -if application/x-afp hello.if*
> 
> Now, I have tried to generate AFP output file from the the above 
> generated intermediate file (hello.if) using the following command...
> 
>   * fop -c C:\fop.xconf -ifin hello.if -afp hello.afp* *
> 
> *I am using the same fop configuration file, forcing the renderer on 
> both the occations, but the AFPPainter class is being used in the second 
> test (Test 2) instead of AFPRenderer...
> Is this the correct behaviour? Can someone explain this to me?

This is the correct behaviour. The Painters are always used to render 
Intermediate Format to AFP, PDF, etc. The Renderers are only used to 
render Area Tree to AFP, PDF, etc.

> 
> Thanks,
> Venkat.

Thanks,

Chris

> 
>