1,621 questions
0
votes
1
answer
54
views
Using copypage in PostScript
I have some not-so-old PostScript programs that create an animation using the copypage operator. See a simple example below [*].
They worked fine in macOS using Preview and pstopdf while Apple ...
0
votes
0
answers
48
views
What causes rangecheck in --image-- in Ghostscript
I am trying to write a simple PostScript program to display a logo using the 'image' function (rather than the 'colorimage'). The PostScript code is very simple. I have tried reading the file, I have ...
2
votes
1
answer
101
views
How are ghostscript and ps2pdf related?
My initial problem was: How can I use my Mac's system fonts in a PostScript file; that is, a font that is NOT among the standard 35 (?) PostScript fonts.
It is no longer my problem because I stumbled ...
1
vote
0
answers
76
views
Trying to migrate script for Ghostscript over from 9.55 to 10.05
I have an old script from a few years ago I've been trying to migrate over to the latest version of Ghostscript. Its main job is to print checks.
$AccountingScalingArgs = "<</BeginPage{0....
0
votes
0
answers
70
views
PDF: Embedding a document yields a /rangecheck error
From the official pdfmark documentation I copy-pasted into a file named example.ps:
[ /NamespacePush pdfmark
[ /_objdef {fstream} /type /stream /OBJ pdfmark
[ {fstream} << /Type ...
2
votes
1
answer
241
views
Create PDF/UA from Postscript-File using Ghostscript
I use Ghostscript to create PDFs from PostScript files.
Starting in June, there is an obligation to create accessible PDFs (PDF/UA-Standard).
The closest related post how to make Accessibiity pdf from ...
0
votes
0
answers
86
views
Generating EPS Files with Clipping Paths that Photoshop Correctly Recognizes as Vector Paths
I'm working on a web application (Vue.js) that removes backgrounds from images. An important component is exporting EPS files with clipping paths that are correctly recognized in Adobe Photoshop.
The ...
2
votes
0
answers
51
views
PostScript - defining a namespace for a library
I've been coding in PostScript for a couple of months, and I'm wondering how one would implement namespaces, and use libraries.
As usual, the idea is to address:
name collisions
keeping separate ...
2
votes
1
answer
85
views
Is %%EOF more than a comment in EPS?
Contrary to regular PostScript (PS) files, some comments in Encapsulated PostScript (EPS) file have a special meaning. For example, they must start with %!PS-Adobe-3.0 EPSF-3.0 and have a special %%...
0
votes
0
answers
71
views
How can a .dsc file (as generated by pdf2dsc) be distinguished from a real PostScript document?
The pdf2dsc utility from Ghostscript generates a .dsc file consisting of a PostScript page list of a PDF document. How can such a file be distinguished from a real PostScript document?
The issue is ...
1
vote
0
answers
31
views
PostScript - text outline doesn't match the text [duplicate]
In PostScript, I'm trying to get a precise bounding box for rendered text.
I believe I'm using the built-in PostScript operators correctly, but the results are unexpected.
The outline doesn't match ...
2
votes
0
answers
90
views
Adobe Illustrator postscript weird syntax lonely bracket
I'm trying to parse an Adobe Illustrator file, which in essence is a postscript file with additional comments for structure, it even starts with %PS-Adobe (after extracting it out of the PDF "...
1
vote
1
answer
115
views
Pass argument from GhostScript CLI to PostScript
I'm using Ghostscript to convert PDF to PDF/A files, which works fine. I want to use the -dSAFER option, which forces me to use absolute path name for the ICCProfile in the file PDFA_def.ps:
% in the ...
2
votes
1
answer
75
views
Not understanding dictionary semantics, key-value defining and visability
I am not sure I understand the semantics of Postscript dictionaries. What is the difference if a 'def' is used when defining an entry to a dictionary as opposed to just listing the key value pair. ...
0
votes
0
answers
276
views
Detect /OpenAction in a PDF with Ghostscript
I have a pdf with a Pages dictionary like this
<< /Type /Pages /Kids [
5 0 R
142 0 R
225 0 R
296 0 R
302 0 R
308 0 R
314 0 R
4 0 R
336 0 R
] /Count 9
...