xmlgraphics-fop-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Luis Bernardo <lmpmberna...@gmail.com>
Subject Re: Optimizing FO template
Date Thu, 21 Nov 2013 23:39:26 GMT

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 <mailto:gvasquez@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>
>
> 	
>
> =
>
>


Mime
View raw message