Sadik B
Well-known member
Hi
I have an API which creates PDF files from html. The way the API class works is that it has a function which accepts html code and outputs the pdf from the html. So far so good.
Now I want to use this API in xenforo. Under normal circumstances, in the controller of my addon I pass my viewparams to a template which I create in the Master Style. Now what I want is that I pass my viewparams to the template which has the html I need and then pass the rendered html (after all the template conditionals etc are processed) to my API class function so that I can get the pdf output.
So any pointers about how I may go about this...
Thanks...
I have an API which creates PDF files from html. The way the API class works is that it has a function which accepts html code and outputs the pdf from the html. So far so good.
Now I want to use this API in xenforo. Under normal circumstances, in the controller of my addon I pass my viewparams to a template which I create in the Master Style. Now what I want is that I pass my viewparams to the template which has the html I need and then pass the rendered html (after all the template conditionals etc are processed) to my API class function so that I can get the pdf output.
So any pointers about how I may go about this...
Thanks...