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
18
votes
0 answers

Convert PDF to JPG / Images without using a specific C# Library

is there a free C# library (.dll) to convert PDF to images ? I tried this one : https://code.google.com/p/lib-pdf/ But it doesn't work, I got this error : Could not load file or assembly 'libpdf.DLL' or one of its dependencies. The specified …
baaron
  • 319
  • 1
  • 3
  • 9
7
votes
6 answers

GhostscriptRasterizer Objects Returns 0 as PageCount value

txtStatus.Text = ""; if (!File.Exists(txtOpenLocation.Text)) { txtStatus.Text = "File Not Found"; return; } txtStatus.Text = "File Found"; …
6
votes
2 answers

GhostscriptLibraryNotInstalledException running under 32-bit process requires native library

Using nuget in Visual Studio 2013, I installed Ghostscript.NET into my project on my Windows x64 PC. Just to make sure I wasn't crazy, I checked it: PM> Install-Package Ghostscript.NET 'Ghostscript.NET 1.2.0' already installed. Project already has a…
user153923
5
votes
0 answers

Ghostscript.Net v 1.2.1 arithmetic overflow error

Has anyone seen this particular error from Ghostscript when executing the following raster.Open: using (var raster = new GhostscriptRasterizer()) { raster.Open(pdfFileStream, _version, true); where _version…
John Linton
  • 199
  • 1
  • 13
5
votes
1 answer

Ghostscript.NET pdf to image not working on windows azure

I am trying to convert pdf first page to image using Ghostscript.NET it works fine on local IIS but fails on the Azure web app with the following error: [GhostscriptException: Delegate of an exported function couldn't be created for symbol…
adil
  • 101
  • 1
  • 7
5
votes
1 answer

Ghostscript.NET.dll print pdf to specified printer

How to print pdf using ghostscript api. I tried google but still not getting proper solution. Please help me how i do this task.
Raju Padhara
  • 687
  • 1
  • 7
  • 20
4
votes
2 answers

Ghostscript.NET Rasterizer Out of Memory

I'm using Ghostscript.NET, a handy C# wrapper for Ghostscript functionality. I have a batch of PDFs being sent from the clientside to be converted to images on the ASP .NET WebAPI server and returned to the client. public static IEnumerable
Scotty H
  • 6,432
  • 6
  • 41
  • 94
4
votes
2 answers

Ghostscript.NET image text quality issue

I am attempting to convert a pdf document to images using ghostscript. The desired dpi is set to 72px which should be high enough for text to display clear but most of the text is illegible. I can raise the dpi but that will cause very large image…
Morne
  • 1,623
  • 2
  • 18
  • 33
3
votes
1 answer

GhostscriptRasterizer.PageCount always returns zero

This problem has already been discussed here:GhostscriptRasterizer Objects Returns 0 as PageCount value But the answer to this question did not help me solve the problem. In my case, it doesn’t help from kat to an older version of Ghostscript. 26…
Vasiliy
  • 331
  • 1
  • 12
3
votes
1 answer

C# .NET "Parameter is invalid" when Image in using statement

Windows 8.1 Pro, Visual Studio 2015 Update 3, C#, .NET Framework 4.5. Ghostscript.NET (latest), GhostScript 9.20. I'm converting a PDF to a PDF. Hah. Well, I'm making an "editable" PDF "hard" PDF that can't be edited and is of lower quality. The…
Dan7el
  • 1,995
  • 5
  • 24
  • 46
2
votes
2 answers

gsapi_init_with_args is made: -100

I'm trying to build a PostScript to PDF Converter using Ghostscript.Net. The Args that GetArgs return, are the ones I usually use to call gswin32c.exe and they work fine. But every time i call Process, i get an error Saying "An error occured when…
SKull
  • 331
  • 2
  • 12
2
votes
1 answer

Ghostscript.NET how to handle input on StdIn

I'm attempting to create a simple C# application which can accept input on StdIn and process that with Ghostscript to create a PDF, eventually I'd like to do other things with the output PDF, but for now just creating the PDF is enough. I was…
playworker
  • 43
  • 1
  • 5
2
votes
1 answer

Ghostscript increases file size after split PDF

I am splitting PDF file to Images and it is working fine, But issue is that I have PDF file it's size is 2.5 MB after splitting this file into images total size increases to 8 MB. So I don't want to increase these images size because this is storage…
Govinda Rajbhar
  • 2,926
  • 6
  • 37
  • 62
2
votes
3 answers

Replace Specific Document in PDF

Includes: using Ghostscript.NET; using Ghostscript.NET.Processor; using Ghostscript.NET.Rasterizer; Right now, I am using Ghostscript.Net to merge several single PDFs into a single document: /// /// Ghostscripts the file specified in…
user153923
2
votes
3 answers

GhostScript Rasterizer Out of Memory Exception

I am working with a 32-bit Console Application that operates as a background processor. The part I am working on uses GhostScript to Perform OCR on PDFs. Each page of a PDF is rendered to a PNG image in a temp folder which the OCR Reader then reads.…
Aaron
  • 41
  • 1
  • 8
1
2 3 4 5 6 7