Questions tagged [ghostscriptsharp]

28 questions
1
vote
2 answers

PDF from PS through Shell with gswin32c

I am trying to produce "c:\output.pdf" from existed and well formed "output.ps" file with VB.NET and shell to gswin32c.exe which is in current directory. But I obviously can't write shell command properly: If LCase(p_printer).Contains("ghostscript")…
Wine Too
  • 4,515
  • 22
  • 83
  • 137
0
votes
0 answers

Suppressing the print dialog while using mswinpr2 in Ghostscript

I am using Ghostscipt 9.54 (latest version) for printing a pdf file to my windows printer. I am using below command: C:\Users\Pradeep Gupta>"C:\Program Files\gs\gs9.54.0\bin\gswin64c.exe" -dBATCH -dNOPAUSE -dSAFER -dNumCopies=1 -sDEVICE=mswinpr2…
Pradeep
  • 1
  • 2
0
votes
0 answers

pdf redirection to Windows Printer using Ghostscript

I am working on a Virtual PDF Printer (using redmon & Ghostscript) which have two responsibilities: Create PDF (using pdfwrite) Redirect created PDF to specified printer (using mswinpr2) Everything works fine except in one peculiar case: When User…
Pradeep
  • 1
  • 2
0
votes
0 answers

Change DocumentName using Ghostscript

I have requirement of changing DocumentName that is being printed. This document name will display in printer spool. I am using Ghostscript c# wrapper to print PDF. It shows "Ghostscript output" in printer spool list. Ghostscript documentation…
Ashish Gehlot
  • 483
  • 8
  • 16
0
votes
1 answer

Ghostscript exports PNG but cuts half of the landscape page

I am trying to convert pdf to picture with Ghostscript. I have a landscape A3 PDF but no matter what I do, I only get the left half of every page.. I tried adding the -dPDFFitPage, -dFIXEDMEDIA, and other parameters but it didn’t seem to change…
0
votes
2 answers

Multiple page PDF to one image with GhostScriptSharp

I'm using GhostScriptSharp to generate images from PDF documents. It works for single pages, but what I'm after is getting it to generate one image from the whole document. Here's my code: GhostscriptWrapper.GenerateOutput(sourcePdfFilePath,…
Phil
  • 151
  • 2
  • 8
0
votes
0 answers

Failed to process GhostScript command error with some PDF file

I am using GhostScript with C# and it is working fine but Don't know why with some specific PDF files it is not working. And I looked in GhostScript api and I found that only issue occurring with the last page of this PDF file Click here to…
Govinda Rajbhar
  • 2,926
  • 6
  • 37
  • 62
0
votes
2 answers

Ghost script licence

As a developer for a website of my client, I want to use Ghostscript sharp to generate image from PDF for a particular functionality. Can anyone tell me if it require to purchase licence to use Ghostscript? Thanks in advance..
Mukesh Kumar
  • 177
  • 1
  • 15
0
votes
0 answers

ghostscipt Native Code works with Console App but not with mvc webapp

I am working of a PDF to image converstion. I found ghostscriptsharp which is a c# wrapper written for ghostscript. I used it and developed my application. Most thing if not all worked fine when i was testing with my console application. After I…
Necrovore
  • 19
  • 3
0
votes
1 answer

gsdll32.dll stays locked after API delete/exit

I built a converter using GhostScriptSharp to generate full-page images of PDF files via a website, and gsdll32.dll seems to remain locked (as well as the files it generated/worked from) whenever I call GenerateOutput(). My code…
Dave
  • 900
  • 6
  • 22
0
votes
1 answer

Can GhostScript run in Medium Trust?

I am using GhostScript to generate some thumbnails of PDF pages in an ASP.NET application. I have it wrapped in this library called GhostScriptSharp that just uses DllImport to call methods in the GhostScript DLL. It looks like this wont work on a…
John B
  • 20,062
  • 35
  • 120
  • 170
0
votes
3 answers

GhostScript printing Parameters

I am having big problems trying to print a PDF file in Windows using Ghostscript. The 'in Windows' argument comes from the fact that I am trying to use MS Windows default driver for this '-sDEVICE=mswinpr2'. I need all windows printers/drivers…
Alex
  • 11
  • 2
0
votes
1 answer

GhostScriptSharp resolution problems

I am trying to create a thumbnail from a PDF file, but I need it to be 300px*300px but no matter what I do I can not get the image to be the correct size. It always seems to be huge. This is my code: GhostscriptSettings settings = new…
r3plica
  • 13,017
  • 23
  • 128
  • 290
1
2