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

How to get Microsoft Word print docx right with my virtual printer using ghostscript?

I am implementing a program that is the same as google cloud printer. It is a virtual printer using postscript class driver. As the picture shows(I add the 64 suffix). The chinese translating to english is Helpfile, ConfigurationFile DataFile…
Shadow fiend
  • 753
  • 5
  • 7
0
votes
0 answers

Cropping left and right white spaces/margins PDF 2 PDF- Ghostscript

I am trying to remove left and right right white spaces of PDF and here is what I have written: gswin64c.exe -sDEVICE=pdfwrite -sOutputFile=c:\test\test\out\IEq3_8.5011.pdf -dPDFSETTINGS=/prepress -c "<> setpagedevice" -f…
PC245
  • 21
  • 3
0
votes
1 answer

How to get the print parameters using redmon and ghostscript?

I am using redmon and ghostscript to create a pdf printer. The first step is to convert the document to pdf format(ghostscript can help do this). Then I need to get the print parameters(collate, color, copies .etc) when user prints. Finally I will…
Shadow fiend
  • 753
  • 5
  • 7
0
votes
1 answer

Ghostscript with LaTeX and rotate page

I am using this command with gs 9.5 for LaTeX pdfs gswin64c -sDEVICE=pdfwrite -dCompatibilityLevel=1.4 -dNOPAUSE -dQUIET -dBATCH -dPrinted=false -sOutputFile=foo-compressed.pdf foo.pdf All works well, except that single pages I rotated in LaTeX…
togedo
  • 31
  • 5
0
votes
0 answers

Replacement PDFTK with ghostscript

We've just moved hosting to a new server and hosting company. After the moved we've noticed there's a function we've missed during testing. The function creates PDFs with pdftk: exec('pdftk mypdf.pdf fill_form mydata.fdf output myoutput.pdf…
lufi
  • 610
  • 7
  • 29
0
votes
0 answers

Problem with execution of a self-built ghostscript binary on Linux

I've been trying, for a few days now, to run GhostScript on a Red Hat 7.3.1 Server, without success. I tried running the binary provided by Ghostscript, but got a "bad ELF interpreter" error, and can't build from source code on this server, due to…
frtey
  • 1
0
votes
1 answer

Ghostscript PDF fonts becomes boxes in Adobe Illustrator where as its output is fine when opened in Adobe Acrobat

I need to convert the PDF of RGB color space to Grayscale using commandline tool supporting for Windows and Linux. When i used Ghostscript the conversion is happening but when the output is opened in illustrator the fonts were shown as boxes. Is…
Bhanu
  • 1
  • 3
0
votes
3 answers

How to modify this plaintext-to-PDF-converting PostScript from 1992 to actually specify a page size?

I'm trying to convert a plaintext document to PDF. The only method which has come anywhere close to actually working is installing "GhostScript" and then using the following PostScript script, dug up by the SE user @RedGrittyBrick (thanks), which…
user12803174
0
votes
1 answer

Does Ghostscript absolutely need root access on Linux?

I made a program trying to see how many color pages are on an uploaded PDF file, using Ghostscript. Now, it worked perfectly on my local environment, but I can't put the site online, as the web hosting service I use tells me that any application…
frtey
  • 1
0
votes
1 answer

Is there any way to write tray switch and Duplex command in Postscript file converted using Ghostscript

I have converted PDF to Postscript using ghostscript. The output generated is in encrypted format. I want to add Tray Switch and Duplex Printing command inside the Postscript so that printer is able to follow those. Is there any way to…
Prasun
  • 1
0
votes
1 answer

Appending PostScript files

I have been looking into appending PostScript files and tools available to do so. One option that seems commonly used is GhostScript. I was able to get this to append files together however in the process I lost the /MediaPosition settings that…
0
votes
1 answer

Converting a BMP to another file image type using GhostSCript

I have a .bmp image file, and always returns the error when i convert from a bitmap: gs -sDEVICE=png256 -o ./teste.png ./teste.bmp Returns: GPL Ghostscript 9.26 (2018-11-20) Copyright (C) 2018 Artifex Software, Inc. All rights reserved. This…
0
votes
0 answers

Why Ghostscript doesn't work with some pdf

I have installed the latest version of Ghostscript (9.50) and use it to convert pdf files to version 1.4. It works very well but I have encountered a file that cannot convert. The file is 240kb, without protection, one page, pdf version 1.6. When I…
Francesco
  • 1
  • 2
0
votes
1 answer

Crop or Trim a Section from a PDF using C# .Net and Ghostscript

I am trying to take in a PDF File which has in the center a vector graphic , however it has text and other logos around the page that i do not need. I need to extract the vector portion of the File only, so far below what i have been able to do is…
Brett
  • 43
  • 1
  • 5
0
votes
0 answers

What happened to gsview 9.27 when ps2pdf

Could you help me look into below: we encountered ps2pdf conversion issue when we started to use gsview ghost script 9.27, before that it works all fine. We tried to convert .ps file to .pdf file but it hit error as…
cyoore
  • 1
  • 1