Ghostscript.NativeAssets
10.8.0
dotnet add package Ghostscript.NativeAssets --version 10.8.0
NuGet\Install-Package Ghostscript.NativeAssets -Version 10.8.0
<PackageReference Include="Ghostscript.NativeAssets" Version="10.8.0" />
<PackageVersion Include="Ghostscript.NativeAssets" Version="10.8.0" />
<PackageReference Include="Ghostscript.NativeAssets" />
paket add Ghostscript.NativeAssets --version 10.8.0
#r "nuget: Ghostscript.NativeAssets, 10.8.0"
#:package Ghostscript.NativeAssets@10.8.0
#addin nuget:?package=Ghostscript.NativeAssets&version=10.8.0
#tool nuget:?package=Ghostscript.NativeAssets&version=10.8.0
Ghostscript.NativeAssets
Optional NuGet package that ships Ghostscript and GhostPDL native libraries for use with Ghostscript.NET.
Included assets
This package tracks Ghostscript 10.08.0. NuGet represents the package version as 10.8.0 because numeric version components cannot contain leading zeroes.
| RID | Included files | Status |
|---|---|---|
linux-x64 |
libgs.so, libgpdl.so |
Included |
win-x64 |
gsdll64.dll, gpdldll64.dll |
Included |
win-x86 |
gsdll32.dll, gpdldll32.dll |
Included |
gsdll / libgs handle PDF, PostScript, and EPS. gpdldll / libgpdl is GhostPDL and is used for Word, Excel, and PowerPoint. Call GhostscriptOffice.Unlock(key) for a full Office document; without a key, conversion is limited to the first 3 pages.
The ghostscript.version metadata file next to each native library allows GhostscriptVersionInfo to report the bundled Ghostscript product version.
Usage
<PackageReference Include="Ghostscript.NET" Version="1.3.6" />
<PackageReference Include="Ghostscript.NativeAssets" Version="10.8.0" />
Package versions are managed in the repository
Versions.propsfile. Ghostscript.NET resolves libraries in this order:
- Explicit path /
GhostscriptVersionInfosupplied by the caller - Bundled NativeAssets (app-local)
- System Ghostscript installation
var version = GhostscriptVersionInfo.GetPreferredVersion();
// or
if (GhostscriptVersionInfo.TryGetBundledVersion(out var bundled))
{
// use bundled
}
GhostscriptOffice.Unlock(customerKey);
GhostscriptOffice.ConvertToPdf(@"D:\report.docx", @"D:\report.pdf");
Licensing
This package distributes Ghostscript and GhostPDL native binaries. Use is subject to the GNU AGPL v3 or a commercial license from Artifex. Full Office conversion requires a Ghostscript.NET.Office license key.
Learn more about Target Frameworks and .NET Standard.
-
.NETStandard 2.0
- No dependencies.
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.