Info
Version: | 26.4.0 |
Author(s): | Accusoft |
Last Update: | Friday, April 26, 2024 |
.NET Fiddle: | Create the first Fiddle |
Project Url: | https://accusoft.com/ |
NuGet Url: | https://www.nuget.org/packages/Accusoft.ImageGear.PDF |
Install
Install-Package Accusoft.ImageGear.PDF
dotnet add package Accusoft.ImageGear.PDF
paket add Accusoft.ImageGear.PDF
Accusoft.ImageGear.PDF Download (Unzip the "nupkg" after downloading)
Dependencies
- Accusoft.ImageGear.Core(>= 24.14.0 && <= 24.14.0)
- Accusoft.ImageGear.Vector(>= 24.14.0 && <= 24.14.0)
Tags
The package provides full multi-page reading and writing support for entire PDF documents, as well as for a specified set of a document's pages.
## Getting Started ##
Working with PDFs in ImageGear is easy:
```
using ImageGear.Formats;
using ImageGear.Formats.PDF;
using System.IO;
// Initialize PDF support
ImGearCommonFormats.Initialize();
ImGearFileFormats.Filters.Add(ImGearPDF.CreatePDFFormat());
ImGearPDF.Initialize();
// Load a PDF document.
ImGearPDFDocument imGearPDFDocument = null;
using (FileStream stream = File.OpenRead("input.pdf"))
imGearPDFDocument = ImGearFileFormats.LoadDocument(stream) as ImGearPDFDocument;
// Save the PDF document to a multi-page tiff file
using (FileStream outputStream = File.Create("output.tif"))
ImGearFileFormats.SaveDocument(imGearPDFDocument, outputStream, 0, ImGearSavingModes.OVERWRITE, ImGearSavingFormats.TIF_DEFLATE, new ImGearSaveOptions());
// Terminate PDF support
imGearPDFDocument.Dispose();
ImGearPDF.Terminate();
```
For more examples of how to use ImageGear's API, check out our [sample code repository](https://github.com/Accusoft/imagegear-net-samples) on github.
## Licensing ##
While you are evaluating the product, ImageGear doesn't require any licensing setup. The SDK is ready to use as soon as the NuGet package is installed.
Until a paid license is purchased, image output will be watermarked. Contact [email protected] for more information.
## Documentation ##
API documentation and how-to content for ImageGear can be found online [here](https://help.accusoft.com/ImageGear/latest/webframe.html).