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.
ghostscript
2,338
questions
0
votes
0
answers
20
views
Loss of correct font embedding while converting from pdf to pdfA using Ghostscript
I am tasked with the challenge of converting a pdf document to pdfA using ghostscript. On making the conversion, the pdfA document changes the font encoding to 'custom' type which is not decryptable(...
1
vote
2
answers
48
views
How to combine first 3 pages of pdf into a new pdf
I want to extract the first three pages of a pdf, display them for approval, then create a new pdf which has just those approved pages. I am using Ghostscript.net in a c# app that extracts the pages I ...
0
votes
0
answers
41
views
How to add Overprint Fill on text in PostScript file
I have a ghost command that gets PGB PDF as input and generates CMYK PDF. What I need to achive is to make the text overprinted, so when I open the PDF in Adobe Acrobat -> Use print production ->...
0
votes
0
answers
33
views
GhostScript PANTONE Colors Name
I am using GhostScript to convert a PDF to a TIFFSep1 and I also use a postscript script to handle halftones. Everything works fine but I can't get the script to recognize the pantone colors because ...
0
votes
0
answers
22
views
RGB and CMYK Ghostscript color detection
To check whether PDF files contain color, we use Ghostscript inkcov. This works well for CMYK files, but in the case of RGB formatted files, they are first converted to CMYK and then the color ...
0
votes
0
answers
75
views
How do I replace embedded fonts in PDF
I have a use case where I extract embedded fonts from PDF to modify them to add unicode mapping and I want to put them back.
I tried several approaches and everything fails.
Last attempt was using ...
1
vote
0
answers
38
views
Ghostscript with PHP
I have this code:
<?php
require_once '../vendor/autoload.php';
require_once '../controller/funcoes.php';
require_once '../controller/constantes.php';
$pdf = new Spatie\PdfToImage\Pdf('C:\xampp\...
0
votes
1
answer
77
views
Converting PDF to PDF/A-3
My final goal is to generate a PDF/A-3 containing an XML file named factur-x.xml compatible with the Factur-X standard.
For this, I installed version 10.03.1 of GhostScript on Windows in c:\gs\gs10.03....
1
vote
1
answer
88
views
Automating pdf to pdf/A-2b conversion using ghostscript. How to overcome icc color profiling error?
I'm trying to figure out how to convert pdf's to pdfa2b format for archiving. The batch process only takes in 600-800 files at a time, and we have over half a million files. It would take an eternity ...
0
votes
1
answer
50
views
How to handle spaces in filepath of ghostscript commands
I'm trying to run a ghostscript(10.01.2) command to convert a pdf to pdf/a through a Python subprocess call on Windows 10:
subprocess.call(f(gs -dPDFA=2 -dBATCH -dNOPAUSE -dAutoRotatePages=/None -...
1
vote
0
answers
46
views
Ghostscript RGB to CMYK PDF unwanted yellow channel gray color is visible
I am trying to convert high resolution pdf from RGB format to CMYK format for printing.
I am using following commands to create new cmyk profile
collink -v -G AdobeRGB1998.icc ...
0
votes
0
answers
56
views
How to convert pdf to grayscale only specific pages?
Given a pdf composed of many color pages, how to convert programmatically only some specific pages to grayscale? The output will be the same number of pages as the input, mix of color and converted ...
1
vote
0
answers
22
views
In Postscript, does loading a dictionary to run a procedure have the same overhead as doing a lookup of the procedure name in the dict?
/myDict<<
/myProc {
(Hello world) =
}
>>def
myDict begin %A
myProc %A
end %A
myDict /myProc get exec %B
Given the above Postscript ...
0
votes
0
answers
28
views
How to print to an Internet printer using Ghostscript silently via Command Prompt
I am using Windows Server 2022 Std.
I need to print pdf labels silently to an internet based printer. I have the following command to call Ghostscript but it prompts which printer to select, even ...
0
votes
0
answers
18
views
How to reduce PCL file size while converting pdf to pcl using ghost script?
I am converting a PDF file to a pcl format using ghostscript. Size of pdf file is 70kb but when I convert to PCL file then size becomes very large like 700kb for 300 resolution and 2mb for 600 ...