Commit 1f45afde authored by Ihar Filipau's avatar Ihar Filipau Committed by Albert Astals Cid

Add producer and version to xml output

parent cef6ac0e
......@@ -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
{
......
<?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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment