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

set papersize Printing with Ghostscript.NET

I'm printing some pdf's using Ghostscript.NET this is my config. List switches = new List { "-empty", "-dPrinted", "-dFirstPage=1", "-dLastPage=1", "-dPrinted", "-dBATCH", "-dNOPAUSE", "-dNOSAFER", …
Juan Pablo Gomez
  • 5,203
  • 11
  • 55
  • 101
0
votes
1 answer

How can I tell ghostscript not to rasterize gradients in eps files?

I was searching for solution that would allow me to read, edit and save .eps files. I found out that ghostscript can give all of this opportunities. The algoritm I need is simple: read several .eps files, concatenate them in one big file and save…
Rustam
  • 113
  • 1
  • 2
  • 9
0
votes
1 answer

How to write and view converted pdfs to and from memory?

Right now I am using ghostscript in Unity to convert pdfs to jpgs and view them in my project. Currently it flows like so: -Pdfs are converted into multiple jpegs (one for each page) -The converted jpegs are written to disk -They are then read in by…
jtth
  • 876
  • 1
  • 12
  • 40
0
votes
1 answer

Remove Creator, Author, Subject, Title and Keywords using Ghostscript.NET

When I try to remove Creator, Author, Subject, Title and Keywords from a PDF using Ghostscript.NET, I get the error -100. Here are the switches I am using: var switches = new List { "-dBATCH", "-dNOPAUSE", "-sDEVICE=pdfwrite", "-c",…
Fernando Silva
  • 334
  • 6
  • 16
0
votes
1 answer

WPF MVVM Adaptation of Ghostscript.NET Viewer Does Not Display Pdf Page as an ImageSource

I am just beginning to experiment with Ghostscript.Net. My goal is to adapt the GhostscriptViewer to my WPF MVVM Modular environment, but I am not able to display a page in a XAML Image control. I suspect that my problem lies either in my…
0
votes
1 answer

Ghostscript weird lock on dll (An error occured when call to 'gsapi_new_instance' is made: -100)

I have a C#/MVC website for uploading PDFs and when multiple browser instances try to upload at the same time, using Ghostscript.Net v 1.2.1, I get the following error: Ghostscript.NET.GhostscriptAPICallException: An error occured when call to…
John Linton
  • 199
  • 1
  • 13
0
votes
2 answers

Silent Printing with Ghostscript.NET

I'm trying to send a pdf to the printer without the print dialog coming up using GhostScript.NET. My understanding is if I provide the exact name of the printer in the -sOutputFile switch, the user will not be prompted.. The exact name of my printer…
Crumblenautjs
  • 169
  • 1
  • 3
  • 24
0
votes
0 answers

GhostScript.NET GSPrint permissions on IIS 8

I've added a GhostScript.NET to my application, and have been able to successfully print PDFs using GSPrint on my local machine. Unfortunately, after deploying the updated application to the server as well as installing GSView (includes GSPrint),…
Crumblenautjs
  • 169
  • 1
  • 3
  • 24
0
votes
1 answer

Trying to print using multiple instances of GhostScript with Parallel loop.

I have a function that uses GhostScript.NET to print PDF documents. Everything works correctly if one user is trying to print, however when multiple users try to print simultaneously it doesn't print all of the documents. I recognize that I will…
Crumblenautjs
  • 169
  • 1
  • 3
  • 24
0
votes
1 answer

Trying to print PDF using GhostScript

I'm trying to print a PDF document using ghostscript. I'm using the GHOSTPRINT.NET wrapper. I have been able to achieve sending output to the printer, however it remains stuck in spooling status. Not sure if it has to do with the switches I'm…
Crumblenautjs
  • 169
  • 1
  • 3
  • 24
0
votes
2 answers

GhostScript unrecoverable error: undefined file name

Trying to figure out how to take a memoryStream and return images using Ghost Script. Here's the code as well as the error I'm getting once I execute rasterizer.Open: public static System.Drawing.Image PDFToImage(MemoryStream inputMS) { …
Crumblenautjs
  • 169
  • 1
  • 3
  • 24
0
votes
0 answers

converting files to pdf + ghostscript

I m trying to convert multiple file types(for ex- .txt) into pdf using ghostscript. I am able to get the .ps file but that is not getting converted to .pdf !! Its been two days now I am working on it .Seriously need some help.
0
votes
1 answer

Ghostscript.NET ignores postscript

When I use ghostscript in windows cmd with my setup.ps postscript file it prints my pdfs perfectly. setup.ps mark /OutputFile (%printer%HP LaserJet 1018) /BitsPerPixel 1 /NoCancel false /UserSettings << /DocumentName(document) …
SebOlens
  • 519
  • 3
  • 15
0
votes
1 answer

Ghostscript.net print pdf page orientation

I tried below ghostscript command to print pdf with landscape orientation over network printer but got portrait printout. Please help me to find out solution. GhostscriptVersionInfo gvi = new GhostscriptVersionInfo(new Version(0, 0, 0),…
Raju Padhara
  • 687
  • 1
  • 7
  • 20
0
votes
0 answers

Ghostscript.net Printing PDF Name in Spooler

when I print a PDF file by Public Sub PrintViaGS(PDFFile As String) Using processor As New GhostscriptProcessor() Dim switches As New List(Of String)() switches.Add("-empty") switches.Add("-dPrinted") …
Lubo
  • 1