Questions tagged [ghostscript.net]

Ghostscript.NET is the most completed managed (.NET) wrapper library around the Ghostscript library (32-bit & 64-bit), an interpreter for the PostScript language, PDF, related software and documentation.

Ghostscript.NET is the most completed managed (.NET) wrapper library around the Ghostscript library (32-bit & 64-bit), an interpreter for the PostScript language, PDF, related software and documentation.

Source code location: https://github.com/jhabjan/Ghostscript.NET

100 questions
1
vote
1 answer

Ghostscript.Net doesn't working in Windows Server 2012 R2

I am using Ghostscript.NET in my Project to print Pdf files across Network. Locally works fine, using Windows 10, version 64-Bit and Ghostscript Driver to 32-Bit (Ghostscript 9.22 for Windows 32-Bit) downloaded from…
1
vote
1 answer

Ghostscript clips a pdf file

I'm trying to print a pdf with Ghostscript using those settings : var switches = new List { @"-empty", @"-dPrinted", @"-dNOPAUSE", @"-dNOSAFER", …
SebOlens
  • 519
  • 3
  • 15
1
vote
1 answer

Ghostscript.NET can't print with selected printer name

I want to print a pdf file with selected printer name via Ghostscript.NET. This application is actually a wrapper of CefSharp browser. When user click on a download button, it download and print out with selected printer directly. You can see the…
Js Lim
  • 3,625
  • 6
  • 42
  • 80
1
vote
1 answer

GhostScript Path output/input error

I'm using GS 32bits with the wrapper for C# . This line works : GhostscriptSharp.GhostscriptWrapper.GeneratePageThumb("a.pdf" , "a.jpg", 1, 100, 100, 50, 50); But this line doesn't work GhostscriptSharp.GhostscriptWrapper.GeneratePageThumb("a.pdf"…
Mickaël B.
  • 325
  • 4
  • 14
1
vote
2 answers

ghostscript.net rasterizer 'gsapi_init_with_args' is made: -15 error

When I run this code: var stream = File.OpenRead(@"C:\tmp\PdfToTest.PDF"); var latestVersion = GhostscriptVersionInfo.GetLastInstalledVersion(); rasterizer = new GhostscriptRasterizer(); rasterizer.Open(stream, latestVersion, false); I am getting…
KleberBH
  • 452
  • 1
  • 9
  • 28
1
vote
1 answer

Ghostscript.net multiThreaded issue

I have a Sharepoint application that uses the Ghostscript.net wrapper to rasterize pdf documents to png. Right now I am using the example from their site. But the issue I have is when I try to convert to pdfs at the same time. Using this code…
RobbZ
  • 1,410
  • 14
  • 19
1
vote
1 answer

Ghostscript PDF to TIFF setting output size c#

I have a pdf of 22 pages. I am using GhostScript to convert the PDF to TIFF to be used by Tesseract. I did this... string filename=openFileDialog1.FileName; using (GhostscriptRasterizer rasterizer = new GhostscriptRasterizer()) { …
Derek Toh
  • 15
  • 1
  • 7
0
votes
1 answer

GhostscriptRasterizer - Everything bold and blurred

I currently have the task that I have to print shipping labels that I get as PDF via C#. I use Ghostscript to split the PDF into individual pages and then print the images. This works very well, but I have the problem that everything is printed…
Michael Kröschel
  • 240
  • 1
  • 4
  • 13
0
votes
0 answers

Azure function with Ghostscript works properly in local (on my Mac computer), but when tried to deploy on Azure, doesn't work

I am using the Ghostscript in my C# dot.net core 6 azure function to convert pdf documents into png images, which works well in the local environment. However, when I tried to deploy it to Azure from my VS Code and test it, spotted that pdfs are not…
0
votes
0 answers

gsapi_init_with_args' is made -100 with long and Asian language in filename

I'm using this function to "compress" PDF files. If the filename has Asian language (Japanese and Vietnamese) and the number of characters in filename is longer 15, the error "'gsapi_init_with_args' is made -100" will appear. Example: Input…
0
votes
1 answer

How to add GhostScript NuGet package to Azure Function App?

I am trying to create an Azure Function App that merges a set of documents into a single PDF. I also need to convert some images to PDF and include those in the merged output file. I have a working Power Automate Desktop flow that uses PowerShell…
0
votes
1 answer

C# and Ghostscript.net results in error (no picture)

I tried to create a little program to convert PDF to a TIF file using ghostscript but unfortunately it results in an error ("null"). Can't figure out why it's failing: void button1_Click(object sender, EventArgs e) { OpenFileDialog…
Moritz
  • 377
  • 1
  • 6
  • 21
0
votes
0 answers

Module could not be loaded Ghost Script after deploying on IIS

I have Ghostscript installed on my machine(with windows 10) and it is working properly with visual studio IIS Express on local, but after hosting application on server IIS, it throws exception Module could not be loaded. and i have installed…
devloper
  • 41
  • 1
  • 7
0
votes
1 answer

GhostScript.Net not working Visual Studio 2022

Hello everyone and thanks for the help in advance. I am using GhostScript.Net to convert Pdf files to Png images. This has worked perfectly fine using Visual Studio 2019. However, when I moved to VS 2022, Here is my code: using…
Greybeard
  • 67
  • 8
0
votes
0 answers

is there any changes done to the arguments of ghostcript in the new release 9.55.0

we recently upgraded ghostscript from 9.18.0 to 9.55.0. The pdf to tiff conversion is not working with ghostscript version 9.55.0 but it still works with 9.18.0. We are trying to convert .pdf file to .tiff file using ghostscript. Recently we…