Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

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. Its main purposes are the rasterization or rendering of such page description language files, for the display or printing of document pages, and the conversion between PostScript and PDF files.

0
votes
0answers
22 views

Ghostscript - getting “pdfsettings=/ebook” into individual arguments?

I’m creating pdf's for a RIP-engine Sometimes I have to convert all fonts to outlines and maybe 1/1000 of those pdfs will get stuck while ripping. For the conversion to outlines I use: gs -dBATCH -...
2
votes
1answer
11 views

Change format of images (from PS to EPS) using Ghostscript

I have a question from experts in using Ghostscript. I am new in using this software. How can I change the format of an image from PS to EPS using Ghostscript?
1
vote
1answer
38 views

Powershell Convert new files to tiff

I have a powershell script that I frankensteined together that looks at a folder for newly added files, then moves those files to another folder that then gets converted using ghostscript to a .tif. ...
0
votes
0answers
18 views

Ghostscript 9.25 freezing/locking in command prompt console

I am seeing some freezing/locking in using Ghostscript 9.25 in the command prompt console. I am batch converting PDF to TIFF. It seem very sporadic but at some point during the conversion it will ...
0
votes
2answers
21 views

How can I create a .prn file from a TIFF?

I have an industrial printer that requires .prn files to print. I'd like to automate generation of these files using software I write. We start with TIFF files, and then we use special software from ...
0
votes
1answer
70 views

install ghostscript 9.25 in Ubuntu

I come across this issue and need to downgrade ghostscript to 9.25. Current Ghostscript version is 9.26 but I need to install 9.25 on my Ubuntu 18.04. Is there any way to do that properly with '...
1
vote
1answer
39 views

Unable to execute Ghostscript from command prompt

I have been using this code to reduce the size of a pdf file: cd C:\Program Files\gs\gs9.25\bin gswin64c.exe –h Gswin64c –sDEVICE=pdfwrite –dCompatibilityLevel=1.4 –dPDFSETTINGS=/printer –dNOPAUSE –...
0
votes
1answer
37 views

How to split colored and grayscale pages of a PDF?

How do I split colored and grayscale pages of a PDF in Linux, so I can print with less cost?
1
vote
0answers
27 views

How to change screening (halftone pattern) of my printer Cups driver?

I am using CUPS with the printer driver which use "application/vnd.cups-raster 10 rastertopj" and i am trying to get the look of dither 4x4 print/output but i am clueless where to change the setting ...
1
vote
0answers
98 views

Adding margin to rasterized PDF using ghostscript

I'm cropping and rasterizing some PDFs using ImageMagick. In order to remove some text that I don't need, I want to crop to a smaller box than needed and then readjusting the page size adding some ...
0
votes
1answer
127 views

Ghostscript install on Windows

I've installed Ghostscript on Windows but there seems to be a bug. The executable gs9win64.exe won't run any commands. Always gives me similar error messages. Even if I just give it: GS> -h (...
0
votes
1answer
401 views

How do I batch extract first page of multiple pdfs

I know there is another thread with many answers for this question; however, I am a newbie and a lot of that was gibberish to me. I am trying to learn though:) Anyway, I've installed ghostscript and ...
0
votes
0answers
56 views

ghostpdf.inf (Ghostscript) not working under Windows NT 4.0

Long story short , i need for a program to install a printer with the ghostpdf.inf Driver of Ghostscript (32bit). Unfortunatley, the Driver cant be installed due to "different architecture" (although ...
0
votes
0answers
144 views

Ghostscript / GhostPDF print several pages into one PDF

I need to print several times different pages and gather them into a final resulting PDF. I have had this setup and configuration on a company laptop a few years ago but I can't get it to work now on ...
0
votes
1answer
243 views

GhostScript | LibreOffice. Is there a way to change page order before printing?

I've got one typed story to print as a small (A5) book, and my wife is willing to sew pages together. But one problem is, pages in document must be in specific order: 4-1-2-3-8-5-6-7-etc. First I ...
0
votes
1answer
276 views

Ghostscript - create a pdf with multiple identical pages and keep size down

Im trying to use Ghostscript to create a PDF with multiple identical pages. I will later use this together with another multipaged PDF to stamp on unique information onto every page. Is it possible ...
3
votes
0answers
249 views

GhostScript 9.20 - successor to -dUseCIEColor?

I'm using a script to batch convert scanned PDF 1.4 (or before) to PDF/A-1b. The script looks like this: #!/bin/bash for i in *.pdf; do gs -dPDFA -dBATCH -dNOPAUSE -dUseCIEColor -sProcessColorModel=...
1
vote
1answer
497 views

Uninstall GhostScript installed from source on CentOS server

I have installed GhostScript 9.21 from source into /usr/local and want to remove it and use the OS-default version instead. The GS Makefile has no "uninstall" option and I cannot find any articles ...
2
votes
2answers
544 views

Ghostscript unknown device “psmono”

Several pages in Internet and several answers here in StackExchange contains ghostscript commands whith the option -sDEVICE=psmono. But when I execute those commands, the ghostscript returns an error ...
0
votes
1answer
190 views

GhostScript: rendering PDF fonts as glyphs - aborts because 'Could not find default_gray.icc'

This script used to work for me, rendering fonts in a PDF as glyph paths so they don't come out crippled when editing the file in Inkscape: #!/bin/sh if [ "x$1" = "x" -o "x$2" = "x" ]; then echo ...
1
vote
1answer
292 views

pdfcreator and ghostscript : create PDF with text not compressed

We are using PDFcreator 2.3.2. It installs and calls Ghostscript 9.11 to create the PDF output. We have to create PDFs with inside text not compressed. The text inside the PDFs must be ASCII or ...
0
votes
0answers
34 views

How to make notes of pdf files having around 500 pages?

I am using Ms windows and i am looking for a software that would enable me to make notes of pdf files. For pdf files, i use foxit reader and in my phd, i have to make notes of multiple papers. Right ...
0
votes
1answer
131 views

Get a comma-separted list of color pages in PDF

How do I get a comma-separated list of all color pages in my PDF file? Thanks to this answer I can get a list of all Page numbers and a note for a color page. gs -o - -sDEVICE=inkcov input.pdf | ...
1
vote
0answers
689 views

How to create a correct (grayscale) PDF/X-3 file using Ghostscript

I’m trying to convert arbitrary PDF files (a magazine created with pdfLaTeX, containing some photos, but also some graphics such as webcomics) to valid PDF/X-3 using Ghostscript and I want the result ...
-1
votes
1answer
283 views

OCR messed up by Ghostscript

Last year there was a bug found in Ghostscript. It is documented here: http://bugs.ghostscript.com/show_bug.cgi?id=696116 It is marked Status: RESOLVED WONTFIX In the end the assignee, Ken Sharp,...
2
votes
1answer
890 views

Make ghostscript run from Windows command line natively

My problem: I am using Python to print plots which I usually output as .pdf file. Now I want to use .eps files, but Ghostscript is required (which I noticed because my Python console gave the error "...
2
votes
0answers
173 views

Funny OCR-situation

I have a multipage scanned 300 dpi PDF-file on an Ubuntu 16.04 system. When I run the following command: pdfocr -t -l swe -i *.pdf -o newfile.pdf It results in a perfectly OCR-read file. Every ...
0
votes
0answers
1k views

Converting PJL/PCL to pdf

I have a non-readable PJL file, which I try to convert into something human-readable (e.g. pdf). The PJL commands are as follows (followed by the actual print-job): %-12345X@PJL JOB NAME = "{**...
1
vote
1answer
662 views

PDF from ghostscript appears blank in acrobat reader

I have (3 pretty large) PDF files which I obtain using ghostscript from a single source pdf generated with xelatex (both under ubuntu linux). The 3 files select different regions from the source, like ...
2
votes
1answer
300 views

gsview 5.0 crashes when zoom in/out in

I installed Ghostscipt 9.18 and GSView 5.0 on Windows 7 Ultimate (all in 64 bits). I had no problem to view a .ps file in GSView, but when I zoom in/out, GSView crashed, and returned "...
0
votes
0answers
287 views

Cut-paste produces squares from a PDF created with GNU Ghostscript

A PDF from the net looks fine in Chrome or PDF reader/editor, viz: However, if I try to copy-paste that page, either to MS word or a text editor, this is what I get: I tried the suggestions of PDF ...
1
vote
2answers
1k views

How can I split PDF file into layers

I have a large PDF file containing a map. The PDF file was probably generated with AutoCAD. The image consists of a coloured raster map, and a vector with lines on top of the map. (Street lines etc.) ...
2
votes
3answers
7k views

Installing Ghostscript in Linux

I'm trying to install Ghostscript on my web server but the instructions on the website don't seem to work for me. I'm logged into my ssh terminal. I type in: wget http://downloads.ghostscript.com/...
1
vote
0answers
409 views

Ghostscript - Does it support .plt / HPGL file conversion?

I have a very low level HPGL plot file that is an output from a CNC optimization program. The file is designed to be printed. When I send it directly to a printer like a Xerox or a Savin using good ...
1
vote
0answers
216 views

Disk space used by ImageMagick/Ghostscript

I have a 200 MB PDF file input.pdf consisting of scanned images, whose resolution I want to reduce. Under Windows 7 the following command convert -density 200x200 -quality 60 -compress jpeg input....
2
votes
1answer
374 views

Ghostscript — Stay In Interactive Mode

When I pipe postscript data into the gs program, gs interprets the data and then immediately exits. This matches the man page: - This is not really a switch, but indicates to Ghostscript ...
1
vote
3answers
4k views

How to convert TIFF to PDF using Ghostscript

How can I convert TIFF to PDF using Ghostscript? I tried to use the code below but it not working: Snippet $input_file_tif='test.pdf'; $input_file_orig_name='1234.tiff'; $gs_command = "gs -q -...
2
votes
3answers
4k views

GhostScript print to network printer in silent mode

I'm trying to print PDF from command line to network printer in silenta mode. Unfortunately, Ghost Script opens Windows printer dialog. I use Windows 2008 R2 Server. My command is: gswin64c.exe -...
4
votes
1answer
9k views

Add gutter (binding margin) to existing PDF file

How can I add a gutter margin (different for odd and even pages) to a PDF document so that there is room to hole-punch it after I print it? I am familiar with Ghostscript and the Linux Terminal but ...
0
votes
1answer
140 views

Repair borken Postscript file which only ubuntu opens

I try to convert the postscript file from the link to a pdf which I can view in any computer. When I try to convert it I get error about the stack: Error: /rangecheck in --getinterval-- Operand stack:...
1
vote
0answers
3k views

Converting MS Word File to PDF and then converting to CMYK PDF for Offset Printing

I am a newbie to the knowledge of offset printing, what I am trying to do is to use MS Word 2007 to create a document containing both words and scanned images, and then use the PDFCreator software to ...
3
votes
1answer
2k views

ImageMagick: wrong size when converting PDF to JPG

I want to apply some improvements (change brightness, contrast, etc) to a pdf, to make it more readable, so I chose ImageMagick and pdftk. I used the following command to split the pdf into several ...
2
votes
0answers
679 views

Ghostscript and JPEG2000 images

Using gs 8.71, RedHat I'm having trouble converting pdf files that have jpeg2000 images embedded within. Part of the coding is to reduce the pdf image by 10% using the -c <> setpagedevice command....
4
votes
1answer
10k views

How to print with ghostscript in silent mode

I am using the following Ghostscript command to print a postscript document: C:\Program Files\gs\gs9.14\bin>gswin64c.exe -sDEVICE=mswinpr2 testprinter.ps This command opens a Print dialog where I ...
0
votes
2answers
4k views

Printer Job Language --> PDF

I have received a non-human readable file which I would like to make human readable. How would I go about getting the text content from the following file: thufir@dur:~/Documents$ thufir@dur:~/...
0
votes
0answers
71 views

PostScript - Infinite paper size

I've been making a program for a project of mine that creates a PostScript file whose output then I have to analyze. The problem is indeed in the output, since the graphics consist of some hundred ...
0
votes
0answers
3k views

Tesseract couldn't load any languages

Running tesseract makebox command produced me the following error Error opening data file /opt/local/share/tessdata/eng.traineddata Please make sure the TESSDATA_PREFIX environment variable is set to ...
1
vote
1answer
4k views

Merge pdf and remove pages in one pass

I'd like to concatenate pdf documents without loosing any information (image resampling etc.). I only want to do lossless compressions, consolidate fonts etc. Before merging, I'd like to remove the ...
2
votes
3answers
7k views

How to upgrade Ghostscript to 9.x on CentOS 6.5

Hi how would I go about upgrading Ghostscript to the latest version on CentOS 6.5 64bit? Yum installs version 8.7, we're having an issue with gs processes not ending so I'm hoping an upgrade may sort ...
2
votes
0answers
566 views

Convert PDF image into true grayscale?

Following the answers to this post I get the following script: #!/bin/bash gs \ -sOutputFile=/tmp/output.pdf \ -sDEVICE=pdfwrite \ -sColorConversionStrategy=Gray \ -...