php - convert particular portion div to pdf -
i have order form users place orders , after placing orders, invoice generated jquery asked print. want able take div contains invoice on page submit engine or convert pdf, table structured order print out. , how create portion available when printing printout contains order invoice , hides other potions of page. pseudocode:
function make_pdf($html){ // run thought submitred html // create pdf version // create available download. }
you need sort of pdf generator run server side post necessary info to. there few mutual pdf generator libraries out there, not sure of capabilities. check out post:
php pdf generator advice
the easiest thing find 1 supports html pdf conversion , post html markup straight server via ajax etc. otherwise without conversion, have pass raw info form , template pdf server side, while inserting info in relative placeholders. output pdf client right headers allowing user download file.
eg: header('content-type: application/pdf');
php html css pdf
No comments:
Post a Comment