
If you would like to convert multiple PDFs to Excel, see our blog post on converting multiple PDFs with our API. See the choosing format section which explains how to specify It is also possible to convert your PDF to Excel using our API. If you are looking to extract tabular data from the PDF, try PDFTables for converting PDF to Excel or CSV. You have now saved a webpage to PDF format. Move to the folder you'd like to save it in then click 'Save'. Step 4Ĭlick 'Save' then a 'Save As' dialog box will appear. In other browsers the wording may differ slightly, just be sure to choose the option that ends with 'to PDF' or 'as PDF'.ĭo not use the 'Microsoft Print to PDF' option as this will save your PDF as an image rather than a searchable PDF. At the time of downloading web page content as a PDF file, it requires converting HTML to PDF. The PDF file format is the perfect choice to download text or HTML content in a file. Once the print dialog box shows up, change the 'Destination' to be 'Save as PDF' in order to save your webpage to a PDF. PDF is used to download a bunch of data or text content in the web application.

Right click anywhere on the page and select 'Print.', or use shortcut Ctrl + P (Windows)/ Command + P (Mac). It couldn't be easier to save a webpage as a PDF! We'll be showing you how to save a webpage as a PDF in Google Chrome, however you can convert web pages to PDF in most web browsers. PDF is a great format as it can be read on pretty much any device. The following line of jsPDF code instantiates and use the jsPDF object in JavaScript.There are many reasons to save a webpage as a PDF such as to gather and use information from a table of data or to read a page later when you will be offline. Here we create an HTML table with some design by CSS and also create a button where users can click and download the HTML page as PDF.Īlso Read: Export MySQL Data to Excel in PHP Using Ajax Instantiate jsPDF Class Create an HTML Content Div With CSSĭemo of how to convert and Download HTML page to PDF file with CSS, using JavaScript and jQuery. In the CDN link all the required functions are available. Note: You do not have to download the complete jsPDF package from the official website. Here we include jQuery and jsPDF library for using jsPDF class and jQuery for button click and get data from the div. Put a save as PDF link or button on any of your web pages and let your visitors download these pages as PDF with a single click. Create button click function to generate and download PDF from HTML.Include jQuery and jsPDF library by using their CDN link.

Video demonstration of the complete source code to download HTML page as PDF using JS is here, Steps to Download HTML Page as PDF Using JavaScript Here, In this tutorial, we will show you how to generate PDF from HTML page using JavaScript and jQuery and also save HTML page as PDF using JavaScript with live demo. Download HTML Page as PDF Using JavaScript
