1,622 questions
Score of -4
0 answers
61 views
Writing figure with raster graphics for scientific publication by hand in PostScript [closed]
I want to overlay some micrographs with labels (like A, B, C) and arrows to generate a multi-panel figure.
Why not write a PostScript file by hand and put the binary image data in there?
This should ...
Advice
1
vote
1
replies
71
views
PostScript/Ghostscript: Are Document Structuring Conventions (DSC) really needed when all I'm doing is generating a PDF?
I'm using Ghostscript/Postscript to generate PDF files from PostScript source files.
If I'm only using Ghostscript to generate PDF files as output, and if I'm never sending my source PostScript files ...
Score of 0
1 answer
74 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 ...
Score of 0
0 answers
65 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 ...
Score of 2
1 answer
172 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 ...
Score of 1
0 answers
89 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....
Score of 0
0 answers
87 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 ...
Score of 2
1 answer
293 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 ...
Score of 0
0 answers
104 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 ...
Score of 2
0 answers
60 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 ...
Score of 2
1 answer
96 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 %%...
Score of 0
0 answers
83 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 ...
Score of 1
0 answers
33 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 ...
Score of 2
0 answers
138 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 "...
Score of 1
1 answer
135 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 ...