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

What could cause a computer to run slow without any evident changes?

Over the past couple months, I have been working on an application which converts PS files to PNG using Ghostscript.net, and then merges these into another PDF document. There are 100+ PS files which get converted to PNG. This is done with…
SimTrooper
  • 92
  • 8
2
votes
1 answer

Ghostscript.NET Multithreading Issue

The longest part of a monthly process we run is the automated slicing and conversion of some PDFs to images. Each PDF is read in, converted to 3 different PDFs, and those 3 are converted to images to be placed in e-mails to customers. The PDFs are…
Jeff
  • 2,835
  • 3
  • 41
  • 69
2
votes
1 answer

Can I return byte[] with GhostscriptProcessor?

Is it possible to return byte[] using the GhostscriptProcessor? For example: public static byte[] ConvertToPDFA(byte[] pdfData) { GhostscriptProcessor gsproc = new GhostscriptProcessor(Properties.Resources.gsdll32); //return byte[] from the…
Roniu
  • 79
  • 10
2
votes
1 answer

Creating PDF/A with GhostscriptProcessor

I want to convert a PDF file into PDF/A with GhostscriptProcessor, but the result is a PDF not PDF/A. GhostscriptProcessor gsproc = new GhostscriptProcessor(Properties.Resources.gsdll32); gsproc.StartProcessing(CreatePDFA(@"C:\test\PDF.pdf",…
Roniu
  • 79
  • 10
2
votes
0 answers

GhostScript .NET not continuing past certain pages

I've created a program which needs to convert PDF files into image files, and for this GhostScript is the best choice. But once in a while, the library stalls completely on a page and doesn't continue, it just keeps using CPU power and working, as…
D3vinno
  • 183
  • 2
  • 6
1
vote
0 answers

Is it possible to use Stream in Ghostscript.Net and how to reduce pdf size?

I am working with azure blob storage and usually with large sized scanned pdf documents. I can reduce the size of the documents with GhostscriptProcessor, but first I need to save the document to a physical folder. Because I'm working with blob…
GAMD
  • 11
  • 2
1
vote
1 answer

cannot convert pdf page to image

I want to convert a pdf file's each page to a new image. To do this, i use GhostScript.Net. The problem is i can't figure out why pageImage returns null in the System.Drawing.Image pageImage = rasterizer.GetPage(dpi, i); line. Here is the method i…
1
vote
1 answer

Ghostscript.NET 1.2.3 'Method not found' running as a Function App

I am not sure why this is failing at var img = rasterizer.GetPage(dpi, 1); with the following error: Method not found: 'System.Drawing.Image Ghostscript.NET.Rasterizer.GhostscriptRasterizer.GetPage(Int32, Int32)' My path to the dll is correct and…
skashi
  • 334
  • 2
  • 9
1
vote
0 answers

Converting a PDF containing PNGs with Alpha in GhostScript.NET

I have the problem of converting PDFs that may contain images which use transparency. In those documents, after conversion, the images will show black in place of the transparent areas. The target of the conversion is not to have transparent areas,…
Alexander Gräf
  • 511
  • 1
  • 3
  • 10
1
vote
2 answers

How to get a working x64 THREADSAFE Ghostscript DLL

Main context We're actually trying to get a multi-threading version of Ghostscript x64 DLL, to make use of it through Ghostscript .NET. This component is supposed to "allow runing multiple Ghostscript instances simultaneously within a single…
1
vote
0 answers

How to crop and rotate a Postscript page with c# using Ghostscript

I want to cut out a part of a postscript page from C#, rotate the result and save it as a new postscript page. My source file is a Postscript page in A4, in portrait format. The page consists of four quadrants, each quadrant is an A6 in portrait…
Helge
  • 11
  • 2
1
vote
0 answers

Ghostscript.NET.Rasterizer set resolution (Dpi) is not working

I have this code to convert pdf to tif, it is faster then ImageMagick library so I have to use it. Every thing work good but when I set the x and y dpi it always get ignored. I tried different versions of NuGet GhostScript and I also tried…
1
vote
1 answer

Change Document Name while printing using Ghost Script

I have a requirement to print PDF files to some hardware based printers, and to some Virtual PDF Printers. I am using Ghostscript for this task and programming language is C#. The hardware printers print a PrintJob page after each document, where…
1
vote
0 answers

How to fix the Issue "An error occured when call to 'gsapi_init_with_args' is made: -100" While converting PDF to PDF/A - Ghostscript

When I try to convert PDF to PDF/A using GhostScript.NET and I start debuging the project brings this exception: "Additional information: An error occured when call to 'gsapi_init_with_args' is made: -100" My code is: Public Sub Start() Dim gv…
1
vote
1 answer

Quickly rasterize parts of PDF with Ghostscript

In my C# application I am trying to show a PDF document in a navigatable window with options to zoom, pan, etc. I'm using Ghostscript.NET. It looks like for example Adobe Acrobat Reader is able to render just the given portion of a page, judging by…
Yuri Makassiouk
  • 425
  • 3
  • 16