README 1.82 KB
Newer Older
Arthur Crepin-Leblond's avatar
Arthur Crepin-Leblond committed
1
xml_transform
Arthur Crepin-Leblond's avatar
Arthur Crepin-Leblond committed
2
3
OPTIONS:

Arthur Crepin-Leblond's avatar
Arthur Crepin-Leblond committed
4
HTML output:
5
6
7
     --html input.xml image output.html			Creates HTML file, images are embedded inside in base 64 format.
     --html-base64 input.xml output.html		Same as --html but input is a XML file with images encoded in base 64 inside.
     --html-full input.xml image output_dir		Creates HTML file without converting images in base 64. Images + HTML file are placed in output_dir.
Arthur Crepin-Leblond's avatar
Arthur Crepin-Leblond committed
8

Arthur Crepin-Leblond's avatar
Arthur Crepin-Leblond committed
9
PDF output:
10
11
    --pdf input.xml image output.pdf			Creates PDF file, images are embedded inside in base 64 format.
    --pdf-base64 input.xml output.pdf			Same as --pdf but input is a XML file with images encoded in base 64 inside.
Arthur Crepin-Leblond's avatar
Arthur Crepin-Leblond committed
12

13
14
15
SVG output (experimental, may not work with all files):
    --svg input.xml image output.svg			Creates SVG file, images are embedded inside in base 64 format.
    --svg-base64 input.xml output.svg			Same as --svg but input is a XML file with images encoded in base 64 inside.
16
17

OpenDocument output:
18
	     --oo-doc input.xml image output.odt	Creates Open Document Writer (odt) file.
19

Arthur Crepin-Leblond's avatar
Arthur Crepin-Leblond committed
20
Base 64 operations:
21
     --to-base64 input.xml image output.xml		Creates a container XML file. It will contain regions which are cropped and converted in base 64.
Arthur Crepin-Leblond's avatar
Arthur Crepin-Leblond committed
22
     --to-base64-no-crop input.xml image output.xml	Same as --to-base64 but only the full picture will be converted, regions are not cropped
23
     --from-base64 input.xml output_dir			Decodes a XML file which has been encoded in base 64, regions will be converted into png files and saved in output_dir.
Arthur Crepin-Leblond's avatar
Arthur Crepin-Leblond committed
24

Arthur Crepin-Leblond's avatar
Arthur Crepin-Leblond committed
25
26
27
28
Requirements:
PDF : fop >= 0.95
HTML : xsltproc
SVG : trunk version of fop
29
OpenDocument : ooconvert (included)
Arthur Crepin-Leblond's avatar
Arthur Crepin-Leblond committed
30
31
32

BUILD:

33
34
35
36
37
Chnage the environment variable QMAKE_CXXFLAGS in xml_transfrom.pro then

mkdir _build
cd _build
qmake ../xml_transfrom.pro
Arthur Crepin-Leblond's avatar
Arthur Crepin-Leblond committed
38
39
40
41
42
make

/!\ IMPORTANT NOTE /!\

xml_transfrom uses a templates directory, binary and this folder should be in the same place.