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.

148 questions
127
votes
6 answers

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." There seems to be a myriad of tools out there but…
user15968
47
votes
5 answers

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 pages from an existing single page.
YGA
  • 2,035
37
votes
1 answer

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 existing images as-is without reprocessing them, and…
28
votes
12 answers

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 convert to grayscale with ghostscript I can use this…
niklasfi
  • 641
26
votes
4 answers

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 does it do? I open man gs, search for PDFSET, I get…
sdaau
  • 6,008
22
votes
7 answers

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?
Andrew
  • 266
22
votes
2 answers

Convert HTML to image

Background Batch convert various syntax-highlighted source files (C, SQL, Java, PHP, batch, bash) into high-resolution images (600dpi), suitable for an eBook and printed book. Failed Solutions A number of attempts so far: OpenOffice or LibreOffice…
18
votes
6 answers

Chop pages of a PDFs into multiple pages

I've got a bunch of PDF files that contain 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 that does the exact opposite of pdfnup (or psnup). How can this…
womble
  • 974
18
votes
2 answers

Using Ghostscript to convert multi-page PDF into single JPG?

I know Ghostscript can convert PDFs to JPGs, and in the case of a multi-page PDF, can rip each page to an individual JPG. But is it possible to have it rip them to one JPG, so that the pages are pasted below each other, e.g. the top half of the JPG…
Andrew
  • 589
11
votes
5 answers

PDF has an extra blank in all words after running through Ghostscript

This PDF was produced by Abbyy Finereader 10: http://ebooks.zeitr.org/from_abbyy.pdf You can copy & paste the first sentence and get this (very good) text result: Der »Bund Deutscher Gymnastik-Schulleiter« wurde am 20. November 1955 anläßlich einer…
Erwin Jurschitza
9
votes
2 answers

Reading a PDF file for testing in GhostScript?

This question is related to this one - Toolkit / tool for PDF checking? I've installed "ghostscript" on my Windows system and it gives me a prompt to type in. I'm not sure what I should do next in order to read in my existing PDF files that I want…
siliconpi
  • 2,827
  • 6
  • 27
  • 28
8
votes
2 answers

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 one sheet in outupt file. How can I modify pipelining so…
smihael
  • 292
8
votes
2 answers

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 know what substitutions are made.
8
votes
8 answers

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 PNG representations of text and line art. For…
boden
  • 450
7
votes
4 answers

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 -dBATCH -dNOPAUSE -dNumCopies=1 -sDEVICE=mswinpr2…
Lari13
  • 171
1
2 3
9 10