Questions tagged [ghostscript]

Ghostscript is a suite of software based on an interpreter for Adobe Systems' PostScript and Portable Document Format (PDF) page description languages.

Ghostscript is software which converts and processes different graphic formats:

  • Inputs: it can read in Portable Document Format (PDF), PostScript (PS) and Encapsulated PostScript (EPS)
  • Outputs: it can output PDF, PS, EPS and many graphic and raster image formats such as TIFF, JPEG, PNG, PNM, PPM, PCL.

Ghostscript's executables are frequently named...

  • ...gs (on Linux, Unix and Mac), and gswin32c.exe or gswin64c.exe for commandline-only interface,
  • ...gsx (on Linux, Unix and Mac), and gswin32.exe or gswin64.exe for the interface that also pops up a window with the rendered file.

The GhostPDL "extension" to Ghostscript can additionally process the Extensible Paper Specification (XPS), and Hewlett Packard's PCL and convert these to most of the above mentioned output formats.

The commandline tools of the GhostPDL extension are named...

  • ...pcl6 for PCL input,
  • ...gxps for XPS input,

Ghostscript can also be described as a PostScript interpreter and as a PDF interpreter as well as a PDF distiller. As such it aims to be as compatible as possible with Adobe Systems' PostScript interpreter and Acrobat Distiller products. That means you can ask Ghostscript to process (most of) the same setdistillerparams as are documented by Adobe.

2294 questions
0
votes
1 answer

GhostScript auto pagenumbering

I want to export one certain page from a pdf document to an image and automatically fill the page number in the file name. When I run the following code: gs \ -sDEVICE=jpeg \ -o outfile-%03.jpeg…
user6299344
0
votes
1 answer

what difference between GhostScript and Xpdf on convert pdf to png

In my project i use GhostScript to convert pdf file to png image. The problem is that it cannot process the font that not emmbeded in pdf file correctly, thus output was wrong. When using pdftoppm (an xpdf tool) the problem was fixed. So i want to…
Trần Hồng
  • 91
  • 2
  • 10
0
votes
1 answer

ghostscript - where can i find gsprint32.exe / gsprint64.exe file in the latest version downloads?

I see our source code have these files gsprint32.exe / gsprint64.exe when we integrated Ghostscript into our application. But as part of upgrading to newer version i can find gswin32.exe files but not gsprint32.exe in version 9.25.. Can anyone…
SRI
  • 190
  • 2
  • 5
0
votes
1 answer

Cloud Functions for converting PDF to image

I've setup a cloud function with guidance from this post Cloud Functions for Firebase - Converting PDF to image When running the function it runs without errors but the image is not created. const tempDir = os.tmpdir() await new Promise(function…
findev
  • 135
  • 1
  • 2
  • 6
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
1 answer

Is there possibility to convert PDF to SVG2?

I have a SVG document (let's name it img1.svg) and PDF file ( doc1.pdf) consisting of 1 page. What I need is to insert (scale, rotate and place at some point in the document) doc1.pdf into img1.svg. In order to achieve it I have to convert doc1.pdf…
0
votes
1 answer

How can I convert an RGB PDF to CMYK with flat black?

I used instructions from here to convert an RGB PDF to CMYK using Ghostscript, and it's mostly OK except all the blacks are "rich" - they use not just K but also CMY inks. Is there a way to convert such that all blacks are "flat" and just use…
polm23
  • 14,456
  • 7
  • 35
  • 59
0
votes
1 answer

How can I convert a PDF to CMYK with different kinds of black?

I have a PDF that I created in Inkscape. I would like to convert it to CMYK for a printing company, but I have one issue - I want to convert some blacks to "rich black" (20/20/20/100) and others to "flat black" (0/0/0/100). I have 60 cards and would…
polm23
  • 14,456
  • 7
  • 35
  • 59
0
votes
1 answer

How to remove background gray color when printing PDF using ghostscript?

My task is to print PDF file using Windows OS and Python. So when I print through my HP printer I get the exact copy of that PDF, but with the gray color background. I generate PDF using PyFPDF library. It works fine. Here is the output of the PDF…
0
votes
1 answer

Why aren't Tesseract and GhostScript recognized as commands?

I have a large batch of PDFs that I can't OCR because they've each got a small field of renderable text. I'm trying to convert them all to TIFF so I can convert back and run OCR, but I'm running into problems invoking the programs that I'd expect to…
bdb484
  • 161
  • 1
  • 11
0
votes
1 answer

python-django Ghostscript apache problem

When I run my app, that converts pdf to png, from django server, the conversion works fine. But when I run this from an apache server, I am getting this error: GhoscriptError: Fatal. Reading from the sterr of ghostscript, it says Initialization…
Ian
  • 1
  • 1
0
votes
0 answers

GhostScript.Net speed up

I am working with transformation of PDF documents into images (jpeg) and I am using GhostScript for this purpose. I work mostly with smaller documents (up to 12 pages) but when I am converting PDFs to images it takes more than 3-7 seconds to do so.…
L.V
  • 151
  • 1
  • 3
  • 9
0
votes
1 answer

Strange error on ghostscript conversion ps to pdf

I am using linux (ubuntu 9.26) version of ghostscript. When I try to convert the postscript file into pdf using the following: $ gs -dNOPAUSE -dBATCH -sOutputFile=test.pdf -sDEVICE=pdfwrite -c . setpdfwrite -f d00040-001.ps The output I get is the…
Panagiotis
  • 1,539
  • 1
  • 14
  • 28
0
votes
1 answer

How can I pass arguments into ps script

I am very new to postscript and ghostscript How can I pass argument into ps file? I have powershell script that make some calculation and store result in variable $par1 after it I execute something like this gswin64c.exe -o "result.pdf"…
JIemON
  • 377
  • 1
  • 6
  • 19
0
votes
1 answer

GhostScript generates a blank PDF file on a specific PDF document

I'm using GhostScript (currently 9.27) to reduce the size of PDF files on my application before uploading them to a file server. The issue I'm facing is that some PDF files are converted to a blank PDF file, however, if I open the original PDF file…
1 2 3
99
100