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

Same Script works in cmd command ,but faied in GhostScript.net

my Evironment is Windows10 64bit ,VS2015 ,GhostScript9.27, Language is C# And i using GhostScript.net to invoke GhostScript here is my code string inputFile = "D:\\112.pdf"; string outputFile = "D:\\output.pdf"; GhostscriptProcessor ghostscript…
steive
  • 11
  • 5
0
votes
1 answer

it is possible to show progress of rendering PS file with ghostscript?

I'm using GhostScript.NET for C# to convert PDF to PostScript (ps2write device) and i want to show progress of rendering (processor.StartProcessing()), since large files take a long time I know that mswinpr2 shows progress of rendering, but ps2write…
0
votes
1 answer

Ghostscript - EPS (with embedded TIFF with transparent background) to PNG conversion

I'm trying to convert an EPS file with an embedded TIFF that has a transparent background to a PNG using GhostScript. The problem that I am having is that the background of the TIFF image becomes white in the PNG. It looks like the…
RockyRoad
  • 3
  • 3
0
votes
1 answer

'Ghostscript.NET.GhostscriptLibraryNotInstalledException' in Ghostscript.NET.dll in IIS

I have Ghostscript installed on my machine(with windows 10) and it is working properly with visual studio IIS Express, but after hosting application on same machine Local IIS, it throws exception GhostscriptLibraryNotInstalledException. Please help…
Aasish
  • 377
  • 5
  • 18
0
votes
0 answers

Incorrect bit depth showing in output Tiff file generated using Ghostscript

I am using compression LZW and bit depth 1,8,12 & 24, but in the output file generated i am always getting bit depth 1. If i am using bit depth 12 i should get 12 in output. I am using compression mode -sDEVICE=tifflzw. I also tried…
Renjith
  • 682
  • 4
  • 19
0
votes
1 answer

Ghostscript PDF multiple-pages multiple-copies print doesn't collate

This is my silent PDF print code for C# and Ghostscript.NET library: public bool Print(string inputFile, string printerName, int nrcopies) { if (nrcopies < 1) nrcopies = 1; if…
Tobia
  • 9,165
  • 28
  • 114
  • 219
0
votes
1 answer

Ghostscript mswinpr2 does not select default setting

I must provide a silent print of PDF to physical printer. I'm using ghostscript but I have a problem: the windows default printer settings are ignored by ghostscript. For example if I select color to b/w or paper tray in default printer settings…
Tobia
  • 9,165
  • 28
  • 114
  • 219
0
votes
2 answers

Ghostscript to convert pdf to pdf command line parameters do no work

I have installed the latest version of ghostscript on windows 7 (gswin64). I am trying to convert PDF from older version to a new version. I need to run the command from the 'CMD' window. I tried running this gs -sDEVICE=pdfwrite…
Ruruboy
  • 626
  • 3
  • 12
  • 36
0
votes
1 answer

Extract text from PDF files(Printed)

I'm using RedMon(Redirection Port Monitor), HP Universal Driver PS and GhostScript to intercept document printing. However, for the following scenario: File PDF -> HP Universal Driver PS -> RedMon -> PostScript File** -> GhostScript create file…
Marc.Adans
  • 203
  • 2
  • 4
0
votes
2 answers

ghostscript PDF to Png crop x and y

i use ghostscript for my convertion PDF to PNG in vb.net when i crop my pdf then i convert this in png but ghostscript keep x and y position cropping in my picture. I have solved this problem when i use gswin64.exe in cmd with : -c "<
S.Toff
  • 21
  • 3
0
votes
1 answer

Could not load file or assembly Ghostscript.NET

I am using Ghostscript.Net, Version=1.2.1.0, to rasterize PDF to images. I have referenced both the 32 bit-gsdll32.dll and 64 bit-gsdll64.dll of ghostscript in my project directory/bin folder. I am using this piece of code to get the path of the…
Mellionis
  • 105
  • 1
  • 9
0
votes
1 answer

Ghostscript extract text with form feed (page break)

I need to know where the page breaks are in the output file? gs -dSAFER -dBATCH -dNOPAUSE -sDEVICE=txtwrite -sOutputFile=output.txt input.PDF **Sorry about my english.
Marc.Adans
  • 203
  • 2
  • 4
0
votes
2 answers

Page cropped and rotated incorrectly when printing with Ghostscript

I have been trying to print a one-page pdf file from command line (hostscript version 9.22), or .NET console app using ghostscript.net (version 1.2.1). The file (PDF version 1.7 - Acrobat 8.x) is A3 size and I want to print it on an A4. It looks…
myro
  • 1,158
  • 2
  • 25
  • 44
0
votes
2 answers

Ghostscript Compiling Positional Bookmarks /VIEW [/XYZ 0 750 0]

We have used ghostscript to generate PDF files using postscript files created by our system services for years. Currently if three topics are bookmarked for a singled page all three bookmarks point to the top of the page. We have been asked to have…
Barry
  • 1
0
votes
1 answer

convert Pdf to png create Black margin around image

I'm trying to convert pdf to image with ghostscript.net (1.2.1.0) and gs version is 9.22 x86. my code: using (_rasterizer = new GhostscriptRasterizer()) { _rasterizer.Open(inputPdfPath, _lastInstalledVersion, false); …