xmlgraphics-batik-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From thomas.dewe...@kodak.com
Subject Re: Renderer Performance
Date Tue, 31 Mar 2009 10:04:45 GMT
Hi Kevin,

Kevin Whittington <Kevin.Whittington@catalinamarketing.com> wrote on 
03/30/2009 01:47:39 PM:

> I am currently rendering a legal size document to PDF with fop 0.94 
> that contains two panels of graphics. Each panel contains a single 
> 300 dpi PNG file.

    I'm sorry, I don't see why you are posting this on the
Batik mailing list.  It doesn't look to me like you are using
SVG (or anything else from Batik) in your work.

    Were you looking for the FOP users mailing list?

> My FO document is very simple.  Below is an abridged version:
> 
> <?xml version="1.0" encoding="utf-8"?>
> <xsl:stylesheet version="1.0"
>         xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
>         xmlns:fo="http://www.w3.org/1999/XSL/Format">
> 
>         <xsl:template match="/">
> 
>                 <fo:root>
> 
>                  <!-- Define the page layout. -->
>                     <fo:layout-master-set>
> 
>                                 <fo:simple-page-master 
master-name="pamphlet"
>                            page-height="8.5in"
>                                         page-width="14.5in" 
>                                         margin-top="0in"
>                                         margin-bottom="0in"
>                                         margin-left=".1875in"
>                                         margin-right="0in">
>                                         <fo:region-body margin-
> top=".1875in"/> 
>                                 </fo:simple-page-master> 
> 
>                         </fo:layout-master-set>
> 
>                         <fo:page-sequence master-reference="pamphlet">
>                                 <fo:flow flow-name="xsl-region-body">
>                                         <xsl:apply-templates 
> select="specification/panelOneFile"/> 
>                                         <xsl:apply-templates 
> select="specification/panelTwoFile"/> 
>                                 </fo:flow>
>                         </fo:page-sequence>
> 
>                 </fo:root>
> 
>     </xsl:template>
> 
>     <!-- Panel 1 -->
>     <xsl:template match="specification/panelOneFile">
>         <fo:block-container height="8.2in" width="4.25in" top="0in" 
> left="4.5in" padding="0mm" position="absolute"> 
>             <fo:block>
>                 <fo:external-graphic top="1cm" src="{//panelOneFile}"/>
>             </fo:block>
>         </fo:block-container>
> 
>     <!-- Panel 2 --> 
>     <xsl:template match="specification/panelTwoFile">
>         <fo:block-container height="8.2in" width="4.25in" top="0in" 
> left="9.1in" padding="0mm" position="absolute"> 
>             <fo:block>
>                 <fo:external-graphic top="1cm" src="{//panelTwoFile}"/>
>             </fo:block>
>         </fo:block-container>
>     </xsl:template>
> 
> </xsl:stylesheet>
> 
> My xsl file is simple as well:
> 
> <?xml version="1.0" encoding="UTF-8"?>
> <specification>
>     <panelOneFile>url('c:/example/example1.png')</panelOneFile>
>     <panelTwoFile>url('c:/example/example2.png')</panelTwoFile>
> </specification>
> 
> Kevin Whittington
> Store Systems Senior Programmer/Analyst
> Catalina Marketing Corporation
> 
> 
Mime
View raw message