Convert HTML code to PDF document. Supports page size, orientation, and margin settings. Uses html2canvas and jsPDF for rendering.