Welcome to HiQPdf Demo
HTML to PDF
HTML to PDF Converter Demo
Merge Multiple HTML to PDF
Convert Multiple HTML Pages to PDF in Parallel
Add HTML in PDF Header and Footer
Add Header and Footer using Browser
Add Header and Footer on Merged PDF
Select HTML Elements to Convert to PDF
Select HTML Elements to Exclude from PDF
Retrieve HTML Element Positions in PDF
Add HTML Stamp to Generated PDF
Repeat HTML Table Header and Footer
Control PDF Page Breaks with CSS
Auto Create Outlines and Links
Auto Create Table of Contents
Auto Create Tagged PDF
Set Conversion Triggering Mode
Select Media Type for Rendering
Web Fonts Advanced Support
Convert Current View with Form Data
Convert Another View with Form Data
PDF Viewer Settings
PDF Security Settings
PDF Digital Signatures
Set HTTP Headers Demo
Set HTTP Cookies Demo
GET and POST Requests Demo
HTML to Image
Convert HTML to Image
Select HTML Elements to Convert to Image
Select HTML Elements to Exclude from Image
PDF Creator
Create PDF Documents
PDF Editor
Add HTML Stamp to Existing PDF
Word to PDF
Convert Word DOCX to PDF
Excel to PDF
Convert Excel XLSX to PDF
RTF to PDF
Convert RTF to PDF
Markdown to PDF
Convert Markdown to PDF
PDF to Text
Convert PDF to Text
Find PDF Text
Find and Highlight Text in PDF
PDF to Image
Convert PDF to Image
Extract PDF Images
Extract Images from PDF
Getting Started with Markdown to PDF Converter
The Markdown to PDF Converter component of the library allows you to convert Markdown documents to PDF. You can set PDF page size, orientation and margins of the generated PDF document. Additionally, you can add HTML headers and footers with page numbering to the generated PDF file or generate a table of contents based on headings.
You can either enter a Markdown file URL (which can also be a local URL using the file:// prefix when running the demo on your machine), or enter a Markdown string.
Convert URL or Local File
Convert Markdown String
Enter Markdown File URL
Enter Markdown String to Convert
# HiQPdf Next PDF Library for .NET (Multi-platform) [](https://www.hiqpdf.com/hiqpdf-next-dotnet) [HiQPdf Next for .NET](https://www.hiqpdf.com/hiqpdf-next-dotnet) | [HiQPdf Next HTML to PDF for .NET](https://www.hiqpdf.com/hiqpdf-next-html-to-pdf-dotnet) | [HiQPdf Software](https://www.hiqpdf.com) | [Free Trial](https://www.hiqpdf.com/downloads) | [Licensing](https://www.hiqpdf.com/purchase) | [Support](https://www.hiqpdf.com/contact) ## Overview HiQPdf Next for .NET can be integrated into your applications to create, edit and merge PDF documents, convert HTML to PDF or images, convert Word, Excel, RTF and Markdown to PDF, extract text and images from PDFs, search text in PDFs and convert PDF pages to images. The library targets .NET Standard 2.0 and can be used in .NET Core and .NET Framework applications deployed on Windows and Linux platforms, including Azure App Service, Azure Functions and Docker. ## Package structure HiQPdf Next for .NET has a modular architecture, with separate NuGet packages for each major component to prevent unnecessary files from being included in your applications. This package is a multi-platform metapackage that references both the Windows x64 and Linux x64 HiQPdf Next runtimes. It is ideal when developing on one operating system and deploying to multiple runtime environments. If you need a single platform package, use [HiQPdf.Next.Windows](https://www.nuget.org/packages/HiQPdf.Next.Windows) or [HiQPdf.Next.Linux](https://www.nuget.org/packages/HiQPdf.Next.Linux) . ## Compatibility The compatibility list of this multi-platform metapackage package includes the following platforms: * Windows 10, 11 and Windows Server 2016 to 2025 * Linux x64 distributions * .NET 10.0, 9.0, 8.0, 7.0, 6.0 and .NET Standard 2.0 * .NET Framework 4.6.2 to 4.8.1 * Azure App Service and Azure Functions * Virtual Machines * Docker containers * Web, Console and Desktop applications ## Main Features * Create, edit and merge PDF documents * Apply HTML stamps, headers and footers to PDFs * Generate password-protected and digitally signed PDFs * Convert HTML with CSS, web fonts and JavaScript to PDF * Convert HTML to JPEG, PNG and WebP images * Convert SVG to PDF * Convert Word DOCX to PDF * Convert Excel XLSX to PDF * Convert RTF to PDF * Convert Markdown to PDF * Convert PDF to text * Search text in PDF documents * Convert PDF pages to images * Extract images from PDF pages ## Installation On Windows platforms, the runtime generally does not require the installation of additional dependencies. On Linux platforms, the HTML to PDF, Word to PDF, Excel to PDF, RTF to PDF and Markdown to PDF converter components may require the installation of additional system dependencies, depending on the Linux distribution and version used. Detailed instructions for installing Linux dependencies are available in the online documentation, in the Getting Started and Publish guides. The other components of the HiQPdf Next library generally do not require the installation of additional dependencies. Install the package using your preferred NuGet package manager. ## Related packages ### Full library metapackages * **HiQPdf.Next** (Multi-platform) [https://www.nuget.org/packages/HiQPdf.Next](https://www.nuget.org/packages/HiQPdf.Next) * **HiQPdf.Next.Windows** (Windows x64) [https://www.nuget.org/packages/HiQPdf.Next.Windows](https://www.nuget.org/packages/HiQPdf.Next.Windows) * **HiQPdf.Next.Linux** (Linux x64) [https://www.nuget.org/packages/HiQPdf.Next.Linux](https://www.nuget.org/packages/HiQPdf.Next.Linux) ### Other HiQPdf.Next component packages * **Core PDF API** (create, edit, merge and secure PDF documents) [https://www.nuget.org/packages/HiQPdf.Next.Core](https://www.nuget.org/packages/HiQPdf.Next.Core) * **HTML to PDF** [https://www.nuget.org/packages/HiQPdf.Next.HtmlToPdf](https://www.nuget.org/packages/HiQPdf.Next.HtmlToPdf) * **Word to PDF** [https://www.nuget.org/packages/HiQPdf.Next.WordToPdf](https://www.nuget.org/packages/HiQPdf.Next.WordToPdf) * **Excel to PDF** [https://www.nuget.org/packages/HiQPdf.Next.ExcelToPdf](https://www.nuget.org/packages/HiQPdf.Next.ExcelToPdf) * **RTF to PDF** [https://www.nuget.org/packages/HiQPdf.Next.RtfToPdf](https://www.nuget.org/packages/HiQPdf.Next.RtfToPdf) * **Markdown to PDF** [https://www.nuget.org/packages/HiQPdf.Next.MarkdownToPdf](https://www.nuget.org/packages/HiQPdf.Next.MarkdownToPdf) * **PDF Processor** (PDF to text, PDF to images, extract images) [https://www.nuget.org/packages/HiQPdf.Next.PdfProcessor](https://www.nuget.org/packages/HiQPdf.Next.PdfProcessor) ## HiQPdf.Next namespace All components of the HiQPdf Next for .NET library share the same namespace **HiQPdf.Next** and can be used together in the same application. To use the library in your own code, add the following using directive at the top of your C# source file: ```csharp using HiQPdf.Next; ``` ## Getting Started For documentation and code samples, please visit: [https://www.hiqpdf.com/hiqpdf-next-dotnet](https://www.hiqpdf.com/hiqpdf-next-dotnet) You can copy the C# code lines from the section below to create a PDF document from a web page or from an HTML string and save the resulting PDF to a memory buffer for further processing, to a PDF file or send it to the browser for download in ASP.NET applications. ### C# Code Samples To convert a HTML string or an URL to a PDF file you can use the C# code below. ```csharp // Create the HTML to PDF converter object HtmlToPdf converter = new HtmlToPdf(); // Convert the HTML code to a PDF file converter.ConvertHtmlToFile("<b>Hello World</b> from HiQPdf !", null, "html_to_file.pdf"); // Convert the HTML page from URL to a PDF file string urlToConvert = "http://www.hiqpdf.com"; converter.ConvertUrlToFile(urlToConvert, "url_to_file.pdf"); ``` To convert a HTML string or an URL to a PDF document in a memory buffer and then save it to a file you can use the C# code below. ```csharp // Create the HTML to PDF converter object HtmlToPdf converter = new HtmlToPdf(); // Convert the HTML code to memory byte[] htmlToPdfData = converter.ConvertHtmlToMemory("<b>Hello World</b> from HiQPdf !", null); // Save the PDF data to a file System.IO.File.WriteAllBytes("html_to_memory.pdf", htmlToPdfData); // Convert the HTML page from URL to memory string urlToConvert = "http://www.hiqpdf.com"; byte[] urlToPdfData = converter.ConvertUrlToMemory(urlToConvert); // Save the PDF data to a file System.IO.File.WriteAllBytes("url_to_memory.pdf", urlToPdfData); ``` To convert in your ASP.NET Core applications a HTML string or an URL to a PDF document in a memory buffer and then send it for download to browser you can use the C# code below. ```csharp // Create the HTML to PDF converter object HtmlToPdf converter = new HtmlToPdf(); // Convert the HTML code to memory byte[] htmlToPdfData = converter.ConvertHtmlToMemory("<b>Hello World</b> from HiQPdf !", null); FileResult fileResult = new FileContentResult(htmlToPdfData, "application/pdf"); fileResult.FileDownloadName = "html_to_pdf.pdf"; return fileResult; ``` ## Free Trial You can download the HiQPdf Next for .NET evaluation package from [HiQPDF Downloads](https://www.hiqpdf.com/downloads) page of the website. The evaluation package contains a demo ASP.NET application with full C# code for all features of the library. You can evaluate the library for free as long as it is needed to ensure that the solution fits your application needs. ## Licensing The HiQPdf Software licenses are perpetual which means they never expire for a version of the product and include free maintenance for the first year. You can find [more details about licensing](https://www.hiqpdf.com/purchase) on the website. ## Support For technical and sales questions or for general inquiries about our software and company you can contact us using the email addresses from the [contact page](https://www.hiqpdf.com/contact) of the website.
Base URL
Markdown Stylesheet
body { font-family: "Segoe UI", "Liberation Sans", "DejaVu Sans", Arial, sans-serif; font-size: 12pt; line-height: 1.6; } h1 { font-size: 24pt; color: #0b57d0; } h2 { font-size: 18pt; color: #444; } h3 { font-size: 16pt; color: #444; } h4 { font-size: 14pt; color: #444; } h5 { font-size: 12pt; color: #444; } p { margin: 0.8em 0; } a { color: #0b57d0; text-decoration: none; }
PDF Page Options
Size:
A0
A1
A2
A3
A4
A5
A6
A7
A8
A9
A10
B0
B1
B2
B3
B4
B5
ArchA
ArchB
ArchC
ArchD
ArchE
Flsa
HalfLetter
Ledger
Legal
Letter
Letter11x17
Note
Orientation:
Portrait
Landscape
Zoom:
%
Margins:
Left:
pt
Right:
pt
Top:
pt
Bottom:
pt
PDF Table of Contents
Generate Table of Contents
Header and Footer Options
Add Header
Add Footer
HTML Header Options
Header URL
Header HTML String
Header HTML
<!DOCTYPE html> <html> <head> <title>Header HTML with Page Numbers</title> </head> <body style="font-family: 'Times New Roman'; font-size: 16px"> <table style="width: 100%"> <tr> <td style=" font-size:18px; font-weight: bold; color: navy">Header HTML with Page Numbers</td> <td rowspan="2"> <a href="http://www.hiqpdf.com"> <img style="float: right; height: 50px" src="Images/HiQPdfLogo.jpg" /> </a> </td> <td rowspan="2" style="width: 5px"></td> </tr> <tr> <td> <span style="font-size: 16px">Page <span style="color:blue">{page_number}</span> of <span style="color:green">{total_pages}</span> pages</span> </td> </tr> </table> </body> </html>
Base URL
Header URL
Auto Size Height
Min:
pt
Max:
pt
Fit Height
Header Height:
pt
Skip Variables Parsing
Show in First Page
Show in Odd Pages
Show in Even Pages
Auto Resize Margin
Reserve Space when Hidden
Wait:
sec
Convert Markdown to PDF