Test in a live environment
Test in production without watermarks.
Works wherever you need it to.
Adobe's Portable Document Format (PDF) is essential for various operations in many companies, including generating documents and invoices. Developers also use it to meet client requirements. Libraries have simplified the process of creating PDFs. When choosing a library, consider aspects such as build, read, and conversion capabilities.
IronPDF is a robust PDF converter and API library that allows developers to generate, read, and manipulate PDF documents. It uses the Chrome engine to convert HTML to PDF and supports a variety of web components and .NET applications. It enables the creation of visually appealing PDFs using HTML5, JavaScript, CSS, and images, and includes a powerful HTML-to-PDF translator and an independent PDF conversion engine.
With the assistance of the IronPDF API library, generating PDF files becomes very easy by creating an HTML file from a URL and converting it to a PDF file using the built-in Chrome browser in IronPDF.
The methods listed below make it simple to create PDF documents with just a few lines of code:
IronPdf.ChromePdfRenderer renderer = new IronPdf.ChromePdfRenderer();
var pdf = renderer.RenderUrlAsPdf("https://www.google.co.in/");
pdf.SaveAs("result.pdf");
IronPdf.ChromePdfRenderer renderer = new IronPdf.ChromePdfRenderer();
var pdf = renderer.RenderUrlAsPdf("https://www.google.co.in/");
pdf.SaveAs("result.pdf");
Dim renderer As New IronPdf.ChromePdfRenderer()
Dim pdf = renderer.RenderUrlAsPdf("https://www.google.co.in/")
pdf.SaveAs("result.pdf")
According to the information above, the RenderUrlAsPdf
method can be used to convert the link into a document by providing the link and the save location.
The PDF file generated from a URL
The IronPDF API library makes it easy to convert HTML strings into PDF files. Below is an example code for converting HTML strings into documents, and it allows the translation of any HTML tag into PDF files.
IronPdf.ChromePdfRenderer().RenderHtmlAsPdf("Hello world!!").SaveAs("result.pdf");
IronPdf.ChromePdfRenderer().RenderHtmlAsPdf("Hello world!!").SaveAs("result.pdf");
IronPdf.ChromePdfRenderer().RenderHtmlAsPdf("Hello world!!").SaveAs("result.pdf")
This example code demonstrates how to convert an unlimited HTML text using RenderHtmlAsPdf
, then save the document using the SaveAs
method and the whole process is completed in just a matter of seconds.
A PDF file generated from an HTML string
With the help of the IronPDF API library, it is possible to read and extract data from existing PDF documents. The code below shows an example of how to do this:
var pdfDocument = IronPdf.PdfDocument.FromFile("result.pdf");
string AllText = pdfDocument.ExtractAllText();
var pdfDocument = IronPdf.PdfDocument.FromFile("result.pdf");
string AllText = pdfDocument.ExtractAllText();
Dim pdfDocument = IronPdf.PdfDocument.FromFile("result.pdf")
Dim AllText As String = pdfDocument.ExtractAllText()
In this code, the FromFile
function is used to read the PDF from an existing file and convert it into a PdfDocument
object. This object can be used to access the text and images present on the PDF pages. The ExtractAllText
method can be used to create a string containing every word on the PDF pages.
For more information on how to use the IronPDF API library, refer to the code tutorials provided here.
The IronPDF library provides a free license for development, and different licenses are available for purchase for use in a production environment based on the developer's needs. The Lite package has a starting price of $749 and does not require any ongoing fees. The licenses offer redistribution options for SaaS and OEM and come with a permanent license, a 30-day money-back guarantee, and a year of product support and updates. They are suitable for development, staging, and production and require a one-time purchase. Moreover, IronPDF provides additional complimentary time-limited licenses. IronPDF also offers free licenses for redistribution coverage.
For more information on IronPDF's complete pricing and licensing details, please visit the licensing page.
9 .NET API products for your office documents