The .NET SDK provides a client for integrating PDFGate API endpoints into your C# applications. It supports .NET Standard 2.0+ and is designed for ASP.NET services, worker processes, and backend environments that require reliable, direct access to all API operations.
Source code: github.com/pdfgate/pdfgate-sdk-dotnet
Package: nuget.org/packages/PdfGate.net
Install the package with the .NET CLI, the NuGet CLI, or the Package Manager Console, then initialize the client with your API key.
The only requirement to create the client is your API key. Once initialized, the client is ready to call any of the available methods.
A common workflow is to generate a PDF first, then download the resulting file stream using the returned document id.
| Method | Purpose |
|---|---|
GeneratePdfAsync | Generate a PDF from HTML or a URL. |
GetDocumentAsync | Retrieve document metadata and refreshed pre-signed URLs. |
GetFileAsync | Download the stored PDF stream for a document id. |
UploadFileAsync | Upload a PDF file for later transformations. |
FlattenPdfAsync | Flatten fillable form fields into a non-editable PDF. |
WatermarkPdfAsync | Apply text or image watermarks to a document. |
ProtectPdfAsync | Encrypt a PDF and apply restrictions such as print or copy limits. |
CompressPdfAsync | Compress a PDF and return the resulting document record. |
ExtractPdfFormDataAsync | Read field values from a fillable PDF. |
Use the SDK together with the main API documentation for request parameters, endpoint behavior, and workflow guides such as webhooks and PDF form fields.