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

Unable to locate Ghostscript on paths

image_eps = 'test.eps' im = Image.open(image_eps) fig = im.convert('RGBA') raise OSError("Unable to locate Ghostscript on paths") OSError: Unable to locate Ghostscript on paths the error comes from here: EpslmagePlugin.py for…
Illu
  • 31
  • 6
0
votes
1 answer

Failed to Convert PDF First Page Document to Image Thumbnail in PHP CodeIngiter

I'm using Ghostscript 9.50 and ImageMagick 7.0.9 to generate first page thumbnail from uploaded PDF documents. Here's my code I've got from http://www.rainbodesign.com/pub/image-tools/pdf-to-jpg.html then I use it as a function in my Ebook…
0
votes
2 answers

Can ghostscript.net divide a PDF file to multiple sections?

I have a very long PDF file (58x500 inches). The goal is to divide one large vector pdf file to a certain percentage. For example %25 = 125 inches in height while the width stay the same. So one large pdf will be divided into 4 pages. ImageMagick…
Lestrin
  • 3
  • 1
0
votes
1 answer

Ghostscript pdf conversion makes ligatures unable to copy & paste

I have a pdf (created with latex with \usepackage[a-2b]{pdfx}) where I am able to correctly copy & paste ligatures, i.e., "fi" gets pasted in my text editor as "fi". The pdf is quite large, so I'm trying to reduce its size with this ghostscript…
cod3licious
  • 319
  • 3
  • 12
0
votes
1 answer

How To Setup Postscript MediaBox, BleedBox, and TrimBox with Ghostscript

I'm trying to setup a book to print at Blurb.com. I'm preparing the PDF and want to setup the MediaBox, Bleedbox, and TrimBox to confirm that my document is setup correctly for printing. There is an existing question here about the BleedBox, but,…
EricB
  • 468
  • 3
  • 9
0
votes
0 answers

Convert RGB Color in SVG to Spot Color in PDF

we are building an web application to design print products online. There are also some special finishes available for print. For example gold foil. There for we have to define the color in the final PDF in a specific way. It has to be a spot color…
Chris
  • 17
  • 3
0
votes
2 answers

Ghostscript: Convert CMYK Color to solid color with specific name

is it possible to convert specific cmyk colors in pdf generation process? In my case I have simulated colors for the customer like for example gold with value C15 M30 Y70 K20. This color must be replaced for the printer who uses a real gold foil.…
Chris
  • 17
  • 3
0
votes
1 answer

ghostscript:lost pdf original embedded font

When I use command gs -sDEVICE=pdfwrite -dNOPAUSE -dBATCH -dNOOUTERSAVE -dSAFER -dPDFSETTINGS=/prepress -dCompressFonts=true -dSubsetFonts=false -dEmbedAllFonts=true -sColorConversionStrategy=RGB -dCompatibilityLevel=1.6 -sOutputFile=output.pdf…
tiny
  • 11
  • 3
0
votes
0 answers

Trouble With AForge-based OMR Reading

I am currently working with an opensource piece of Optical Mark Recognition software that uses Ghostscript and AForge for graphics processing. The software is basically designed to read when a student has marked a bubble on a test form, e.g., by…
Simon Ward
  • 73
  • 7
0
votes
1 answer

Ghostscript makes text unsearchable after converting to pdf

Starting with a pdf file, in which all texts are searchable, I transform it to a new ps file with this command: gswin64c -q -dSAFER -dNOPAUSE -dBATCH -sDEVICE=ps2write -dDOPDFMARKS -dLanguageLevel=2 -sOutputFile="new.ps" "old.pdf" After that I…
0
votes
1 answer

Batch editor for PDF file metadata

Apologies if this has been asked before. I'm after a way of batch editing the metadata (title, author, keywords mainly) of a lot of PDF files. I can edit them individually but I've got over 100 files to edit (for Calibre) and I can't find any…
MrMills
  • 151
  • 11
0
votes
2 answers

PostScript/PCL - Get document page info: page size, bw/color

I need to determine document page information from a postscript or a pcl file. Preferably in Java, but Ghostscript/Ghostpcl is as good as well. What I tried to get the following info: Page color This can be achieved with ghostscript/ghostpcl using…
CAA
  • 23
  • 4
0
votes
0 answers

Symfony, Ghost Script, shell_exec not working from inside of application but will from terminal

I am running Symfony and Ghostscript and I cannot get shell_exec to execute the script. Simple test to make sure shell_exec() works inside of Symfony: it works, I can see the directory structure $output = shell_exec('ls') and output the results ...…
LargeTuna
  • 2,694
  • 7
  • 46
  • 92
0
votes
1 answer

How to retain unprocessed pages in PDF while running Ghostscript processing?

I am running a gs script that converts range of PDF pages into grey scale. Once complete it generates an output file by removing the pages that were not in given in the -sPageList parameter. Does gs has an option to retain unprocessed pages? I have…
TeaCupApp
  • 11,316
  • 18
  • 70
  • 150
0
votes
1 answer

Ghostscript Unable to Convert PDF to PNG: nostringval

I get the following stdout error when attemping to convert a PDF to a PNG. Anyone have an idea what is wrong with the PDF file? This problem only affects certain PDF files and this particular PDF was actually split out of a larger PDF, resized &…
Badrush
  • 1,247
  • 1
  • 17
  • 35
1 2 3
99
100