The tag has no usage guidance.

learn more… | top users | synonyms

0
votes
0answers
24 views

Ghostscript: is there a way to suppress all font output?

I'd like to rasterize a PDF to image using Ghostscript with all content preserved except for suppressing fonts. I don't want to convert text to curves (like -dNoOutputFonts), I want the text stripped ...
2
votes
0answers
38 views

evince: Bad PDF font rendering

I have a few PDF files which suffer the problem shown in the image: (the blue part is mouse-selected, the right part in black is how the entire document looks!) I tried /prepressing and even -...
8
votes
1answer
9k views

How do I insert a blank page into a PDF with ghostscript or pdftk?

I have a PDF file that needs a blank page inserted into it every so often. The pattern is unpredictable, so I need a command that will allow me to fit one in wherever necessary. How can i do this?
1
vote
0answers
16 views

How to add printer to CUPS using Ghostscript hl7x0 driver?

I run Arch Linux 64-bit and strongly prefer not to add multiarch support for 32-bit software, so I do not want to install the proprietary 32-bit driver for my Brother MFC-J4710DW printer. Research ...
2
votes
0answers
25 views

How do I trace why printing pdf from Ghostscript vs Evince is different?

I'm trying to get a better sense of how the "Print to File" option works on Linux Mint. Basically, when I open a PDF with Evince and print it to PDF, the output is different from the original, and ...
7
votes
1answer
4k views

Convert pdf to a different page size (US Letter -> A4)

I'm trying to print a simple US Letter document, but for some reason, I just cannot manage to fit it properly onto A4 when printing multiple pages per-list. I have tried converting the pdf using: gs -...
2
votes
2answers
4k views

How to rotate an image in gs

How can I rotate an image with ghostscript? I am visualizing eps to screen. I am using the command: gs image.eps
1
vote
1answer
607 views

Splitting a PDF file with Ghostscript results in one extra blank page

I try to split the pages of one PDF file into a separated one-page PDF files. This command does the job so far: gs \ -q \ -dQUIET \ -dSAFER \ -dBATCH \ -dNOPAUSE \ -dNOPROMPT \ -dAutoRotatePages=/...
0
votes
1answer
258 views

Overlay text in PDF via command line

The following command produced the result of the following image using convert, where an overlay box containing the letter "A" was layered over the PDF: convert online_gauss.pdf -fill white -...
10
votes
4answers
14k views

How to convert a color pdf to black-white?

I'd like to transform a pdf with some coloured text and images in another pdf with only black&white, in order to reduce its dimensions. Moreover, I would like to keep the text as text, without ...
0
votes
0answers
36 views

Why is my ghostscript output bigger when converting to sRGB?

I have a PDF (made with inkscape) with very high-resolution (4K) images that I'm compressing using ghostscript. When I use this line: gs -sDEVICE=pdfwrite -dCompatibilityLevel=1.4 -dPDFSETTINGS=/...
1
vote
0answers
37 views

How to cut a really large raster image into smaller chunks?

I have a large poster as a pdf-file. I need to create a raster image from it (for instance because there seems to be no pdf viewer which allows me to zoom sufficiently to see the contents). So I ...
4
votes
2answers
1k views

Extract even-numbered and odd-numbered pages of a PDF into two separate PDFs

I have a PDF that consists of several hundred pages of bilingual text. Since I need to use OCR on each language separately, I want to grab the even and odd pages and make two separate PDFs, using ...
1
vote
3answers
8k views

Install Ghostscript v 9.05 (or newer) on CentOS

I need to use the ghostscript inkcov device on my CentOS server. The device is said to be available on GS versions 9.05 and newer. However, yum install ghostscript installs version 8.70. What is the ...
3
votes
1answer
108 views

Extract completed slides of a slide show PDF

PDF files of slide show presentations distributed by my lecturers often contain a huge number of pages, because each animation step results in an new page (sometimes 20 pages per slide). This is nice ...
4
votes
1answer
8k views

Merge several eps files into one PDF

I have several hundred encapulated postscript files, and I want to merge them all into one big PDF. How can I do this?
3
votes
3answers
728 views

How can I convert a scanned PDF with OCRed text to one without OCRed text?

I have a scanned PDF file, with low-quality OCRed text. I would like to have a PDF file without the OCRed text. How can I convert a scanned PDF with OCRed text to without OCRed text? I am thinking ...
2
votes
1answer
292 views

All PDF applications mix the width and height of a PDF file

I have this PDF file created by scanning. When viewing it in any PDF viewer, the page's width is greater than the height. But it seems like all the PDF applications I have tried mistake the width as ...
3
votes
3answers
5k views

Can't print to PDF using cups-pdf; used to work, now “failed to set file mode” printing as non-root

Here's something really odd: something that used to work fine in Debian, and then broke, even without a dist-upgrade. I used to be able to use the CUPS PDF virtual printer to print anything to a PDF ...
1
vote
1answer
386 views

X11 Issues running with Terminal.app

I am trying to figure out why I can't use ghostscript or ghostview (or any other X11 applications) when I try to call them in the Terminal. I am using bash, and I also used Fink to get the packages I ...
1
vote
0answers
142 views

Using X11 Displays through Terminal.app commands : generic mapping tools

I am trying to figure out why I can't use ghostscript or ghostview (or any other X11 applications) when I try to call them in the Terminal. I am using bash, and I also used Fink to get the packages I ...
1
vote
1answer
2k views

gs can't find the proper font

I am running the following command to add bookmarks to a pdf file. The file bookmarks.txt contains bookmarks in Chinese characters and in pdfmarks format. The output of gs shows that there seem to be ...
1
vote
1answer
493 views

How do I set up a PostScript print queue to share a PCL laser printer and add PS fonts?

I would like to take a $100 PCL-compatible laser printer and hook it to my home network either through Wi-Fi or by connecting it directly to a Linux server by USB. Instead of using the manufacturer-...
4
votes
1answer
1k views

Implementing a String -> PDF Stamp tool

I wrote a little shell function which creates a fixed-size PDF file (A4) from a character string using gs: make_stamp() { file=$1 string=$2 tmp=${file}-small.pdf gs -o "$tmp" -sDEVICE=pdfwrite -...
6
votes
1answer
1k views

How to convert a pdf to 4-up in landscape mode (ideally using ghostscript)?

I have pdf slides in landscape mode and would like to create a new pdf file containing the slides 4-up (in landscape mode again) like this: ----------------- | 1 | 2 | ----------------- | 3 ...
10
votes
1answer
3k views

How to make ghostscript not wipe PDF metadata

Ghostscript wipes the PDF metadata like author, title, subject etc. How can I tell ghostscript not to touch the metadata? I invoke it as follows: gs \ -dBATCH \ -dNOPAUSE ...
1
vote
0answers
28 views

Rescale a PDF file [duplicate]

Possible Duplicate: How to change height and width of each page of a pdf Is it possible to rescale a PDF file (retaining perspective) to be within a maximum width / height? Rendering to an ...
0
votes
0answers
1k views

How to update ghostscript

First: what's the difference between gs and ghostscript? thiago@vaio:~$ gs -v GPL Ghostscript 9.06 (2012-08-08) Copyright (C) 2012 Artifex Software, Inc. All rights reserved. thiago@vaio:~$ ...
3
votes
1answer
466 views

How to export a vector graphic to eps?

I have a Scalable Vector Graphic (svg) which I can convert to pdf with inkscape. The pdf still looks fine when viewed in okular or evince. However, I require an eps file. I understand that eps may ...
3
votes
2answers
3k views

How to create a single page PDF file out of multiple EPS files with GhostScript

I'm trying to merge eps files into a pdf file using GS, however, I cannot get it to put multiple eps files without page breaks in between even if original files are small. The command I'm using is: ...
4
votes
1answer
2k views

convert pdf to image [jpeg|png]

I need to convert pdf files into image files (like: png (prefer), jpeg). I used convert (from the ImageMagick package) but it takes more than 4 seconds for a 2 page pdf file with only tables (...
2
votes
0answers
380 views

'convert' taking a long time to create a PNG thumbnail

I made a png from a pdf using ghostscript. It was converted very fast (not more than 1 sec), and has good quality. $ identify 1.png 1.png PNG 3508x2480 3508x2480+0+0 8-bit PseudoClass 2c 51KB 0.000u ...