r3wp [groups: 83 posts: 189283]
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

World: r3wp

[Postscript] Emitting Postscript from REBOL

Pekr
7-Apr-2006
[208]
In fact - my question could be just simplified - how do we do print 
preview without GhostView or other PS viewer tools? If that is "somehow" 
possible, then it is only good. That is why I referred to the need 
of AGG based preview, to actually save third app usage - a PS viewer.
Geomol
7-Apr-2006
[209]
sorry, PS -> DRAW
Pekr
7-Apr-2006
[210]
OK, enough, and now something at least a bit more constructive:
Geomol
7-Apr-2006
[211]
I think, what Henrik is thinking about is, that if he already has 
something on his screen produced in REBOL, e.g. something from DRAW, 
then he just want to print it easily. But you're right, if we get 
all different PS-files in REBOL, how do we preview them then? I don't 
want to, I want to easily print a NicomDoc document, I alread see 
on my monitor.
Pekr
7-Apr-2006
[212]
... more generally in rcentral.org
JaimeVargas
7-Apr-2006
[213]
One thing that may become an issue on the future is syncronization 
of Color Profiles. Different display and printing devices hace different 
gamma curves. This should be an issue for black and withe and vector 
graffics, put if you are printing a rebol screen. Then you may need 
to take the color profiles into consideration.
Henrik
7-Apr-2006
[214x2]
geomol understood me correctly :-)
even just by making vectorgraphics and text in PS now is great. it'll 
almost fulfill my needs
JaimeVargas
7-Apr-2006
[216]
Yes. Henrik go for it. After all you code what you need.
Maxim
7-Apr-2006
[217]
and we'll use it  ;-)
JaimeVargas
7-Apr-2006
[218]
However, my point is that for printing PS is not the universal solution, 
but having a partial  solution is better than having none.
Maxim
7-Apr-2006
[219]
well we can convert a draw block to-image and then send that out 
directly.. but its very slow to print... I mean sending 300 dpi or 
more bitmaps to a printer is tedious.
Henrik
7-Apr-2006
[220]
maxim, I don't think it's reliable anyway if exact sizes are needed, 
for example for filling out pre-printed forms
Maxim
7-Apr-2006
[221x3]
300dpi = 300 ticks in an inch.  if you know the printer edges to 
be 1/2 inch, then you can juste calculate a 2250 wide bitmap (using 
US letter size paper)  and send it .  this works.  simple math .
I used to do it on amiga...
If I knew how PCL wraps images I'd do it on PC too... I've just not 
needed to do printing with rebol, for which html didn't solve my 
needs... yet...
Henrik
7-Apr-2006
[224]
one of the reasons also for a DRAW block is that you can preview 
your output first. Not so easy with PDF Maker...
Maxim
7-Apr-2006
[225x3]
not saying its not needed.
and you can scale it to whatever resolution...
a good solution might be to use decimal 0-1 values and just recompute 
them to whatever output you are using (so adapt to any paper/bitmap 
size)
Henrik
7-Apr-2006
[228]
geomol, on feedback, I'm not entirely sure what the initial supported 
functions could be since I'm not an expert on DRAW, but at least 
support for text and vector graphics. the coordinate system for DRAW 
and PS would be nice if it could work identically.
Maxim
7-Apr-2006
[229]
DRAW uses pixels... I am pretty sure PS does not.
Henrik
7-Apr-2006
[230x2]
right, but that should be translatable? DRAW can scale graphics up 
or down.
to simulate DPI density
Maxim
7-Apr-2006
[232]
yes.
JaimeVargas
7-Apr-2006
[233]
AGG DRAW is pure vector gfx
Geomol
7-Apr-2006
[234]
Ok, text and vector graphics ... and some grey-tone/colour for a 
start. And then the rotate, scale and translate, that's already included 
in my postscript dialect.
Henrik
7-Apr-2006
[235]
what about page handling, page sizes, page breaks, etc?
Graham
7-Apr-2006
[236]
the view preview does not have to be perfect .. it just has to be 
good enough.
Henrik
7-Apr-2006
[237]
positioning and size is the most important in the preview. rendering 
and prettiness is less important
Graham
7-Apr-2006
[238x3]
for line elements, and text, that should not be a problem ( given 
the same fonts ).
All the more exotic drawing commands may be though.
Like you, I'm primarily interested in text, and lines ( my application 
uses LaTeX at present to do text ).
Henrik
7-Apr-2006
[241x2]
I need to output tables and text at specific locations as well as 
bar codes
straight lines, boxes
Graham
7-Apr-2006
[243]
that should be very easy to do with a postscript dialect.
Henrik
7-Apr-2006
[244]
managing line thickness is going to be important, but that may not 
be so hard
Graham
7-Apr-2006
[245x2]
thickness?
of lines, or text, or what?
Henrik
7-Apr-2006
[247x2]
of lines
I've seen a problem with a barcode reader that could not read codes 
printed from one expensive printer and it would read them fine if 
printed from another cheap printer
Graham
7-Apr-2006
[249]
line thickness can be specified in both ps and view.
Henrik
7-Apr-2006
[250]
turned out the expensive printer was able to separate two parallel 
lines just by a hair's width, where they should appear as a single 
line at double width of one line. that made the barcodes unreadable.
Graham
7-Apr-2006
[251x2]
that was bad programming.
it relied a printer deficiency to work.
Henrik
7-Apr-2006
[253x2]
I didn't discover the error until I tried it on the expensive printer. 
besides the size and position of the line was supposed to be correct. 
the barcode was created with PDF Maker
and it looks correct when viewed in a PDF Viewer
Graham
7-Apr-2006
[255]
even when you drill down on the bars to high resolution?  Remember 
screen res is only 72 dpi .. lower than your cheap printer.
Geomol
7-Apr-2006
[256]
PS has setlinewidth, and setting it to 0 will make is as thin, as 
the device can do.
Graham
7-Apr-2006
[257]
John, before we go further in developing this, I would like to know 
what license is going to be applied.  I note that yu have copyright 
nicomsoft in the header.