Tool Request: xml2pdf
Hello
I love the Poppler tools. However, they only extract data from a PDF document. There are tools for
PDF --> text
PDF --> html
PDF --> xml
PDF --> PS
PDF --> PNG
All this is great. But a very important conversion is missing.
XML --> PDF
I suggest a new tool: xml2pdf which takes as input
-- an XML file
-- the required font files
-- the required image files
with an XML format like this:
<?xml version="1.0" encoding="utf-8"?>
<xml2pdf>
<meta>
<Author>Jim Beam</Author>
<Creator>Poppler 0.87</Creator>
<CreationDate>2020-01-05T12:45:12Z</CreationDate>
<ModDate>2020-01-08T18:12:47Z</ModDate>
.....
</meta>
<fonts>
<fontspec id="0" size="7" family="Arial,Bold" color="#000000" file="ArialBold.ttf" />
.....
</fonts>
<page number="1" position="absolute" top="0" left="0" height="792" width="612">
<image top="307" left="28.0" width="249.6" height="67.9" src="CopanyLogo.png" />
<text top="127.3" left="474.9" width="87.1" height="15.6" font="0"><b>User Manual</b></text>
.....
</page>
<outline>
<item page="3">Manual</item>
<item page="5">Introduction</item>
.....
</outline>
</xml2pdf>
putting ArialBold.ttf and CopanyLogo.png into the same folder as the XML file.