Text-Datei über Batch bearbeiten
Habe eine Text-Datei, die wie folgt aussieht:
<fop version="1.0">
<!--Noch ein Bissl Text dazwischen-->
<!-- <value>ascii-85</value> -->
<!-- encodes binary data with hex representation (default off)
This filter is not recommended as it doubles the data size -->
<!-- <value>ascii-hex</value> -->
</filterList>
<fonts>
<!-- embedded fonts -->
<!--
This information must exactly match the font specified
in the fo file. Otherwise it will use a default font.
For example,
<fo:inline font-family="Arial" font-weight="bold" font-style="normal">
Arial-normal-normal font
</fo:inline>
for the font triplet specified by:
<font-triplet name="Arial" style="normal" weight="bold"/>
If you do not want to embed the font in the pdf document
then do not include the "embed-url" attribute.
The font will be needed where the document is viewed
for it to be displayed properly.
possible styles: normal | italic | oblique | backslant
possible weights: normal | bold | 100 | 200 | 300 | 400
| 500 | 600 | 700 | 800 | 900
(normal = 400, bold = 700)
-->
<font metrics-url="file:\Pfad\arial.xml" kerning="yes" embed-url="file:\Pfad\arial.ttf">
<font-triplet name="Arial" style="normal" weight="normal"/>
<font-triplet name="ArialMT" style="normal" weight="normal"/>
</font>
<font metrics-url="file:\Pfad\arialbd.xml" kerning="yes" embed-url="file:\Pfad\arialbd.ttf">
<font-triplet name="Arial" style="normal" weight="bold"/>
<font-triplet name="ArialMT" style="normal" weight="normal"/>
</font>
<!--
<font metrics-url="arialb.xml" kerning="yes" embed-url="arialb.ttf">
<font-triplet name="Arial" style="normal" weight="bold"/>
<font-triplet name="ArialMT" style="normal" weight="bold"/>
</font>
-->
</fonts>
innerhalb des Tags <fonts></fonts> muss ich nun einen Text hinzufügen.
Wie mach ich das am geschicktesten?
Schonmal Dank im Vorraus
Gruß
<fop version="1.0">
<!--Noch ein Bissl Text dazwischen-->
<!-- <value>ascii-85</value> -->
<!-- encodes binary data with hex representation (default off)
This filter is not recommended as it doubles the data size -->
<!-- <value>ascii-hex</value> -->
</filterList>
<fonts>
<!-- embedded fonts -->
<!--
This information must exactly match the font specified
in the fo file. Otherwise it will use a default font.
For example,
<fo:inline font-family="Arial" font-weight="bold" font-style="normal">
Arial-normal-normal font
</fo:inline>
for the font triplet specified by:
<font-triplet name="Arial" style="normal" weight="bold"/>
If you do not want to embed the font in the pdf document
then do not include the "embed-url" attribute.
The font will be needed where the document is viewed
for it to be displayed properly.
possible styles: normal | italic | oblique | backslant
possible weights: normal | bold | 100 | 200 | 300 | 400
| 500 | 600 | 700 | 800 | 900
(normal = 400, bold = 700)
-->
<font metrics-url="file:\Pfad\arial.xml" kerning="yes" embed-url="file:\Pfad\arial.ttf">
<font-triplet name="Arial" style="normal" weight="normal"/>
<font-triplet name="ArialMT" style="normal" weight="normal"/>
</font>
<font metrics-url="file:\Pfad\arialbd.xml" kerning="yes" embed-url="file:\Pfad\arialbd.ttf">
<font-triplet name="Arial" style="normal" weight="bold"/>
<font-triplet name="ArialMT" style="normal" weight="normal"/>
</font>
<!--
<font metrics-url="arialb.xml" kerning="yes" embed-url="arialb.ttf">
<font-triplet name="Arial" style="normal" weight="bold"/>
<font-triplet name="ArialMT" style="normal" weight="bold"/>
</font>
-->
</fonts>
innerhalb des Tags <fonts></fonts> muss ich nun einen Text hinzufügen.
Wie mach ich das am geschicktesten?
Schonmal Dank im Vorraus
Gruß
Please also mark the comments that contributed to the solution of the article
Content-Key: 117000
Url: https://administrator.de/contentid/117000
Printed on: April 20, 2024 at 01:04 o'clock
2 Comments
Latest comment
Zitat von @brain2312:
innerhalb des Tags <fonts></fonts> muss ich nun einen Text hinzufügen.
Wie mach ich das am geschicktesten?
innerhalb des Tags <fonts></fonts> muss ich nun einen Text hinzufügen.
Wie mach ich das am geschicktesten?
Entweder mit einem HTML-Editor oder im einfachsten Fall mit Notepad.