I am not quite sure how to pose this question right, so I will try to describe the solution I am looking for, and I then hope someone can help me frame the question / solution in the right way.
I have a pdf looking like this: http://thomasabcd.site44.com/topdf/279928-triangle.pdf which is based on an indesign-file.
I would like to change the text and QR-code based on data in my database and output a new pdf for printing without having to manually edit the original indesign-file. I have the original layout in indesign (which can be found here http://thomasabcd.site44.com/topdf/279928-triangle.indd), and my thought was to export it to HTML, which would then allow me to replace the text and QR-code and then generate the HTML-file as a pdf. But this doesn't seem to work, as the HTML outputted from indesign doesn't seem to be pixel perfect and the dimensions don't look right and also the resulting html looks blurred. So I don't know whether I am going down the wrong path by converting the indesign-file to html and then to pdf, or whether I should do something completely different.
So I guess the core of my question is how I best generate a pdf based on my indesign-file.
thanks
Thomas