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

paper size not proper in output pdf ghostscript

I try to resize pdf by ghostscript command line but output pdf papersize not according to input i m using command gswin64c.exe -o E:\output.pdf -dBATCH -dNOPAUSE -dDOPDFMARKS -sDEVICE=pdfwrite -dFIXEDMEDIA -dPDFFitPage -dDEVICEWIDTHPOINTS=396…
0
votes
1 answer

GhostScript Unrecoverable error: invalidfileaccess in .addcontrolpath

I installed ghostscript on windows and added it to path variable but I'm still getting gs is not recognizes as internal or external command I tried to run the .exe file to check the installation and it says This software us supplied under the GNU…
0
votes
1 answer

Annotate specific text in pdf using ghost script

I am trying to extract entities from the pdf and mark it back to pdf using pdf annotation. Is there any way I can annotate specific text using ghostscript? Thanks
Mahek Shah
  • 485
  • 2
  • 5
  • 17
0
votes
1 answer

Ghostscript Text Extraction Time?

I am Extracting Text from pdf and for that i am using Ghostscript v9.52 The time taken by ghostscript with default txtwrite commands is ~400ms and the commands are: -dSafer -dBATCH -dNOPAUSE -sPDFPassword=thispdf -device="txtwrite" stdout…
andastew
  • 1
  • 4
0
votes
0 answers

imagemagick consuming all of ram then giving a core dump

I am doing a simple convert -verbose -density 300 input.pdf -quality 100 image-%003d.jpg which splits a pdf file into a series of images, one for each page. In this case, I am doing this on a large 800 page document. Not sure exactly what is…
T. Zack Crawford
  • 7,646
  • 3
  • 11
  • 18
0
votes
1 answer

How to add TrimBox and BleedBox without fonts being rasterized

I want Ghostscript to prepare PDFs for print production. The input PDF (Version 1.3) is in RGB, uses transparency and has crop marks. Convert colors to CMYK by applying an ICC profile Add a TrimBox and a BleedBox I managed to achieve the steps…
Sev
  • 533
  • 3
  • 7
0
votes
1 answer

How do you use Python Ghostscript's high-level interface to convert a .pdf file into multiple .png files?

I am trying to convert a .pdf file into several .png files using Ghostscript in Python. The other answers on here were pretty old hence this new thread. The following code was given as an example on pypi.org of the 'high level' interface, and I am…
Tom1
  • 3
  • 2
0
votes
1 answer

How to transfer OCR text from one PDF to another PDF?

I have two versions of one same scanned PDF. One of them has an OCR layer. How can I transfer the layer to the other one? I already install Ghostscript, but I don't know what to do next. How to Use Ghostscript
Ooker
  • 1,969
  • 4
  • 28
  • 58
0
votes
2 answers

GS Firebase function can't set offset?

I am using firebase functions to crop certain area of pdf and convert them to image using ghostscript [The wrapper https://www.npmjs.com/package/node-gs and compiled version of gs v9.2 "https://github.com/sina-masnadi/node-gs/tarball/master" ] and…
jecol
  • 21
  • 7
0
votes
1 answer

Installing fig2pdf on macOS

I am trying to install fig2pdf library on my macbook, which uses macOS Catalina. The idea is to convert the fig file created by xfig to pdf with the Latex operations. I downloaded the relevant linux executable files from this link.…
0
votes
1 answer

How to change Ghostscript output file (in printer spooler) in Python

I'm trying to print a pdf file with ghostscript in Python3. I tried to write this code in Python. os.chdir(documents_dir) file = "myFile.pdf" args = '"C:\\\\Program Files\\\\gs\\\\gs9.52\\\\bin\\\\gswin64c" ' \ '-dBATCH ' \ '-dNOPAUSE…
xralf
  • 3,312
  • 45
  • 129
  • 200
0
votes
1 answer

Postscript to PDF with EPS reference

I am trying to convert a PS file to PDF via Ghostscript (version 9.52). My problem is that the PS file has a reference to an external EPS file, this is a logo file which is normally in the printer memory. I have the source of this EPS file as well.…
Robe Elckers
  • 967
  • 1
  • 6
  • 19
0
votes
1 answer

Akeneo Install Error - Install the Ghostscript executable at least 9.27 version

I want to install Akeneo with: php7-73STABLE-CLI -c /kunden/xxxxx/webseiten/web/akeneo/pim-community-standard/D3066475_php7.ini bin/console pim:install --force --symlink --clean --env=dev But i get the following error: Install the Ghostscript…
0
votes
0 answers

Is there a thread-safe way to consume GhostScript via ImageMagick (.NET)?

I am writing an API using ImageMagick.NET (from here: https://www.nuget.org/packages/Magick.NET-Q8-AnyCPU/) and GhostScript (from here: https://www.ghostscript.com/download.html) to turn a pdf into an image thumbnail: var thumbnailStream =…
Luke W
  • 63
  • 9
0
votes
1 answer

Ghostscript 9.26 build fails on PowerPC (ppc64le) architecture

I am trying to build Ghostscript 9.26 on rhel 7.6 ppc64le. However the make command fails with: ERROR: ./sobin/libgs.so: undefined reference to 'png_init_filter_functions_vsx' collect2: error: ld returned 1 exit status Python version: Python…
AishwaryaK
  • 61
  • 2
  • 11