WordPress Plugin Generating PDF and Xls Documents

I’m writing a web application for a client that needs to be packaged in a wordpress plugin. The application is built on top of a soap api that returns an array of results that I need to output to a pdf and/or excel document. I’m using two third party libraries to generate the pdf and excel files (tcpdf and phpexcel), but WordPress won’t allow them to modify the header from inside of the plugin to return different types of content. Does anyone know how I can generate and return a pdf/excel document from inside of a WordPress plugin?

Related posts

Leave a Reply

1 comment