ImageProcessor.Plugins.PDF
1.3.0
See the version list below for details.
dotnet add package ImageProcessor.Plugins.PDF --version 1.3.0
NuGet\Install-Package ImageProcessor.Plugins.PDF -Version 1.3.0
<PackageReference Include="ImageProcessor.Plugins.PDF" Version="1.3.0" />
paket add ImageProcessor.Plugins.PDF --version 1.3.0
#r "nuget: ImageProcessor.Plugins.PDF, 1.3.0"
// Install ImageProcessor.Plugins.PDF as a Cake Addin #addin nuget:?package=ImageProcessor.Plugins.PDF&version=1.3.0 // Install ImageProcessor.Plugins.PDF as a Cake Tool #tool nuget:?package=ImageProcessor.Plugins.PDF&version=1.3.0
Pdf fileformat for ImageProcessor
This is a plugin for ImageProcessorThis project is a plugin for ImageProcessor. It adds PDF as a supported file format. This gives you the ability to preview the first page of a PDF file on your web page.
Installation using Nuget
Install-Package ImageProcessor.Plugins.PDF
GhostScript
We use GhostScript.Net as a managed wrapper for GhostScript.
The good thing is, you don't need to install ghostscript on your machine.
You can just copy (one or both) gsdll32.dll
and gsdll64.dll
in the /bin directory.
These files are not provided in this packages and must be added manually.
I read that Ghostscript does not handle requests from multiple processes.
When running on a webserver, be sure to run the website in his own applicationpool.
Configuration
Just add /myfile.pdf?format=jpg&width=500
to get the first page as an image.
running locally on IIS express
If you run locally, and you have the 64 bit version of ghostscript installed, don't forget to activate 64 bit of IIS express.
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET Framework | net45 is compatible. net451 was computed. net452 was computed. net46 is compatible. net461 was computed. net462 was computed. net463 was computed. net47 is compatible. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
-
.NETFramework 4.5
- Ghostscript.NET (>= 1.2.1)
- ImageProcessor (>= 2.5.0)
-
.NETFramework 4.6
- Ghostscript.NET (>= 1.2.1)
- ImageProcessor (>= 2.5.0)
-
.NETFramework 4.7
- Ghostscript.NET (>= 1.2.1)
- ImageProcessor (>= 2.5.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Pdfs are rendered as image, when a PDF has multiple pages, only the first is shown.