XSL FO letter- / word-spacing funktioniert nicht
Tolwin
- xsl
0 Thomas J.S.0 Tolwin0 Thomas J.S.0 Tolwin
Hallo Forum,
ich habe ein Problem bei der generierung eines PDF´s per XSL FO
Folgende Zeile möchte ich gerne mit einer Buchstabenlaufweite bzw.
Wort-Laufweite versehen
<fo:block font-size="8.5pt" margin-left="6mm" margin-right="15mm" space-before="4mm"><fo:inline letter-spacing="5pt">Die Beteiligung an dieser Vermögensanlage....</fo:inline>
</fo:block>
Leider wird letter-spacing und word-spacing nicht berücksichtigt,
auch wenn ich es in den block schreibe. Hat jemand eine Idee woran das liegen könnte?
Danke und Gruß
Tolwin
Hallo,
ich habe ein Problem bei der generierung eines PDF´s per XSL FO
Folgende Zeile möchte ich gerne mit einer Buchstabenlaufweite bzw.
Wort-Laufweite versehen<fo:block font-size="8.5pt" margin-left="6mm" margin-right="15mm" space-before="4mm"><fo:inline letter-spacing="5pt">Die Beteiligung an dieser Vermögensanlage....</fo:inline>
</fo:block>Leider wird letter-spacing und word-spacing nicht berücksichtigt,
auch wenn ich es in den block schreibe. Hat jemand eine Idee woran das liegen könnte?
Ich gehe davon aus,dass du FOP benutzt.
letter-spacing sollte eigentlich funktionieren, word-spacing aber erst ab Version 0.92.
Probiere es mit dieser Datei aus:
Grüße
Thomas
-------------------------------
<?xml version="1.0" encoding="UTF-8"?>
<fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format">
fo:layout-master-set
<fo:simple-page-master margin-right="0.5cm" margin-left="1.5cm" margin-bottom="2cm" margin-top="0cm" page-width="21cm" page-height="20cm" master-name="one">
<fo:region-body margin-bottom="2cm" margin-top="2cm"/>
<fo:region-before extent="0.5cm"/>
<fo:region-after extent="0.5cm"/>
</fo:simple-page-master>
</fo:layout-master-set>
<fo:page-sequence master-reference="one">
<fo:flow flow-name="xsl-region-body">
<fo:block space-after.optimum="10pt" font-weight="bold" font-size="16pt" text-align="center" letter-spacing="10pt">
Footnotes
</fo:block>
<fo:block color="red" word-spacing="20pt">
The fo:footnote
<fo:inline font-weight="bold">footnote<fo:inline font-size="6pt" vertical-align="super">1</fo:inline></fo:inline>
fo:footnote-body
<fo:block color="maroon">
1. A footnote is text placed at the bottom of the current or the next page.
</fo:block>
</fo:footnote-body>
</fo:footnote>
at the bottom of the page.
</fo:block>
<fo:block color="green">
The fo:footnote
<fo:inline font-weight="bold" letter-spacing="20pt">second footnote<fo:inline font-size="6pt" vertical-align="super">2</fo:inline></fo:inline>
fo:footnote-body
<fo:block color="darkgreen">
2. Another footnote with a bit more text.
</fo:block>
</fo:footnote-body>
</fo:footnote>
at the bottom of the page after the other footnote.
</fo:block>
<fo:block space-before.optimum="200pt" color="grey">
This text is used to show the body region area.
This text is used to show the body region area.
This text is used to show the body region area.
This text is used to show the body region area.
This text is used to show the body region area.
This text is used to show the body region area.
This text is used to show the body region area.
This text is used to show the body region area.
This text is used to show the body region area.
This text is used to show the body region area.
This text is used to show the body region area.
This text is used to show the body region area.
This text is used to show the body region area.
This text is used to show the body region area.
This text is used to show the body region area.
This text is used to show the body region area.
This text is used to show the body region area.
This text is used to show the body region area.
This text is used to show the body region area.
This text is used to show the body region area.
This text is used to show the body region area.
</fo:block>
<fo:block break-before="page">
This is for testing if a footnote cannot fit with the footnote
reference text.
</fo:block>
<fo:block color="grey" space-before.optimum="300pt">
Some filler text with no other purpose.
Some filler text with no other purpose.
Some filler text with no other purpose.
Some filler text with no other purpose.
Some filler text with no other purpose.
Some filler text with no other purpose.
Some filler text with no other purpose.
Some filler text with no other purpose.
</fo:block>
<fo:block color="blue">
This fo:footnote
<fo:inline font-weight="bold">footnote</fo:inline>
fo:footnote-body
<fo:block color="darkblue">
A footnote with too much text to fit on the same page as the reference. Also the
reference is in the same place as the conditional footnote reference text.
</fo:block>
</fo:footnote-body>
</fo:footnote>
is at the bottom of the page where the conditional footnote reference area is.
</fo:block>
<fo:block break-before="page">
This page also has a footnote and should have the footnote from the last page.
</fo:block>
<fo:block color="grey" space-before.optimum="150pt">
More boring filler text.
More boring filler text.
More boring filler text.
</fo:block>
<fo:block color="fuchsia">
This fo:footnote
<fo:inline font-weight="bold">footnote</fo:inline>
fo:footnote-body
<fo:block color="purple">
Another footnote.
</fo:block>
</fo:footnote-body>
</fo:footnote>
is at the bottom of the page after the footnote from the previous page.
</fo:block>
</fo:flow>
</fo:page-sequence>
</fo:root>
Hallo Thomas,
habe das FO mal auf UNIX-Ebene erstellen lassen.
Bekomme tatsächlich die Meldung
WARNING: property 'master-reference' ignored
Warning: property - "letter-spacing" is not implemented yet.
Warning: property - "word-spacing" is not implemented yet.
Warning: property - "letter-spacing" is not implemented yet.
Weisst Du evtl. einen alternativen Weg die Laufweite zu ändern?
Danke und Gruß
Tolwin
Hallo,
habe das FO mal auf UNIX-Ebene erstellen lassen.
Bekomme tatsächlich die MeldungWARNING: property 'master-reference' ignored
Welche FOP-Version ist das?
Warning: property - "letter-spacing" is not implemented yet.
Warning: property - "word-spacing" is not implemented yet.
Warning: property - "letter-spacing" is not implemented yet.
Weisst Du evtl. einen alternativen Weg die Laufweite zu ändern?
Ein Update auf FOP 20.0.5 (aktuelle stable-version).
(oder viele Leerezeichen im Text)
Grüße
Thomas
Welche FOP-Version ist das?
Kann ich leider nicht in Erfahrung bringen, vermute aber eine ziemlich alte :)
Ein Update auf FOP 20.0.5 (aktuelle stable-version).
(oder viele Leerezeichen im Text)
Da sich der Server in einem Firmennetz befindet ist ein Update
nicht ohne Weiteres möglich, auch wenn es sinnvoll wäre.
Trotzdem vielen Dank für die Unterstützung.
Viele Grüße
Tolwin