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

0
votes
0answers
8 views

bchb.pfa missing in CentOS 6

With some application, I get the following error message in CentOS 6.6: FreeType: couldn't open face /usr/share/fonts/default/ghostscript/bchb.pfa: 1 Indeed, when I "ls" this directory it contains ...
0
votes
0answers
12 views

Create PDF with open option Actual Size or 125%

I would like to create a pdf with the following attributes: document Options: Show = Page Page Layout = Single Page Continuous Magnification = Actual Size Open to Page number = 1 There is already ...
2
votes
1answer
60 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
47 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 ...
1
vote
1answer
97 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 ...
0
votes
0answers
26 views

How to improve text quality using Ghostscript

I have a Pdf document downloaded with a size of 230MB. Well the text doesn't seem to be clear although a strain makes the document understandable. I have heard about Ghostscript but it as numerous ...
0
votes
0answers
71 views

Using Ghostscript to digitally sign a PDF

How do I digitally sign a PDF file using Ghostscript (gs), such as by specifying a *.p12 certificate backup file? thanks
0
votes
1answer
92 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$ ...
0
votes
0answers
16 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
522 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
309 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 ...
0
votes
1answer
806 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
0answers
58 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
130 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 ...
0
votes
0answers
70 views

printing a regular PDF document to virtual PDF printers (with Ghostscript engine) always generates output file with text converted to image

I've suddenly found out, that when I "print" any regular PDF document to a PDF virtual printer, it always converts a source regular (textual) PDF document into an image only document. It applies even ...
0
votes
0answers
52 views

Ghostscript - merging options

I've got lots of Ghostscript commands compiled together in a script that allows me to do most things to manipulate multiple pdfs. However, I would like to be able to merge documents in more ways than ...
0
votes
0answers
19 views

How to get Ghostscript to “fit to height”?

I want to print some text to PDF. I would like the page height to be the size needed to fit the text, not taller or shorter. I'm having trouble even working out the terms to use to search for how to ...
1
vote
2answers
421 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 ...
0
votes
0answers
172 views

Using Ghostscript, can an image output be scaled prior to “printing”?

I'm working on a project where par of the requirements are to convert the first page of a PDF to a PNG. This in and of itself is relatively simple, but I've yet to find a way to scale the resulting ...
1
vote
0answers
130 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 ...
0
votes
0answers
40 views

Cannot import ps file with the gimp

I'm trying to import a ps file into the gimp. It's a hand-written illustration that has been passed through ps2eps to add BoundingBox information. First sign of trouble is weird numbers in the ...
2
votes
1answer
355 views

merge pdf files a4 and letter linux

I am training to merge multiple files using ghostscript, nevertheless the problem arises because the pdf files are in different paper size. So far, I've found this one command: gs -q ...
0
votes
0answers
27 views

Convert PDF to JPG via GhostScript [duplicate]

I try to convert a multi-page PDF to a single JPG. I only want the first page of the PDF converted. Since I want to use them as thumbnails the JPGs need to be like 100x100px in high quality. I have a ...
2
votes
0answers
292 views

Scale EPS and Change DPI Using Ghostscript

I have a few EPS files that have an arbitrary size dimension (x/y) but are all 72 DPI. I need to convert them to 600 DPI as well as scale the width to 3.25 inches. I don't care what the height is, ...
0
votes
1answer
479 views

GhostScript “Unrecoverable error, exit code 1” when using embeded fonts in .pdf

I have been trying to convert a .pdf file to a .png in Imagick, but I keep getting the "Unrecoverable error, exit code 1". I did some research and discovered that the problem is somehow related to the ...
0
votes
2answers
3k 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 ...
4
votes
2answers
706 views

unix tools to merge pdf [duplicate]

I'm looking for an alternate to ghostscript to merge pdf tools. We generally have print jobs containing more than 3000 documents, which are to be merged into a pdf. Ghostscript does this whole ...
4
votes
2answers
2k views

Ghostscript PDF/A conversion fails validation

I'm developing a "paperless" workflow and plan to save all files in PDF/A-1b format. I'm trying to develop a simple batch file for converting PDF files that I create or receive to PDF/A-1b. Starting ...
0
votes
1answer
273 views

ghostscript: rasterize for fax (tiff/g3)

I need a suitable command to convert pdf to tiff/g3 for use with hylafax/c2faxsend. The PDF is produced from a libreoffice plugin, but has relatively small fonts embedded. My current command is ...
2
votes
0answers
79 views

How to set keys for ghostscript filters in the command-line interface?

How do I set keys of Ghostscript filters (as documented here) in the command-line interface? More precisely, I would like to set the Predictor option of the PNGPredictorEncode filter in the following ...
0
votes
2answers
631 views

pdftoraster missing from ghostscript-cups package on fedora 17?

Attempting to get AirPrint running on an old laser network printer (so my kid can print from his iOS device) with avahi-daemon, cups and this python script. I've followed the instructions as per this ...
2
votes
2answers
542 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 ...
1
vote
0answers
198 views

How to extract all info on PDF bookmarks using GhostScript?

Is there a method of dumping all info on the bookmarks of a PDF using GhostScript? With PDFtk I could use pdftk in.pdf dump_data, but is it possible to do it with GS? I have a PDF with bookmarks ...
0
votes
1answer
852 views

PDF to PNG with ImageMagick/GhostScript: Colorspace=sRGB breaks script

In order to convert a PDF with 100 pages to single PNG files, I've been using the following command: C:\Program files\ImageMagick\convert -density 150 -alpha Opaque file.pdf file.png But that ...
0
votes
0answers
311 views

CentOS 5.5 install ghostscript?

I need to install Ghostscript v9.06 on CentOS 5.5. I am linux newbie so can you help me i tried download "Postscript and PDF interpreter/renderer" (was that right thing?) and then run ./configure ...
2
votes
2answers
5k views

Create PDF with print page scale of none

I need to generate a pdf document that has the Print Options of Page Scaling set to "None" or "Actual Size" This setting in the document would mean that the default when you open the document in ...
1
vote
0answers
75 views

How to change Ghostscript output file (in printer spooler)

I am using Ghostscript to print a PDF by command line arguments. But it shows the printed document's name as Ghostscript output in printer spooler. I want to change it to a custom name (as input file ...
2
votes
1answer
636 views

How to prevent GhostScript from substituting fonts when compressing a PDF file?

I have a PDF file that I want to compress as small as possible. Unfortunately GhostScript substituted some fonts for the existing fonts in the original PDF. I used the following command when invoking ...
2
votes
0answers
231 views

Exporting blank pdf using ghost script

I am using the ghost script writer to produce PDF's...and it works but it produces blank ones. I have searched a lot in this, but i didn't find anything that could help me. I'm using windows 7 ...
4
votes
1answer
761 views

Thumbnail generation with imagemagick doesn't render the correct colors

Generating thumbnails of PDFs with imagemagick sometimes renders incorrect colors. We're using an old version of imagemagick (6.5.7-8, that's the version installed on the heroku servers). Here is the ...
1
vote
1answer
498 views

Ghostscript - how to write an text to an existing pdf (without pdfmark)

I want to add some different text on every page on an existing pdf with ghostscript. Can someone help me how to do it? Thanks.
1
vote
1answer
1k 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 ...
5
votes
4answers
11k 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
5k views

How can I make all pages in a PDF the same size?

I have a pdf with different size pages. The first page is 579.275 by 402.547 points. The remaining pages are 612 by 792 pts (letter). I would like to have all the pages be letter size. The output ...
0
votes
1answer
123 views

How do I create a PDF that does NOT embed the used fonts?

Using MS Word 2010, or a free program, how do I create a pdf that does not include the used font(s)? I need this to test a feature in GhostScript.
4
votes
2answers
929 views

Getting N jpeg images from N-Pages PDF

I've a PDF composed by N pages. I want to convert this PDF in N jpeg images (by command line, no Php, Java or other programming languages). I'm trying to do this with GHOSTSCRIPT but the output ...
1
vote
0answers
161 views

Detecting vector heavy PDF files

I have an automatic PDF processing engine. I have experience in a variety of tools like PDF-TK, Ghostscript, PyPDF and PDFMiner but this problem is stumping me. I use Ghostscript to optimize PDF ...
3
votes
2answers
1k views

PDF => raster, is it possible to adapt the sampling resolution to the input page size?

I am using convert (Imagemagick component, delegating to Ghostscript in background) to transform the first page of PDF files to images. Usually, convert -density 200 file.pdf[0] first_page.png will ...
0
votes
1answer
428 views

Printing two DIN A6 pages on a A4 sheet without border in order 1,2,1,2

I have created a postcard in DIN A6 format which I want to print with a A4 printer. To do that I need to place the two pages (1=front and 2=back) on the A4 page in the following order: 1,2,1,2. It ...
3
votes
2answers
1k views

Ghostscript: how do I find out what fonts are available?

In Ghostscript, on a windows xp pc with an inkjet printer, how can I see a sample of the fonts available on my system? I need to know what they are called to invoke them, and it would be useful to ...