summaryrefslogtreecommitdiff
path: root/utils
diff options
context:
space:
mode:
authorIhar Filipau <thephilips@gmail.com>2012-04-09 19:17:41 +0200
committerAlbert Astals Cid <aacid@kde.org>2012-04-09 19:17:41 +0200
commit1f45afde6410f03c79fcf4b66d5834079879d38f (patch)
tree85477de94dc515d7d79ec479dd9c4cd38d7b7d81 /utils
parentcef6ac0ebbf8451beaadb3ddb6c991bbb7239432 (diff)
Add producer and version to xml output
Diffstat (limited to 'utils')
-rw-r--r--utils/HtmlOutputDev.cc2
-rw-r--r--utils/pdf2xml.dtd4
2 files changed, 5 insertions, 1 deletions
diff --git a/utils/HtmlOutputDev.cc b/utils/HtmlOutputDev.cc
index 3d8836be..cc57c910 100644
--- a/utils/HtmlOutputDev.cc
+++ b/utils/HtmlOutputDev.cc
@@ -1192,7 +1192,7 @@ HtmlOutputDev::HtmlOutputDev(Catalog *catalogA, char *fileName, char *title,
{
fprintf(page, "<?xml version=\"1.0\" encoding=\"%s\"?>\n", htmlEncoding->getCString());
fputs("<!DOCTYPE pdf2xml SYSTEM \"pdf2xml.dtd\">\n\n", page);
- fputs("<pdf2xml>\n",page);
+ fprintf(page,"<pdf2xml producer=\"%s\" version=\"%s\">\n", PACKAGE_NAME, PACKAGE_VERSION);
}
else
{
diff --git a/utils/pdf2xml.dtd b/utils/pdf2xml.dtd
index 389676cd..bf7f14f6 100644
--- a/utils/pdf2xml.dtd
+++ b/utils/pdf2xml.dtd
@@ -1,5 +1,9 @@
<?xml version="1.0" encoding="UTF-8"?>
<!ELEMENT pdf2xml (page+, outline?)>
+<!ATTLIST pdf2xml
+ producer CDATA #REQUIRED
+ version CDATA #REQUIRED
+>
<!ELEMENT page (fontspec*, image*, text*)>
<!ATTLIST page
number CDATA #REQUIRED