- Welcome to SelectPdf Html To Pdf Converter for .NET — Free Community Edition
- Saved searches
- Use saved searches to filter your results more quickly
- selectpdf/selectpdf-free-html-to-pdf-converter
- Name already in use
- Sign In Required
- Launching GitHub Desktop
- Launching GitHub Desktop
- Launching Xcode
- Launching Visual Studio Code
- Latest commit
- Git stats
- Files
- README.md
- About
- SelectPdf Html To Pdf Converter for .NET – Community Edition
- FREE HTML TO PDF FOR .NET
- BEST SAMPLES AND DOCUMENTATION
- VERY EASY TO USE
- Free HTML to PDF .NET and C# Library for ASP.NET MVC
- Free HTML to PDF Converter for .NET Features
- C# Code Sample for ASP.NET
Welcome to SelectPdf Html To Pdf Converter for .NET — Free Community Edition
SelectPdf Html To Pdf Converter for .NET — Free Community Edition is a subset of SelectPdf Library for .NET. The Community Edition is available FREE OF CHARGE for personal and commercial purposes.
The current documentation is explicitly for SelectPdf Community Edition users. The full documentation for Select.Pdf for .NET Professional is available online or in the specific product archive that can be downloaded from https://selectpdf.com.
SelectPdf for .NET is a professional PDF library that can be used for creating, writing, editing, handling and reading PDF files without any external dependencies within .NET applications. Using this .NET PDF library, you can implement rich capabilities to create PDF files from scratch or process existing PDF documents entirely through C#/VB.NET without installing Adobe Acrobat.
SelectPdf Html To Pdf Converter for .NET — Community Edition can be used to generate pdf documents from any web page or html string. The main limitation of the free version is related to the number of pages of the generated pdf document. The Community Edition allows the generation of pdf documents up to 5 pages.
SelectPdf Html To Pdf Converter provides versions for .NET Framework and .NET Core 2.0 and above (through .NET Standard 2.0). SelectPdf Html To Pdf Converter works on Azure cloud, including Azure Web Apps (Basic plan or above) with some limitations. More details here: Deployment to Microsoft Azure.
Note: SelectPdf currently works only on Windows systems. There is no support for Linux, Xamarin or other platforms.
Sample Code
Coding with SelectPdf Html To Pdf Converter is very easy. Take a look at the section below:
// instantiate a html to pdf converter object HtmlToPdf converter = new HtmlToPdf(); // create a new pdf document converting an url PdfDocument doc = converter.ConvertUrl(TxtUrl.Text); // save pdf document doc.Save(Response, false, "Sample.pdf"); // close pdf document doc.Close();
' instantiate a html to pdf converter object Dim converter As New HtmlToPdf() ' create a new pdf document converting an url Dim doc As PdfDocument = converter.ConvertUrl(TxtUrl.Text) ' save pdf document doc.Save(Response, False, "Sample.pdf") ' close pdf document doc.Close()
Features that are not part of the Community Edition
The Community Edition of SelectPdf IS NOT THE FREE TRIAL for SelectPdf Commercial Library. The Community Edition is a FREE product with limited functionality. If you want to try the full featured SelectPdf Library, download a free trial version from here: http://selectpdf.com/pdf-library-for-net/.
The following features are not part of the free community edition. To use any of these features you need the full commercial SelectPdf Library for .NET:
- Create PDF documents with more than 5 pages
- Convert only a certain section of the page, specified by the html element ID.
- Manually start the conversion to PDF from javascript.
- Specify a JS startup script that will run before the conversion.
- Hide parts of the web page during the html to pdf conversion.
- Load and modify existing PDF documents.
- Add additional HTML, text, images to PDF (using PdfHtmlElement, PdfTextElement, PdfImageElement objects).
- Get web elements location in PDF.
- Specify the open action of the PDF document (jump to page, run script).
- Custom headers and footers on specific PDF pages.
- Form fields filling.
- PDF portfolios management.
- Resize/scale content of existing PDF documents.
- Extract text from PDF (PDF to Text converter).
- Search for text in PDF.
- Convert PDF pages to images (PDF to Image converter).
See Also
Saved searches
Use saved searches to filter your results more quickly
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session.
Free Html To Pdf Converter for .NET. Asp.Net, C# sample.
selectpdf/selectpdf-free-html-to-pdf-converter
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Name already in use
A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Sign In Required
Please sign in to use Codespaces.
Launching GitHub Desktop
If nothing happens, download GitHub Desktop and try again.
Launching GitHub Desktop
If nothing happens, download GitHub Desktop and try again.
Launching Xcode
If nothing happens, download Xcode and try again.
Launching Visual Studio Code
Your codespace will open once ready.
There was a problem preparing your codespace, please try again.
Latest commit
Git stats
Files
Failed to load latest commit information.
README.md
Welcome to SelectPdf Html To Pdf Converter for .NET — Free Community Edition
Select.Pdf offers a Community Edition (FREE) of the powerful Html To Pdf Converter for .NET that can be found in the full featured pdf library SelectPdf for .NET. The free html to pdf converter offers most of the features the professional sdk offers, the most notable limitation is that it can only generate pdf documents up to 5 pages long.
The community edition contains ready to use samples, coded in C# and VB.NET for Windows Forms and ASP.NET. Select.Pdf Html To Pdf Converter for .NET works on any Windows OS and on Windows Azure.
Html to Pdf Converter For .NET — Community Edition Features
- Generate pdf documents up to 5 pages
- Convert any web page to pdf
- Convert any raw html string to pdf
- Set pdf page settings (page size, page orientation, page margins)
- Resize content during conversion to fit the pdf page
- Set pdf document properties
- Set pdf viewer preferences
- Set pdf security (passwords, permissions)
- Set conversion delay and web page navigation timeout
- Custom headers and footers
- Support for html in headers and footers
- Automatic and manual page breaks
- Repeat html table headers on each page
- Support for @media types screen and print
- Support for internal and external links
- Generate bookmarks automatically based on html elements
- Support for HTTP headers
- Support for HTTP cookies
- Support for web pages that require authentication
- Support for proxy servers
- Enable/disable javascript
- Modify color space
- Multithreading support
- HTML5/CSS3 support
- Web fonts support
About
Free Html To Pdf Converter for .NET. Asp.Net, C# sample.
SelectPdf Html To Pdf Converter for .NET – Community Edition
SelectPdf offers a Community Edition (FREE) of the powerful Html To Pdf Converter for .NET that can be found in the full featured pdf library Select.Pdf for .NET. The free html to pdf converter offers most of the features the professional sdk offers, the only notable limitation is that it can only generate pdf documents up to 5 pages long. SelectPdf Html To Pdf Converter provides versions for .NET Framework and .NET Core 2.0 and above (through .NET Standard 2.0). SelectPdf only works on Windows. SelectPdf works on Azure cloud, including Azure Web Apps (Basic plan or above) with some limitations.
FREE HTML TO PDF FOR .NET
- Convert any url or html file to pdf
- Convert any raw html code to pdf
- No external dependencies
- Powerful Javascript engine
- HTML5/CSS3 support
- Customizable headers and footers
BEST SAMPLES AND DOCUMENTATION
The community edition contains ready to use samples, coded in C# and VB.NET for Windows Forms and ASP.NET.
Select.Pdf Html To Pdf Converter for .NET works on any Windows OS and on Windows Azure.
VERY EASY TO USE
Converting from html to pdf with Select.Pdf is very easy. Take a look at the following code sample:
Free HTML to PDF .NET and C# Library for ASP.NET MVC
The Free HTML to PDF Converter for .NET from HiQPdf Software is a fast method to easily create richly-formatted PDF documents directly from HTML pages or HTML strings. The majority of the websites are already able to produce reports or to present various results in HTML pages but while the HTML content is simple to generate, edit and display it is not suitable for printing or for transmission by email. The Free HTML to PDF Converter for .NET can accurately convert HTML pages to PDF documents in your ASP.NET websites and .NET desktop applications. Free HTML to PDF Converter Library for .NET is the limited free version of the fully featured HiQPdf HTML to PDF Library for .NET from HiQPdf Software. With Free HTML to PDF Converter Library for .NET you can create maximum 3 PDF pages of high quality content for free. If you want to create larger unlimited PDF documents or you if you need advanced features like live URLs, internal links, outlines, table of contents, headers and footers, PDF forms, edit, merge and split PDF documents, extract text and images from PDF or PDF pages rasterization you can use the full version of the software.
Free HTML to PDF Converter for .NET Features
- Convert HTML and HTML5 Documents and Web Pages to PDF
- Convert URLs and HTML Strings to PDF Files or Memory Buffers
- Set the PDF Page Size and Orientation
- Fit HTML Content in PDF Page Size
- Advanced Support for Web Fonts in .WOFF and .TTF Formats
- Advanced Support for Scalar Vector Graphics (SVG)
- Advanced Support for HTML5 and CSS3
- Delayed Conversion Triggering Mode
- Control PDF page breaks with page-break CSS attributes in HTML
- Repeat HTML Table Header and Footer on Each PDF Page
- Packaged and Delivered as a Zip Archive
- No External Dependencies
- Direct Copy Deployment Supported
- ASP.NET and Windows Forms Samples, Complete Documentation
- Supported on All Windows Versions
- Create for Free Maximum 3 Pages of High Quality PDF Content
C# Code Sample for ASP.NET
This sample shows how easy you can create the PDF documents from existing HTML pages or HTML strings. The HTML page containing HTML5 code, CSS3, JavaScript or SVG. With just a few lines of code you can get richly formatted PDF document. In this example you can see how to set simple parameters like the PDF page size, orientation and margins, convert the HTML code or URL to PDF and download the resulted PDF in a browser as attachment or inline.
// create the HTML to PDF converterHtmlToPdf htmlToPdfConverter = new HtmlToPdf();// set PDF page size and orientationhtmlToPdfConverter.Document.PageSize = GetSelectedPageSize();htmlToPdfConverter.Document.PageOrientation = GetSelectedPageOrientation();// set PDF page marginshtmlToPdfConverter.Document.Margins = new PdfMargins(0);// convert HTML to PDFbyte[] pdfBuffer = null;if (radioButtonConvertUrl.Checked)< // convert URL to a PDF memory buffer string url = textBoxUrl.Text; pdfBuffer = htmlToPdfConverter.ConvertUrlToMemory(url);>else< // convert HTML code string htmlCode = textBoxHtmlCode.Text; string baseUrl = textBoxBaseUrl.Text; // convert HTML code to a PDF memory buffer pdfBuffer = htmlToPdfConverter.ConvertHtmlToMemory(htmlCode, baseUrl);>// inform the browser about the binary data formatHttpContext.Current.Response.AddHeader("Content-Type", "application/pdf");// set how to open the PDF document, attachment or inline, and the file nameHttpContext.Current.Response.AddHeader("Content-Disposition", String.Format("; filename=HtmlToPdf.pdf; size=", checkBoxOpenInline.Checked ? "inline" : "attachment", pdfBuffer.Length.ToString()));// write the PDF buffer to HTTP responseHttpContext.Current.Response.BinaryWrite(pdfBuffer);// call End() method of HTTP response to stop ASP.NET page processingHttpContext.Current.Response.End();