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 Sebastien HO <sh...@traceparts.com> on 2013/12/04 17:02:56 UTC

Upgrading FOP extension from 0.95 to 1.1 issues

Hi,

I am trying to upgrade an extension that has been written on FOP V0.95 to
FOP V1.1.

Some classes have been deleted from one version to the other one which leads
to compilation issues. I guess code structure have changed.

The classes that are missing are :
-  org.apache.fop.pdf.PDFState : 
	I use this class to get the current AffineTransform
	Java Code : 
		AffineTransform transform =
pdfi.currentState.getTransform();
		transform.scale(0.001D, 0.001D);
		pdfi.aRect = transform.createTransformedShape(new
Rectangle2D.Float(pdfi.posX, pdfi.posY, pdfi.width,
pdfi.height)).getBounds2D();

    Can someone tell me where can I get this information?

The following have also been deleted : 
-org.apache.fop.render.ps.PSRenderer and
org.apache.fop.render.ps.PSRendererMaker
-org.apache.fop.render.afp.AFPRenderer and
org.apache.fop.render.afp.AFPRendererMaker
-org.apache.fop.render.plc.PLCRenderer and
org.apache.fop.render.plc.PLCRendererMaker

Can someone tell me how it works to access rendering class?

Regards, 

Sebastien 


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


Re: Upgrading FOP extension from 0.95 to 1.1 issues

Posted by Luis Bernardo <lm...@gmail.com>.
I guess the Painter classes are the ones you want to look at (PSPainter 
and so on).

On 12/4/13, 4:02 PM, Sebastien HO wrote:
> Hi,
>
> I am trying to upgrade an extension that has been written on FOP V0.95 to
> FOP V1.1.
>
> Some classes have been deleted from one version to the other one which leads
> to compilation issues. I guess code structure have changed.
>
> The classes that are missing are :
> -  org.apache.fop.pdf.PDFState :
> 	I use this class to get the current AffineTransform
> 	Java Code :
> 		AffineTransform transform =
> pdfi.currentState.getTransform();
> 		transform.scale(0.001D, 0.001D);
> 		pdfi.aRect = transform.createTransformedShape(new
> Rectangle2D.Float(pdfi.posX, pdfi.posY, pdfi.width,
> pdfi.height)).getBounds2D();
>
>      Can someone tell me where can I get this information?
>
> The following have also been deleted :
> -org.apache.fop.render.ps.PSRenderer and
> org.apache.fop.render.ps.PSRendererMaker
> -org.apache.fop.render.afp.AFPRenderer and
> org.apache.fop.render.afp.AFPRendererMaker
> -org.apache.fop.render.plc.PLCRenderer and
> org.apache.fop.render.plc.PLCRendererMaker
>
> Can someone tell me how it works to access rendering class?
>
> Regards,
>
> Sebastien
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
> For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
>


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