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 ...

learn more… | top users | synonyms

51
votes
4answers
66k views

How can I fix/repair a corrupted PDF file?

Does anyone have any recommendation or procedures for repairing a corrupt PDF? When I open the file I get "There was an error opening this document. the file is damaged and cannot be repaired." ...
0
votes
0answers
41 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 = "{**...
0
votes
0answers
14 views

Scale PDF down for Kindle

I'm having a large scanned PDF, which I want to read on my Kindle. However, due to the quality of the scanned images, it looks terrible. However, I noticed the images are huge (4000x9000). I opened ...
1
vote
2answers
326 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 -...
1
vote
3answers
4k 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 ...
1
vote
1answer
37 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 ...
1
vote
1answer
76 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 "...
9
votes
4answers
7k views

Batch remove comments from PDF files

How can I easily remove all comments and annotations (added with Foxit Reader) from all the PDFs in a folder?
0
votes
1answer
162 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.) ...
12
votes
1answer
7k views

Use Ghostscript, but tell it to not reprocess images?

I have a PDF that has already compressed and somewhat artifact-y images, and I'm using Ghostscript to prepend a title page to that PDF. However, I cannot find any way to tell GS to just use the ...
0
votes
0answers
53 views

PDF Creator 1.5 and Ghostscript

I would like to define a Ghostscript parameter within PDF Creator 1.5. I am using this PDF Creation software to print to PDF from a proprietary ERP system. When printing, the document is oriented to ...
0
votes
0answers
176 views

GSView 5 and GSView 6

I bought a new Windows 8 computer and installed the latest Ghostscript and GSView on it. However the GSView I installed does not work the way I expected. I seem to have a different program of the ...
0
votes
0answers
34 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 ...
0
votes
0answers
11 views

Ghostscript gray area option in PDF printing

I have a pdf file that has a gray rectangle area around text. shading a area so it stands out. When I print the pdf via Adobe Reader the PDF file prints nice. When I print the PDF via ghostscript,...
0
votes
0answers
13 views

Helping with pdf border

Thanks for help in Advance, I have pdf and I want to add border in that pdf with white color, i.e left,right,top ,bottom can someone hep me regarding this I am comfortable with ghostscript
3
votes
1answer
2k 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 ...
29
votes
4answers
22k views

How can I split a PDF's pages down the middle?

Does anyone know of a good way to split a pdf's pages down the middle into two new pages? To be clear, I'm not trying to split out already existing pages from a pdf; I am trying to create two new ...
0
votes
2answers
274 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/...
7
votes
2answers
2k views

Multiple pages per sheet (PDF)

I use the following ghostscript commands pdf2ps input.pdf - | psnup -pA4 -4 >> output.ps ps2pdf output.ps output.pdf rm output.ps to merge multiple pages (in this case 4) from input file to ...
3
votes
1answer
937 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 ...
1
vote
0answers
96 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 ...
6
votes
8answers
10k views

Free PDF printers produce ugly images?

Both PDF Creator and Bulldog PDF Printer produce terrible looking on-screen results with simple images in Word documents (haven't tried from other applications). By simple images, I mean GIF, JPEG or ...
1
vote
0answers
94 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....
0
votes
0answers
30 views

create one Legal/A4 sized pdf out of a 2 page pdf document using ghostscript

I have a two page pdf. First page Fully filled, second with just two lines. I want to convert this file into a single page pdf (Legal/A4). Please help.
8
votes
4answers
20k views

Where are ghostscript options / switches documented?

I know there is a Ghostscript option, for instance -dPDFSETTINGS=/screen - where is that documented? How can I see what other options it accepts, appart from screen? Also, -dMaxSubsetPct=100 - what ...
3
votes
2answers
1k views

Ghostscript creates huge temporary file

Our web application converts pdf to png using ghostscript. Recently, a huge, over 60GB, temporary files was created on /tmp directory. Load average raised up to 18 near the time when this file was ...
0
votes
0answers
83 views

Fixing a new target for cut/corrupt PDF index bookmark/links?

Consider a PDF, made with this Latex code, test.tex (compiles with calling pdflatex test.tex twice): \documentclass[12pt,twoside,openright,letterpaper]{book} \usepackage{xcolor} \colorlet{linkcolr}{...
1
vote
0answers
64 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
1k 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 -...
1
vote
1answer
2k views

Resize A4 PDF to SRA4 and center content

I'd like to be able to resize an A4 PDF to the slightly bigger SRA4 format, used by printing professionals. The content shouldn't be resized, but only centered. In other words, I'd like to add margins ...
4
votes
3answers
1k views

How to embed fonts into PDF

I have a pdf file, and I want to know if I can embed/subset all its fonts into PDF file itself? Is there any tool supporting this operation?
0
votes
1answer
79 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:...
0
votes
0answers
1k 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 ...
1
vote
1answer
242 views

Best settings to convert massive pdf hiking maps to images using ghostscript/imagemagick

I did convert all of the Te Araroa Hiking Maps from PDFs to JPEGs so far. The original maps are 16-64MB PDFs, which take forever to load on my Android Phone. I converted them using Ghostscript and ...
2
votes
2answers
2k views

PDFCreator set “PDF Producer” meta attribute

I am trying to find a way to create a PDF using pdfcreator and set the PDF Producer to something other than ghostscript v*. For some odd reason the program I am piping the Pdf file to will only ...
14
votes
6answers
10k views

Linux-based tool to chop PDFs into multiple pages [closed]

I've got a bunch of PDF files that have been produced two "real" pages to a single PDF page; I'd like to chop these in half and put each half on a separate page. Essentially, I need something ...
2
votes
0answers
311 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....
0
votes
1answer
1k 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
2answers
4k views

Formatting pdf for kindle

I started with a scan of a book which was a two-column PDF, I then used the gs methods outlined in this thread to put the PDF into single page format, which worked great. This looks good on the PC ...
3
votes
1answer
3k 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 ...
4
votes
3answers
2k views

Alternatives to gsview/ghostscript for Windows [closed]

Are there more user-friendly alternatives to gsview/ghostcript for Windows?
0
votes
0answers
39 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
1k 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
2k 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 ...
13
votes
6answers
20k views

Converting a PDF to black & white with ghostscript

Similarly to this question: Convert a PDF to greyscale on the command line in FLOSS? I have a PDF-document and want to convert it to pure black and white. So I want to discard halftones. To ...
2
votes
0answers
162 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 \ -...
0
votes
1answer
1k views

Resize PDF pages and expand white background

What I Have I have a PDF containing a series of photos. Each photo occupies an entire A4-sized page. That is, each page of the PDF contains 1 photo, and there is no border/background/canvas showing ...
1
vote
3answers
3k views

GhostScript - attempting to reduce the file size of a PDF - error

I'm trying to reduce the file size of a PDF using GhostScript. Generally, this works: gswin32c -sDEVICE=pdfwrite -sOutputFile=out.pdf in.pdf I think it gets rid of bookmarks, annotations, etc. On ...
0
votes
1answer
2k views

PDFCreator renders badly an image with gradients embedded in a document

I have MS-Word 2003 and need to transform a .doc file into a pdf. For this reason, I installed PDFCreator and tried to print to the virtual printer. The pdf file is created, but observing the result ...
2
votes
4answers
3k views

Activate comments in PDF

I am generating PDF files with pdflatex and I would like my PDF to allow comments/annotations (without having to use Acrobat Professional to write the comments). pdflatex cannot enable comments in PDF ...