Html to pdf conversion using dompdf


I am using dompdf to convert web page to pdf file. While generating pdf, the entire page along with header and footer is generated. How can I generate pdf only with the content of the page without header and footer


If dompdf renders the CSS, just set it do display:none before conversion. Otherwise load the HTML and use an HTML-parser to skip out the sections, then convert.


thank you.Let me try it

closed #5

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.