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.

Filter by
Sorted by
Tagged with
-2
votes
0answers
7 views

About Ghost framework and tracking

Hello I'm using ghost framework on Kali Linux. Lately I've bee thinking that,if we connect to random ADB(android debug bridge) through Ghost framework and sniff the information (knowing it's illegal!)....
-1
votes
1answer
13 views

PDF Files Compression Ghostscript

Can someone check the code and find what is wrong ? I fight with it some time and don't have a clue whats wrong... I get error: '-sDEVICE' is not recognized as an internal or external command, ...
1
vote
2answers
103 views

Ghostscript with mswinpr2 is slow, how to make it faster?

I'm using the following command to print a pdf file. "C:\Program Files\gs\gs9.52\bin\gswin64c.exe" \ -dBATCH \ -dNOPAUSE \ -dFitPage \ -c "mark /OutputFile (%printer%...
1
vote
1answer
78 views

Failing to convert JPG to PDF with GhostScript

I'm trying to apply a recipe shared in other posts, but it fails for a reason I can't understand: c:\tmp>gswin64c -sDEVICE=pdfwrite -o output.pdf "c:\Program Files\gs\gs9.50\lib\viewjpeg.ps" -c "(...
1
vote
1answer
95 views

Print pdf with gsprint.exe error

I'm trying to print a pdf file with the following command: gsprint.exe doc.pdf It writes this error: Current allocation mode is local Last OS error: Permission denied GPL Ghostscript 9.50: ...
0
votes
0answers
17 views

GS command issue in 9.25

We are currently moving our process to from Linux5 which has gs v8.70 to Linux7 which has gs v9.25 - on the exist system Linux5 which has gs v8.70 - we are running the procedure that calls gs and ...
1
vote
1answer
45 views

changes in GS 9.27 for /ebook with CMYK? (black color turns red)

I have a script that reduces sizes of CMYK PDFs. This script works in 9.26 very well, and now I have changed to 9.27 on the staging systems. I see the black color in some PDFs change to red. I just ...
2
votes
0answers
51 views

Unattended PDF merge and print

My company is using an invoicing software that creates 3 ways invoice (original, duplicate and triplicate) as separate files which are sent to printer. We need our printer to staple them automatically ...
0
votes
1answer
90 views

How can I fix a pdf that can only be opened with mupdf?

I have a pdf file which can only be opened with mupdf (both desktop and mobile) I've tried opening the same file with evince, okular, foxit reader and with my kindle paperwhite 2018. I ultimately ...
0
votes
0answers
53 views

Ghostscript: How to include the Apple ImageWriter drivers it used to include?

In the past, Ghostscript used to incorporate these Apple Imagewriter devices: iwhi, iwlo, and iwlq. The version I had been using is gs 8.71 which is not 64-bit compliant. macOS Catalina cannot use it ...
0
votes
1answer
62 views

Universal Command-Line Tool Wrapper

I have a program that calls GhostScript in the background by issuing a shell command with hardcoded(!) parameters. Unfortunately it is impossible to change that in a defined matter and the used ...
1
vote
0answers
106 views

How can I get emacs to print PDF on Windows with pdftools?

If you've walked the emacs road you know how amazingly powerful it can be, and how absolutely useless. Full disclosure: my 4800 line initialization file (soon to be 3000) does manage to load 125 ...
0
votes
1answer
32 views

Is it possible to compress PDFs with Ghostscript and keep cross references intact?

I have since quite some time used the following batch file (or similar ones) to compress my pdfs. C:\"Program Files"\gs\gs9.26\bin\gswin64 -sDEVICE=pdfwrite -dCompatibilityLevel=1.4 -dNOPAUSE -dBATCH ...
0
votes
0answers
14 views

Ghostscript: Keep date and time when converting from PS to PDF?

I use Ghostscript 9.26 to convert (old) Postscript to PDF. Is there a way to set the date and time of the new PDF to the same values as the existing PS? Thanks! Peter
1
vote
0answers
167 views

Imagemagick 7.0.8-59 Error Message when Compressing PDF files

I am trying to compress a PDF with this Command: mogrify -compress jpeg -quality 50 path/to/file/* When running the Command I get this error message: Error: ICCbased space /N value does not match ...
0
votes
0answers
113 views

Converting PDF which contain embedded fonts to PS produces raster text output (jaggies)

A number of PDFs with grayscale text need to be converted to black text while retaining the embedded fonts and therefore keep the ability to select text and render the fonts correctly. The first ...
0
votes
0answers
52 views

error when importing ghostscript module

I am using python 3.7.4 and I need to use ghostscript library I used pip to install it pip install python3-ghostscript pip install ghostscript but when I run import ghostscript in the idle it gives ...
0
votes
0answers
92 views

Cropping PDFs for EPUB conversion using BRISS, Ghostscript and/or Calibre

I have a PDF file which is OCRed. I would like to convert it to epub. The main problem is that I'd like to crop my pdf so I do not have duplicate Headers or Page Numbers in my epub. I have tried first ...
1
vote
0answers
470 views

Print to PDF with Ghostscript: output is PS, not PDF (using MFILEMON)

Shouldn't PDF files start with %PDF? I'm attempting to use MFILEMON 1.5.2, as recommended here on Stack Overflow, and GhostScript 9.26 to create a "Print to PDF" printer on a fresh Windows 10 ...
1
vote
1answer
51 views

Ghostscript's /ebook preset creating some undesired effect on PDF but /printer doesn't

I would like to use ghostscript (version 9.27) to batch compress big quantities of pdf files. The best option for me regarding compress ratio is -dPDFSETTINGS=/ebook, since it is able to reduce my ...
0
votes
0answers
322 views

Ghostscript - append merge pdf into single file

I need to merge multiple pdf's into single file which I'm doing like this: gs -q -sDEVICE=pdfwrite -sOutputFile=aio.pdf aio_single.pdf another.pdf and it is working, but it is extremely slow (~5 ...
1
vote
0answers
31 views

Why, just after installing Gostscript 9.27 on my Mac OS 10.13, I can not print PDFs anymore?

Just after installing Ghostscript-9.27 on Mac OS 10.13 (to work on Scribus), my printers refuse to print PDFs, while it prints other file formats. The printer indicates: Stopped - Failed to "Filter" ...
1
vote
1answer
32 views

PDF preview black on iPhone/Mac+Safari

Does anyone have a clue why on PDF previews some areas are turning black on iPhone, iPad or Mac+Safari? Everything works fine in Windows with any browser. We are linking from our website straight to ...
1
vote
1answer
841 views

Compress PDF to 2MB or less

I have PDF files, tonnes (~1000) of them for a government report, varying from 600kb to 500MB. Problem is that the portal only allows upload of files up to 2MB. I have Windows (which I find fairly ...
2
votes
1answer
342 views

Rendering any latex in Inkscape does not work anymore

The issue is being discussed on Inkscape's repository here: https://gitlab.com/inkscape/extensions/issues/73 Since I last upgraded Inkscape 0.92.4 (45b59e7, 2019-03-20), and probably its dependencies ...
1
vote
1answer
44 views

Working with glyphs from multiple documents to rearrange a PDF

I am doing some editing on an old PDF comprising vector text and math formulae. Precisely I am extracting one of the problems of an exam paper, so after extracting the corresponding pages, I still ...
2
votes
1answer
311 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
576 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
2answers
565 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
704 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
789 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
104 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
129 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
238 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
237 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
839 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
256 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
444 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
560 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 ...
4
votes
1answer
519 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
841 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 ...
4
votes
2answers
1k 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
240 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
392 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
38 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
267 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
988 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
411 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
1k 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
203 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 ...