Visualizzazione dei risultati da 1 a 2 su 2
  1. #1

    [XSL] Immagine che sovrascrive il testo in un pdf

    Non ho mai usato XSL. Ho una semplice domanda. Devo creare un pdf da un xml. Ho già il codice. Il pdf è una serie di righe di dati con una gif in alto e una in basso. Il problema è che l'immagine in basso (footer.gif) sovrascrive le ultime due righe del corpo.

    Come posso obbligare l'immagine footer.gif a non sovrascrive quanto già scritto?

    Ecco il codice:
    <?xml version="1.0" encoding="UTF-8" ?>
    <xsl:stylesheet version="1.1" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:fo="http://www.w3.org/1999/XSL/Format" exclude-result-prefixes="fo">
    <xslutput method="xml" version="1.0" omit-xml-declaration="no" indent="yes" />
    <xsl:template match="Report4">
    <fo:root xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:fo="http://www.w3.org/1999/XSL/Format" version="1.0">
    <fo:layout-master-set>
    <fo:simple-page-master master-name="simpleA4" page-height="21cm" page-width="29.7cm" margin-top="3mm" margin-bottom="3mm" margin-left="3mm" margin-right="3mm">
    <fo:region-body margin-top="3cm" margin-bottom="3cm" margin-left="1cm" margin-right="1cm" />
    <fo:region-before extent="3cm" margin-left="3mm" margin-right="3mm" />
    <fo:region-after extent="4cm" margin-left="3mm" margin-right="3mm" />
    </fo:simple-page-master>
    </fo:layout-master-set>
    <foage-sequence master-reference="simpleA4">
    <fo:static-content flow-name="xsl-region-before">
    <fo:block text-align="center">
    <fo:external-graphic content-width="scale-to-fit" width="28cm" content-height="scale-to-fit" height="1.5cm" scaling="uniform" src="url(/dynamo1/dynamodata/imiwebapp/webmain/classes/it/imiweb/internal/corporateIstit/report/header.jpg)">
    </fo:external-graphic>
    </fo:block>
    </fo:static-content>
    <fo:static-content flow-name="xsl-region-after">
    <fo:block text-align="center">
    <fo:external-graphic content-width="scale-to-fit" width="28cm" content-height="scale-to-fit" height="1.8cm" scaling="uniform" src="url(/dynamo1/dynamodata/imiwebapp/webmain/classes/it/imiweb/internal/corporateIstit/report/footer.jpg)">
    </fo:external-graphic>
    </fo:block>
    </fo:static-content>
    <fo:flow flow-name="xsl-region-body">
    <fo:block font-size="10pt" font-weight="bold" text-align="center" space-after="5mm">Movimenti Conti Correnti</fo:block>
    <fo:block text-align="center" display-align="center">
    <fo:table table-layout="fixed">
    <fo:table-column column-number="1" column-width="35mm"/>
    <fo:table-column column-number="2" column-width="15mm"/>
    <fo:table-column column-number="3" column-width="40mm"/>
    <fo:table-header>
    <fo:table-row height="5mm">
    <fo:table-cell column-number="1"><fo:block></fo:block></fo:table-cell>
    <fo:table-cell background-color="silver" border-color="grey" display-align="center" border-width="0.5pt" border-style="solid" column-number="2"><fo:block text-align="center" font-size="7pt" font-weight="bold" >Ndg</fo:block></fo:table-cell>
    <fo:table-cell background-color="silver" border-color="grey" display-align="center" border-width="0.5pt" border-style="solid" column-number="3"><fo:block text-align="center" font-size="7pt" font-weight="bold" >Last Name</fo:block> </fo:table-cell>
    </fo:table-row>
    </fo:table-header>
    <fo:table-body>
    <xsl:for-each select="MovimentiContiCorrenti">
    <fo:table-row height="5mm">
    <fo:table-cell column-number="1"><fo:block></fo:block></fo:table-cell>
    <fo:table-cell border-color="grey" display-align="center" border-width="0.5pt" border-style="solid" column-number="2"><fo:block text-align="center" font-size="7pt" font-weight="normal"><xsl:value-of select="NDG"/></fo:block></fo:table-cell>
    <fo:table-cell border-color="grey" display-align="center" border-width="0.5pt" border-style="solid" column-number="3"><fo:block text-align="center" font-size="7pt" font-weight="normal"><xsl:value-of select="DESCRIZIONE1"/></fo:block> </fo:table-cell>
    </fo:table-row>
    </xsl:for-each>
    </fo:table-body>
    </fo:table>
    </fo:block>
    </fo:flow>
    </foage-sequence>
    </fo:root>
    </xsl:template>
    </xsl:stylesheet>

  2. #2
    La modifica era semplicissima bastava modificare i cm in testa per le tre zone nei tag simple-page-master.

Permessi di invio

  • Non puoi inserire discussioni
  • Non puoi inserire repliche
  • Non puoi inserire allegati
  • Non puoi modificare i tuoi messaggi
  •  
Powered by vBulletin® Version 4.2.1
Copyright © 2025 vBulletin Solutions, Inc. All rights reserved.