A .NET client library for the Pdfcrowd HTML to PDF API. Convert HTML, URLs, and various document formats to PDF and images.
Install via NuGet Package Manager:
Install-Package Pdfcrowd.Official
Or via .NET CLI:
dotnet add package Pdfcrowd.Official
- .NET Framework 2.0+
- .NET Standard 2.0+
- .NET Core 2.0+
- .NET 5+
using pdfcrowd;
// Create an API client instance
var client = new HtmlToPdfClient("your_username", "your_api_key");
// Convert a web page to PDF
client.convertUrlToFile("https://example.com", "example.pdf");var client = new HtmlToPdfClient("your_username", "your_api_key");
client.convertStringToFile("<html><body>Hello World!</body></html>", "hello.pdf");var client = new HtmlToPdfClient("your_username", "your_api_key");
client.setPageSize("Letter");
client.setOrientation("landscape");
client.convertUrlToFile("https://example.com", "example.pdf");var client = new HtmlToImageClient("your_username", "your_api_key");
client.setOutputFormat("png");
client.convertUrlToFile("https://example.com", "example.png");- Sign up at pdfcrowd.com
- Find your API key in your account settings
This library is distributed under the MIT license. See the LICENSE.txt file for details.