r/PostScript • u/sleepingsquirrel • Feb 06 '13
r/PostScript • u/sleepingsquirrel • Jan 28 '13
Thinking in PostScript [PDF]
wwwcdf.pd.infn.itr/PostScript • u/sleepingsquirrel • Jan 24 '13
Unnatural postscript hacks
physics.uq.edu.aur/PostScript • u/LoneSeeker777 • Apr 13 '17
Ways to "reset" a PostScript3 Ricoh chip?
We're a small copier business that relies on every possible sale to drive a profit. However, our main issue is that PostScript chips have an installation limit to them, hardcoded in the filesystems.
Is there any way to "reset" that, like through a HEX editor or possibly Notepad++?
If there's any knowledge on the subject, that would be fantastic.
r/PostScript • u/frbnfr • Nov 20 '22
Looking for PostScript Language Reference Manual first edition
Does anyone have a download link for the first edition of the PostScript Language Reference Manual? The Adobe-link on the sidebar doesn't work anymore.
r/PostScript • u/e1mer • Dec 07 '19
the put string operator is not working as expected
I have the following code, and when I run it in GhostScript (gs) I get nothing like I expect.
/red .25 def/green .50 def /blue .75 def /colorstring { /cs (.xx .xx .xx ) def % my string template cs 2 100 red mul cvi put cs 6 100 green mul cvi put cs 10 100 blue mul cvi put cs % to drop the string on the stack } def colorstring stack
The string I get back is this:
.x .x2 .xKMy goal is to print the postscript color value I am using.
put is supposed to be: TargetString StringPosition Integer put
to put the integer in the string at that position.
Any idea what I am missing?
Thanks/
r/PostScript • u/yankdevil • Feb 05 '25
Linux on postscript
Someone ported Linux to PDF. They did this by running a RISC V port of linux on a RISC V emulator written in Javascript running in a PDF.
It would seem to me that postscript is a fully fledged language that one could write an emulator in.
Has anyone tried that?
r/PostScript • u/Knux-03 • Sep 28 '21
HI
Ive been looking for a way to change a specific line of number inside a sql file using post script ,the lines the sql file are simple the post script must search for the specific line Example:
if its les 04xx it has to change to the pervious month example cycle no 'XX' 'MO' month :
cycle0108
cycle0408
---------------------------------------------------
If its greater than 04 than the month is changed to the actual month
cycle0709
cycle1009
cycle1309
cycle1609
cycle2209
cycle2509
cycle2709
cycle2809
r/PostScript • u/karlpalaka • Sep 15 '21
How do you remove a specific value from an array in postscript?
r/PostScript • u/AddemF • Mar 01 '12
GhostScript
So I'm new to all this PostScript stuff and using GhostScript. I'm going through this book titled Mathematical Illustration which is based on GhostScript and tells me to make the procedure that takes arguments the "page coordinates" and returns to the stack the "user coordinates". I made the procedure
/page-to-user {
matrix defaultmatrix
matrix currentmatrix
matrix invertmatrix
matrix concatmatrix
} def
Now I'm guessing this is the right procedure but I want to test whether I'm right in some fairly plain way. But I basically have two tools for that: The GhostScript command line and GSview. The command line is too damn clumsy to use and GSview doesn't display the stack. What to do?
r/PostScript • u/TinyFerret • Mar 08 '18
CvtPost alternatives?
CvtPost is a *nix command line utility to convert various text files to postscript. It handles ASCII and EBCDIC natively, can do form overlays, all kinds of great things. Unfortunately, the author's site has disappeared from the net, and I need part of the source code again.
I would like to upgrade some equipment and move to a 64-bit kernel, but for one reason or another, the code was published in three pieces: The cvtpost source code, cvtpost list routines, and cvtpost hash routines. All three are required, and I'm lacking the list and hash routines. The wayback machine has the site archive from 2001, but none of the source code, which was hosted on an ftp site at manatee.nss.udel.edu.
Can anyone either direct me to another source for the cvtpost code, or a viable alternative? I need to be able to specify font sizes (both in points and height/width), alignment parameters, overlays, etc. Page by page is not an option, as I routinely handle 30-50k pages at a time.
r/PostScript • u/sleepingsquirrel • Sep 09 '14
PS-HTTPD: The PostScript web server
pugo.orgr/PostScript • u/Mammoth_Jellyfish329 • Feb 24 '26
PostForge — A new open-source PostScript interpreter written in Python
I've been working on PostForge, a from-scratch PostScript interpreter written in Python. It's fully Level 2 compliant and implements most of Level 3 (all 7 shading types, Flate filters, CID/TrueType fonts, DeviceN, ICC color management, etc.). It outputs to PNG, PDF, SVG, TIFF, and has an interactive Qt display window.
The PDF output generates content streams directly and it preserves CMYK and Gray color spaces, embeds and subsets Type 1 and TrueType fonts, and produces searchable/selectable text.
This is actually my third PostScript interpreter. My first was PostMaster in 1991 (DOS, C, converted PS to Illustrator format). My second was a Level 2 interpreter I wrote for Tumbleweed Software in the mid-90s that served as the PostScript distiller for Envoy (the document format that shipped with WordPerfect Office Suite and competed with Acrobat). Both were in C. I started PostForge in Python as an experiment to see if the language could handle PostScript's VM save/restore semantics — and it turned out to be a surprisingly good fit.
Some numbers:
- 2,500+ unit tests (written in PostScript using a custom test framework)
- Full Level 2 operator coverage
- Optional Cython-accelerated execution loop (15–40% speedup)
- Working toward full Level 3 compliance (mostly there — the big features are done, just need a few remaining operators and Type 4 calculator functions)
What it's good for:
- Debugging and understanding PostScript programs
- Embedding a PS interpreter in Python workflows
- Learning how PostScript works (the code is readable — it's Python, not C)
- An alternative to GhostScript when you need transparency over raw speed
It's AGPL-3.0 licensed and on GitHub: https://github.com/AndyCappDev/postforge
I'd love feedback from anyone still working with PostScript. Are there specific documents or workflows where you've hit limitations with existing tools? That would help prioritize what to work on next.
r/PostScript • u/Reasonable-Pay-8771 • Aug 30 '25
My Postscript book shelf
Ignore the new-age cultish books on the top left. The two sections happen to be next to each other.
r/PostScript • u/Reasonable-Pay-8771 • Jun 25 '25
Iterate over 2 arrays at the same time.
Of course you can just do a for loop and juggle indices and get and put and whatnot. But let's try to be functional, starting with "fun". How about iterating over two arrays together by mapping over the left-hand array with the right-hand array stuffed in an iterator closure?
<< /map { [ 3 1 roll forall ] }
/to-each { {ARRAY 0 get PROC exec SELF 1 2 copy get 1 add put }
dup length array copy cvx
dup 0 5 -1 roll put dup 3 4 -1 roll put dup 5 1 index put }
/+ { {add} to-each map }
>> begin
[1 2 3] [4 5 6] + ==Map over the left, curry the right.
Thank you very much.