Possible Duplicate:
How can I produce a PDF file using data in an XML file, in Perl?
I have xml tags that stored in a hash as shown below.
$var1={
'stud.xml'={
'24'=>'<address>
<streetname="xxxx"/>
<housenum="138"/">
</address>'
'20'=>'<address>
<streetname="xxxx"/>
<housenum="110"/">
</address>'
}...........
now I need to convert into pdf by using perl script. I searched and I found PDF::API2 is best module to convert into pdf. After reading module I am able to create new pdf file and set some settings like font, format,like….but I can’t understand how to process this xml data into pdf.
Create a LaTeX template, populate the template using the data, and then run
pdflatexon it.Note that the XMLish thing you posted is not helpful. Either post the actual XML or the Perl data structure.
Here is an example: