Skip to content

claudineyqr/GhostPDL.NET

Repository files navigation

GhostPDL.NET

NuGet Nuget Donate

Convert and create PDFs using GhostPDL with C# and .NET

Get Started

GhostPDL.NET can be installed using the Nuget package manager or the dotnet CLI.

dotnet add package GhostPDL.NET

Examples

Convert PDF/X to PDF/A

var pdfContentByte = await File.ReadAllBytesAsync("sample1.pdf");

var ghostProcessor = new GhostPdlProcessorPdfA();
byte[] rawPdfA = await ghostProcessor.ConvertAsync(pdfContentByte, PdfAProfile.A2B);

To validate PDF/A result use the Codeuctivity.PdfAValidator

Run commands Ghostscript

Documentation Ghostscript:

var switches = new List<string>
{
    "-command1",
    "-command2",
    "-command3"
};

var ghostProcessor = new GhostPdlProcessor();
ghostProcessor.InvokeCommand(switches);

Documentation

  • Coming soon.

Support

  • win-x64
  • linux-x64 (Debian 11>=, Ubuntu 20.04>=, Red Hat Enterprise Linux 7>=)
  • linux-arm64 (Debian 11>=, Ubuntu 20.04>=)
  • osx-x64 (10.15>=)

About

GhostPDL.NET was developed by Claudiney Queiroz.

License

Copyright © 2023 Claudiney Queiroz.

The project is licensed under the GNU AGPLv3.

About

Convert and create PDFs using GhostPDL with C# and .NET

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages