pdf2xml.dtd 1022 Bytes
Newer Older
1
<?xml version="1.0" encoding="UTF-8"?>
2
<!ELEMENT pdf2xml (page+, outline?)>
3 4 5 6
<!ATTLIST pdf2xml
	producer CDATA #REQUIRED
	version CDATA #REQUIRED
>
7
<!ELEMENT page (fontspec*, image*, text*)>
8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
<!ATTLIST page
	number CDATA #REQUIRED
	position CDATA #REQUIRED
	top CDATA #REQUIRED
	left CDATA #REQUIRED
	height CDATA #REQUIRED
	width CDATA #REQUIRED
>
<!ELEMENT fontspec EMPTY>
<!ATTLIST fontspec
	id CDATA #REQUIRED
	size CDATA #REQUIRED
	family CDATA #REQUIRED
	color CDATA #REQUIRED
>
23
<!ELEMENT text (#PCDATA | b | i | a)*>
24 25 26 27 28 29 30
<!ATTLIST text
	top CDATA #REQUIRED
	left CDATA #REQUIRED
	width CDATA #REQUIRED
	height CDATA #REQUIRED
	font CDATA #REQUIRED
>
31 32 33 34 35 36 37 38 39 40 41 42 43 44
<!ELEMENT b (#PCDATA | i)*>
<!ELEMENT i (#PCDATA | b)*>
<!ELEMENT a (#PCDATA)>
<!ATTLIST a
    href CDATA #REQUIRED
>
<!ELEMENT image EMPTY>
<!ATTLIST image
	top CDATA #REQUIRED
	left CDATA #REQUIRED
	width CDATA #REQUIRED
	height CDATA #REQUIRED
	src CDATA #REQUIRED
>
45 46 47 48 49
<!ELEMENT outline (item | outline)*>
<!ELEMENT item (#PCDATA)>
<!ATTLIST item
	page CDATA #IMPLIED
>