xml-xsl-fo-pdf
no way to compare when less than two revisions
Rozdíly
Zde můžete vidět rozdíly mezi vybranou verzí a aktuální verzí dané stránky.
Předchozí verzeNásledující verze | |||
— | xml-xsl-fo-pdf [2013/08/26 17:20] – [Instalace] blazek | ||
---|---|---|---|
Řádek 1: | Řádek 1: | ||
+ | ====== XML+XSL-FO+PDF ====== | ||
+ | ===== FOP ===== | ||
+ | |||
+ | http:// | ||
+ | |||
+ | |||
+ | |||
+ | ==== Čeština ==== | ||
+ | |||
+ | Zdroj: http:// | ||
+ | |||
+ | Do **fop-1.1/ | ||
+ | |||
+ | __Podopora dělení slov__ | ||
+ | |||
+ | http:// | ||
+ | |||
+ | **fop-hyph.jar** vložit do **fop-1.1/ | ||
+ | |||
+ | __České TTF fonty__ | ||
+ | |||
+ | http:// | ||
+ | |||
+ | ==== Instalace ==== | ||
+ | |||
+ | **Stažení a rozbalení FOP** | ||
+ | |||
+ | < | ||
+ | shell# mkdir fop; cd fop | ||
+ | shell# wget -c -t 0 ftp:// | ||
+ | shell# tar xvzf fop-1.1-bin.tar.gz | ||
+ | </ | ||
+ | |||
+ | **Dělení českých slov** | ||
+ | |||
+ | Stáhnout: http:// | ||
+ | |||
+ | < | ||
+ | shell# unzip offo-hyphenation-binary_v2.0.zip | ||
+ | shell# cp ./ | ||
+ | </ | ||
+ | |||
+ | **Stažení TTF fontů** | ||
+ | |||
+ | < | ||
+ | shell# mkdir fonts-cab | ||
+ | </ | ||
+ | |||
+ | Stáhnout: http:// | ||
+ | |||
+ | * andale32.exe | ||
+ | * arialb32.exe | ||
+ | * arial32.exe | ||
+ | * comic32.exe | ||
+ | * courie32.exe | ||
+ | * georgi32.exe | ||
+ | * impact32.exe | ||
+ | * times32.exe | ||
+ | * trebuc32.exe | ||
+ | * verdan32.exe | ||
+ | * webdin32.exe | ||
+ | |||
+ | **Extrahování TTF fontů z CAB** | ||
+ | |||
+ | < | ||
+ | shell# yum install cabextract.x86_64 | ||
+ | shell# cabextract ./ | ||
+ | shell# mkdir fonts | ||
+ | shell# cp ./ | ||
+ | </ | ||
+ | |||
+ | **Vytvoření metric pro TTF fonty** | ||
+ | |||
+ | http:// | ||
+ | |||
+ | <file bash create-ttf-metrics.sh> | ||
+ | #!/bin/bash | ||
+ | # | ||
+ | # Create TrueType Font Metrics | ||
+ | # | ||
+ | # Author: Jiří Blažek (blazek@isn.cz) | ||
+ | # | ||
+ | |||
+ | # FOP path | ||
+ | FOP_PATH=" | ||
+ | |||
+ | # True Type Fonts path | ||
+ | TTF_PATH=" | ||
+ | |||
+ | # extension from | ||
+ | EXT_FROM=" | ||
+ | |||
+ | # extension to | ||
+ | EXT_TO=" | ||
+ | |||
+ | # rename files from upper to lower | ||
+ | for TTF_FILE in $(ls $TTF_PATH/ | ||
+ | mv $TTF_FILE $(echo $TTF_FILE | tr ' | ||
+ | done | ||
+ | |||
+ | # Create TrueType Font Metrics | ||
+ | for TTF_FILE in $(ls $TTF_PATH/ | ||
+ | XML_FILE=$(echo $TTF_FILE | sed " | ||
+ | |||
+ | java -cp $FOP_PATH/ | ||
+ | done | ||
+ | </ | ||
+ | |||
+ | < | ||
+ | shell# chmod 755 create-ttf-metrics.sh | ||
+ | shell# ./ | ||
+ | </ | ||
+ | |||
+ | **Přesun fontů do FOP** | ||
+ | |||
+ | < | ||
+ | shell# mv fonts fop-1.1 | ||
+ | </ | ||
+ | |||
+ | **Konfigurace fop.xconf** | ||
+ | |||
+ | http:// | ||
+ | |||
+ | <file xml ./ | ||
+ | < | ||
+ | ... | ||
+ | < | ||
+ | <font metrics-file=" | ||
+ | < | ||
+ | < | ||
+ | </ | ||
+ | <font metrics-file=" | ||
+ | < | ||
+ | < | ||
+ | </ | ||
+ | <font metrics-file=" | ||
+ | < | ||
+ | < | ||
+ | </ | ||
+ | <font metrics-file=" | ||
+ | < | ||
+ | < | ||
+ | </ | ||
+ | < | ||
+ | </ | ||
+ | </ | ||
+ | ==== Spuštění ==== | ||
+ | |||
+ | < | ||
+ | shell# ./ | ||
+ | </ |
xml-xsl-fo-pdf.txt · Poslední úprava: 2023/12/26 19:13 autor: 127.0.0.1