Table of Contents
- Getting Started
- EO.Pdf
- Overview
- Installation and Deployment
- Using HTML to PDF
- Using HTML to PDF
- Quick Start
- Setting Page Size and Margins
- Resizing Output
- Output Paging
- Web Page Authentication
- HTTP Post and Headers
- JavaScript in HTML
- Conversion Trigger
- Links in HTML
- Page Header and Footer
- Partial Page Conversion
- Repeating Table Header and Footer
- Merging Multiple HTML pages
- Generating Page Images
- Using with PDF Creator
- Creating Interactive Form Elements
- Working with Secure Pages
- Using HtmlToPdfSession object
- Troubleshooting HTML to PDF
- Debugging HTML to PDF
- Using PDF Creator
- Working with Existing PDF Files
- Using in Web Application
- Advanced Topics
- EO.Web
- EO.WebBrowser
- EO.Wpf
- Common Topics
- Reference
Quick Start |
HTML to PDF is very easy to use --- simply provide the page Url or HTML markup and the converter will do the rest. The following code converts Google's home page into a PDF file:
//Convert a Url to PDF file HtmlToPdf.ConvertUrl("http://www.google.com", "c:\\test.pdf");
The following code converts HTML markup into a PDF file:
//Convert HTML to PDF file HtmlToPdf.ConvertHtml("<b>Hello!</b>", "c:\\test.pdf");
You can also output to a System.IO.Stream instead of a file. This is especially useful when using in a Web application.