In this demo you can learn how to convert to PDF only the HTML element selected by a CSS selector. By default the CSS selector selects the DIV having the 'Content' ID from HTML document. You can modify the CSS selector to select another HTML element. For example, you can set #Header to convert to PDF only the header of the HTML document or #Footer to convert only the footer of the HTML document to PDF.
HTML Document URL
CSS Selector of the HTML Element to Convert