Optional NuGet package that ships Ghostscript and GhostPDL native libraries for use with Ghostscript.NET.
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.
<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");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.