Description:
The PostScript Page Description Language.
|
|
|
Throwing a custom error
|
| |
Hi,
In Barcode Writer in Pure PostScript (BWIPP) it is possible for the user to provide invalid input data. At present we do not provide any useful form of input validation or error reporting and we simply allow the code to trip up and bomb out in meaningless ways on invalid data.
To provide a somewhat uniform approach to handling invalid user input I am investigating whether the PS code could raise a custom error and terminate for each circumstance (e.g. /bwipp.badCheckDigit or /bwipp.invalidCharacter, etc) that can be communicated to the user using whatever ordinary PS error handling is available in that environment.... more »
|
|
xpost3 current challenges
|
| |
I've got 2 trains going at the same time here, and kinda stalled on both. Track 1 is finishing up this postscript translation of the xpost2 scanner. It's running into issues with building procedures. And I've really painted myself into a corner with lots of code and virtually no comments. I suppose the obvious next step is to print it out and re-type it (fixing the uglies as they arise).... more »
|
|
PS-viewing Browser plugin for Windows?
|
| |
Subject line pretty much says it all: I'm seeking a browser plugin (for FF,
or Safari or Opera or IE 7-8-9, under Windows (XP, Vista, 7)) to render .ps
files. Google, alas, steers me only to Linux or MacOS .ps browser services,
not Windows ones.
Thanks for all pointers, even dead ends :-) . Cheers, -- tlvp... more »
|
|
merging colors..
|
| |
This is my first "fancy" program, three color-shaded circles.
It would be nice to have the colors appropriately combine/add in the overlap regions.
Is there a nice way to do that?
%! % three.ps
/inch {72 mul} def % 72 pixels to the inch
/N 500 def % steps... more »
|
|
inside-testing operators for ray-bezier-surface intersection.
|
| |
I've been struggling with these Bezier surfaces for some time now, and I think there may be a novel shortcut for find the intersection point.
First project the surface onto a plane whose normal coincides with the ray.
Iterate through a single parametrization, drawing the initial boundary curve and the moving curve connected by lineto in a single path.... more »
|
|
ps scanner - finite state machines
|
| |
Rough draft translation of xpost's scanner into postscript. I'm thinking that I can "compile" this into the systemdict data structure to bootstrap the next interpreter. Or extend it into that golf-library scanner I was talking about.
%!
/digit (0123456789) def
/alpha (abcdefghijklmnopqrstuvwxyz\... more »
|
|
Code copied from Bluebook and Greenbook barfs in GSview, why?
|
| |
I copied the last part of the complaint into the .PS file for documentation.
**
%!
%% TRY3.PS COPIED FROM bluebook page 46
%%
%% GSview barfs:
%%
%% showpage
%%
%% --- End offending input ---
%% file offset = 0
%% gsapi_run_string_continue returns -101
%%
%%EndComments
/inch (72 mul) def % 72 pixels per inch... more »
|
|
translate/rotate combination
|
| |
Hi, I can't handle my combination of translate/rotate in the right way :-(
I want to "run" several postscript files and print them at various place on a huge poster.
I would like to define a function with parameters being: <file> <r> <x> <y>
meaning: go to (x,y) on the page, and rotate the TOP-LEFT edge of the... more »
|
|
Problems calling an EPS image into a PostScript file
|
| |
Hi,
The following PostScript code has been tested with other programs to convert PDF and works properly, but with the Acrobat Distiller generates error:
**** Part of PostScript code ****
/DIR_IM (D:\\CM\\Images\\) def
/IMCards (Cards.eps) def
/DIRCards IMCards length DIR_IM length add string def... more »
|
|
|