John · Stack Overflow

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 ...

  • reputation score 73088

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 ...

  • reputation score 1

Score of 2

1 answer

173 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 ...

  • reputation score 149

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....

  • reputation score 11

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 ...

  • reputation score 353

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 ...

  • reputation score 21

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 ...

  • reputation score 1673

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 %%...

  • reputation score 173785

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 ...

  • reputation score 1673

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 "...

  • reputation score 151

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 ...

  • reputation score 7802

Read the original on stackoverflow.com ↗