🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: adobe.postscript.programming
2 messages
2 total messages Started by Leonid_E._Zakharov Tue, 10 Aug 2004 17:29
Simplest PostScript file cannnot be printed correctly. My mistake ?
#513
Author: Leonid_E._Zakharov
Date: Tue, 10 Aug 2004 17:29
50 lines
2036 bytes
The following file contains 9 points of data, dense in x-direction and connected by a line. The first line is printed on all printers, available to me, as well as displayed by the Abobe Acrobat in with large noise generated. In the second line the intrinsic noise in the data is amplified 10 times but the line is printed correctly. Expansion the distance in x-direction 100 times (Line 3) makes the line look correctly. The bahavior if the same in all PostScript devices.

Is it my mistake ? The file seems to be crystal clear.
==============================================================
%!PS-Adobe-3.0

200 400 translate

%----------------------------------------------------------
1 setlinewidth

1 0 0 setrgbcolor
newpath %Line=2
.01 .012 moveto
.02 .030 lineto
.03 .048 lineto
.04 .012 lineto
.05 .063 lineto
.06 .018 lineto
.07 .063 lineto
.08 .021 lineto
.09 .045 lineto
stroke

0 0 1 setrgbcolor
newpath %Line=1
 3.01 .12 moveto
 3.02 .30 lineto
 3.03 .48 lineto
 3.04 .12 lineto
 3.05 .63 lineto
 3.06 .18 lineto
 3.07 .63 lineto
 3.08 .21 lineto
 3.09 .45 lineto
stroke

0 1 0 setrgbcolor
newpath %Line=3
 101 .012 moveto
 102 .030 lineto
 103 .048 lineto
 104 .012 lineto
 105 .063 lineto
 106 .018 lineto
 107 .063 lineto
 107 .021 lineto
 109 .045 lineto
stroke
showpage
Re: Simplest PostScript file cannnot be printed correctly. My mistake ?
#514
Author: Miklos_Somogyi
Date: Wed, 11 Aug 2004 01:53
12 lines
1105 bytes
Leonid,

The file is clear and it prints correctly (i.e. what you ask for is done). However, you forgot to set the scales, therefore the default
applies: 25.4/72 = 0.35 mm.
Now you ask for hundredth of this...

No wonder that all your points look like on top of each other, especially your blue line.
You may even bump into device resolution problems.

Set the scales and it'll be fine.

Miklos
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads