In this article, you saw all the ways you can use GemBox.Document for converting HTML to PDF programmatically in. For more information, visit the GemBox.Pdf product page on our website. With its simple but powerful API, you can easily read, write, edit, and print PDF files in C# or VB.NET. It is designed specifically for manipulating PDF files since PDF's fixed structure is quite different from flow document structure. GemBox.Document is a great library for converting HTML to PDF, but if you are looking for advanced PDF editing, then you should take a look at the GemBox.Pdf library. Var document = DocumentModel.Load("MyHtml.html") Īnd here is the screenshot: Screenshot of a PDF file generated from a HTML file GemBox.Pdf for advanced PDF editing If you have set everything correctly, your code should look like this: Since we are working with a console application, we suggest putting it at the beginning of the Main() method. Now that you have installed the GemBox.Document library, all you have to do is make sure you call the ComponentInfo.SetLicense method before using any other member of the library. Search for GemBox.Document and click on 'Install'.Īs an alternative, you can open the NuGet Package Manager Console ( Tools -> NuGet Package Manager -> Package Manager Console) and run the following command:.In the Solution Explorer window, right-click on the solution and select 'Manage NuGet Packages for Solution'.The best way to do that is via NuGet Package Manager. NET Framework 3.5) we recommend that you use the newest version.īefore you can start converting HTML to PDF, you need to install GemBox.Document. Also, although GemBox.Document supports a wide range of. If you are unfamiliar with Visual Studio or need a reminder, refer to the official tutorial. GemBox.Pdf for advanced PDF editing Install and configure the GemBox.Document libraryįor this article, we propose that you create a new.Additional HTML to PDF conversion options.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |