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 Gonzalo Vasquez <gv...@altiuz.cl> on 2013/11/21 22:13:38 UTC
Optimizing FO template
Someone pointed out days ago that SVG lines/rect could faster if rendered as FO objects, any pointers on such?
Any other extra tips that may help improving rendering performance with the attached template?
Regards,
Gonzalo V�squez S�ez
Gerente Investigaci�n y Desarrollo (R&D)
Altiuz Soluciones Tecnol�gicas de Negocios Ltda.
Av. Nueva Tajamar 555 Of. 802, Las Condes - CP 7550099
+56 2 335 2461
gvasquez@altiuz.cl
http://www.altiuz.cl
http://www.altiuzreports.com
Re: Optimizing FO template
Posted by Luis Bernardo <lm...@gmail.com>.
I haven't looked at your sample, but regarding your previous SVG sample,
and as an example and without wanting to drastically change your FO,
replace the first SVG:
<fo:block-container overflow="hidden"
position="absolute">
<fo:block>
<fo:instream-foreign-object>
<svg:svg version="1.0" width="612" height="396">
<svg:rect x="0" y="50" width="546" height="346"
stroke-width="0.25" fill="white" stroke="black" />
</svg:svg>
</fo:instream-foreign-object>
</fo:block>
</fo:block-container>
by (border color changed to distinguish it from the others)
<fo:block-container overflow="hidden"
margin-top="50pt" position="relative" width="546pt" height="346pt"
border="0.5pt red solid">
<fo:block>
<!--fo:instream-foreign-object>
<svg:svg version="1.0" width="612" height="396">
<svg:rect x="0" y="50" width="546" height="346"
stroke-width="0.25" fill="white" stroke="black" />
</svg:svg>
</fo:instream-foreign-object-->
</fo:block>
</fo:block-container>
That should give you an idea. There is not need to use SVG to draw
rectangular borders.
On 11/21/13, 9:13 PM, Gonzalo Vasquez wrote:
> Someone pointed out days ago that SVG lines/rect could faster if
> rendered as FO objects, any pointers on such?
>
> Any other extra tips that may help improving rendering performance
> with the attached template?
>
> Regards,
> Gonzalo Vásquez Sáez
> Gerente Investigación y Desarrollo (R&D)
> Altiuz Soluciones Tecnológicas de Negocios Ltda.
> Av. Nueva Tajamar 555 Of. 802, Las Condes - CP 7550099
> +56 2 335 2461
> gvasquez@altiuz.cl <ma...@altiuz.cl>
> http://www.altiuz.cl
> http://www.altiuzreports.com
> <https://www.facebook.com/altiuz> <http://twitter.com/altiuz>
> <http://www.linkedin.com/company/altiuz>
>
>
>
> =
>
>