Convert and create PDFs using GhostPDL with C# and .NET
$ dotnet add package GhostPDL.NETConvert and create PDFs using GhostPDL with C# and .NET
If you liked the project or if GhostPDL.NET helped you, please give a star ;)
GhostPDL.NET can be installed using the Nuget package manager or the dotnet CLI.
dotnet add package GhostPDL.NET
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);
GhostPDL.NET was developed by Claudiney Queiroz.
Copyright © 2023 Claudiney Queiroz.
The project is licensed under the GNU AGPLv3.