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 Johan Johansson <jj...@idata.se> on 2007/04/03 09:18:19 UTC

Creating multiple pdf files.

Hi!
 
Is it possible to create multiple pdf files?
 
I want to have one pdf file every time it starts over on page 1 
<fo:page-sequence master-reference="{$faktura}" force-page-count="even" initial-page-number="1"> 
 
So for every faktura or samlingsfaktura i want to have one pdf, cause they can contain multiple pages.
I tried to figure out how to make multiple page coutings but with out luck.
 
Exampel code:
  <!-- Börja loopa fakturorna -->
  <xsl:for-each select="fakturor/fakturabunt/faktura | fakturor/fakturabunt/samlingsfaktura">
   <!-- Definera variabeln och sätt värde beroende på inbet.kort eller ej -->
   <xsl:variable name="faktura">
    <xsl:choose>
     <xsl:when test="skrivbetkort = '1'">faktura</xsl:when>
     <xsl:otherwise>faktura-helkropp</xsl:otherwise>
    </xsl:choose>
   </xsl:variable>
   <xsl:variable name="flow-height">
    <xsl:choose>
     <xsl:when test="skrivbetkort = '1'">8</xsl:when>
     <xsl:otherwise>17</xsl:otherwise>
    </xsl:choose>
   </xsl:variable>
   
   <!-- Skapa dokument med variabel master -->
   <fo:page-sequence master-reference="{$faktura}" force-page-count="even" initial-page-number="1">