Questions tagged [ghostscript]
The ghostscript tag has no summary.
                70 questions
            
            
            
                1
            
            vote
        
        
            
                0
            
            answers
        
        
            
                65
            
            views
        
        
            
            
        With ghostscript, how to upscale a PDF file that is wider than taller so that the new width matches the width of a portrait A4 sheet of paper?
                    Let's take a PDF file that is slightly wider than taller, e.g., https://we.tl/t-iihJ3gMsrA :
pdfinfo input.pdf | grep "Page size"
Page size:       397.349 x 378.153 pts
Let's try to upscale ...
                
            
       
        
            
                2
            
            votes
        
        
            
                1
            
            answer
        
        
            
                721
            
            views
        
        
            
            
        How to stop Ghostscript from adding "Producer" metadata to PDF files
                    I processed a PDF file using Ghostscript:
gs -dNOPAUSE -dBATCH -dSAFER -sDEVICE=pdfwrite -q -o output.pdf input.pdf
When I used a text/binary editor to look into the output PDF, I noticed that ...
                
            
       
        
            
                2
            
            votes
        
        
            
                0
            
            answers
        
        
            
                387
            
            views
        
        
            
        Combine PDFs to new PDF with filenames as bookmarks
                    I have a directory foo containing .pdf files named with pattern X01, X02, ..., each two pages long. I want to combine them to a new .pdf, named "all_YY-MM-DDTHHMMSS.pdf" that will contain ...
                
            
       
        
            
                0
            
            votes
        
        
            
                2
            
            answers
        
        
            
                2k
            
            views
        
        
            
        How can you compress images in a PDF (via a GUI, not batch or CLI util)?
                    While there's similar questions on how to compress a PDF using a command-line tool like ghostscript, is there a GUI experience to compress a PDF file's images?
Previously on macOS I used tools like ...
                
            
       
        
            
                0
            
            votes
        
        
            
                0
            
            answers
        
        
            
                1k
            
            views
        
        
            
            
        Using gs (Ghostscript) to extract fonts from PDF
                    I;m tried to use Ghostscript to extract fonts from PDF file. GPL Ghostscript 9.53.3 (2020-10-01) I downloaded extractFonts.ps tool and put it in same folder with PDF file. I also set permissions for ...
                
            
       
        
            
                0
            
            votes
        
        
            
                0
            
            answers
        
        
            
                79
            
            views
        
        
            
            
        Script portability to MacOS
                    Context
Catalina (zsh) & Homebrew: man pages return successfully for pdftk & ps2pdf
The goal is to execute: pdfBatesStamp.sh as described in  https://unix.stackexchange.com/a/115537/182280
I ...
                
            
       
        
            
                1
            
            vote
        
        
            
                1
            
            answer
        
        
            
                2k
            
            views
        
        
            
        Cannot open X display `(null)'. **** Unable to open the initial device, quitting
                    input:
gs myPSFile.ps
output:
GPL Ghostscript 9.50 (2019-10-15)
Copyright (C) 2019 Artifex Software, Inc.  All rights reserved.
This software is supplied under the GNU AGPLv3 and comes with NO ...
                
            
       
        
            
                1
            
            vote
        
        
            
                1
            
            answer
        
        
            
                2k
            
            views
        
        
            
            
            
        How to scale down PDF file (in pixels and in cm)?
                    I need to automatically convert my pupils' solutions which are photos and scans of various orientations, resolution, quality and file format into a single PDF with fitting dimensions.
The dimensions ...
                
            
       
        
            
                0
            
            votes
        
        
            
                1
            
            answer
        
        
            
                2k
            
            views
        
        
            
        methods of PDF compression
                    The Problem
I have a lot of old books that I want to scan and digitize. For this, I use some flatbed scanner, xsane and GImageReader, which works great.
Back a few years ago, when I was still using ...
                
            
       
        
            
                1
            
            vote
        
        
            
                0
            
            answers
        
        
            
                2k
            
            views
        
        
            
        How can I standardize (normalize) the page size in a PDF with lots of small variations in page size?
                    My project is about processing a weekly newsletter into an annual PDF compilation.
The hard copy originals were scanned by someone else using Abbyy FineReader. The original documents were US letter ...
                
            
       
        
            
                3
            
            votes
        
        
            
                1
            
            answer
        
        
            
                3k
            
            views
        
        
            
            
            
        How to convert only the first page of a PDF to a JPG with Ghostscript
                    I have a large set PDF documents, many of which will be multiple pages.
I am using Ghostscript [GS] to generate a JPG thumbnail image for each PDF.
I only want one JPG per PDF, which should be an ...
                
            
       
        
            
                0
            
            votes
        
        
            
                0
            
            answers
        
        
            
                962
            
            views
        
        
            
        Is it possible to turn off the "SAFER" option in Ghostscript?
                    I have a latex program that creates an svg file looking like this:
 *** WARNING - you have selected SAFER, indicating you want Ghostscript
               to execute in a safer environment, but at the ...
                
            
       
        
            
                1
            
            vote
        
        
            
                0
            
            answers
        
        
            
                544
            
            views
        
        
            
        cups remove jobs after 5 minutes
                    I have a print job that uses ghostscript as a filter to print a composite ps file. This file produces errors to the /var/log/cups/error_log and is not being removed from the queue even after 1 day (...
                
            
       
        
            
                0
            
            votes
        
        
            
                0
            
            answers
        
        
            
                1k
            
            views
        
        
            
            
        apt-get install - when running installed program: no such file or directory
                    I have installed and build ghostscript and graphicsmagick from source
Have deleted both directories because I want to install them via apt-get
apt-get install --reinstall graphicsmagick ghostscript
...
                
            
       
        
            
                2
            
            votes
        
        
            
                0
            
            answers
        
        
            
                81
            
            views
        
        
            
            
        Copy machine refuses my pdf [closed]
                    I regularly need to convert pdf document in A4 format into US letter format.
Following Convert pdf to a different page size (US Letter -> A4), I use 
pdfjam --outfile out.pdf --paper letter in.pdf
...
                
            
       
         
         
         
         
        