-
Generate PDF from ExtJS app
Generate PDF from ExtJS app
Hello,
i have a grid where, for every row, i want to generate a PDF on the fly.
Actually i have defined the column as follows:
{
text : 'Download PDF',
width : 175,
dataIndex: 'id',
renderer: function(value, metaData, record, rowIndex, colIndex, store) {
return "<a target='_blank' " +
"href='php/pdf_label.php?fp="+record.data.id+"' />PDF</a>";
}
}
It runs, all the dirty work is made on the server side .... is it the right approach? Is there a better ExtJS-ish way to do it?
-
Sencha - Senior Forum Manager
As long as you have the headers correct in your PHP script it should be fine.
Sencha is used by over two million developers. Join the community, wherever you’d like that community to be
or Join Us