Questions & Answers

Jan_Wehe
I'm new here

Fehler im PDF Ausgabekanal

Hallo zusammen,

ich versuche mich gerade das erste Mal daran den PDF Ausgabekanal zu nutzen.

Ich habe mich am Code aus dem Mithras Projekt orientiert, dort funktioniert die
PDF Generierung problemlos. Ich bekomme jedoch immer folgende Fehlermeldung

(Der Kauderwelsch hinter Local\ รคndert sich jedesmal):

firstpsirit-pdf-error.jpg

Hier mein XML:

<CMS_HEADER>

</CMS_HEADER><?xml version="1.0" encoding="UTF-8"?>

<fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:fox="http://xml.apache.org/fop/extensions">

    <fo:layout-master-set>

        <fo:simple-page-master master-name="A4"

                       page-width="210mm"

                       page-height="297mm"

                       margin-top="20mm"

                       margin-bottom="20mm"

                       margin-left="20mm"

                       margin-right="20mm">

            <fo:region-body margin-top="5mm" margin-bottom="5mm" margin-left="5mm" margin-right="5mm"/>

            <fo:region-before region-name="header" extent="10mm"/>

            <fo:region-after region-name="footer" extent="10mm"/>

        </fo:simple-page-master>

    </fo:layout-master-set>

   

    <fo:page-sequence master-reference="A4">

        <fo:static-content flow-name="header">

            <fo:block>

                <fo:inline font-size="12pt" font-family="Arial" color="black" text-align="right">

                    Kopfzeile

                </fo:inline>

            </fo:block>

        </fo:static-content>

       

        <fo:static-content flow-name="footer">

            <fo:block>

                <fo:inline font-size="12pt" font-family="Arial" color="black" text-align="right">

                     Page <fo:page-number/>

                </fo:inline>

            </fo:block>

        </fo:static-content>

       

        <fo:flow flow-name="xsl-region-body">           

             <fo:block font-size="12pt" font-family="sans-serif" color="black">

                Heute ist ein schรถner Tag.

            </fo:block>

        </fo:flow>

    </fo:page-sequence>

</fo:root>

0 Kudos
3 Replies
aVogt
Returning Creator

Hallo,

bei mir funktioniert Dein Code ohne Probleme (siehe Anhang, alles in eine Seitenvorlage geschrieben)).

Event. liegt es an den Einstellungen fรผr den PDF-Kanal oder am Modul (wir haben da fo2pdf: 4.2.454_46318). Fรผr die FS4* gibt es ein anderes Modul als fรผr FS3*  (zumindest lag es da bei uns dran.

GrรผรŸe

Andreas

0 Kudos

Bei mir funktioniert es jetzt auch. Allerdings nur, wenn ich den PDF-Ausgabekanal so aufbaue wie im Mithras Projekt.

D.h. ich habe auf einem Seiten Template im PDF-Ausgabekanal den Rumpf inkl. Kopf- und FuรŸzeile notiert. Im PDF-Ausgabekanal des Datenbankschemas habe ich dann nur noch den <fo:block> mit den tatsรคchlichen Daten stehen.

Merkwรผrdig, aber solange das funktioniert soll es mir recht sein. ๐Ÿ™‚

0 Kudos

Alles in die Tabellenvorlage zu schreiben wird nur klappen, wenn die Contentprojektion nur einen Datensatz pro Seite erzeugt. Ansonsten wird ungรผltiges FO-XML generiert.

0 Kudos