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

World: r3wp

[Postscript] Emitting Postscript from REBOL

Gabriele
26-Apr-2006
[901]
unless you want to rewrite AGG in rebol ;)
Graham
26-Apr-2006
[902x2]
just a quick question .. was it hard/easy to do images in pdf-maker 
?
I'm guessing the same operations are used to include images in postscript.
Gabriele
26-Apr-2006
[904x2]
you just include the raw rgb data
and, in pdf 1.4, optional alpha channel data
Graham
26-Apr-2006
[906x2]
so, there's no translation involved ?
inverting the image?
Gabriele
26-Apr-2006
[908x3]
in ps you have to encode the data i guess
you need to invert the alpha channel because it's the opposite in 
rebol
but you can do that as a filter in pdf
Graham
26-Apr-2006
[911]
since 0x0 is bottom left in ps, and top left in Rebol ...
Gabriele
26-Apr-2006
[912x2]
but for images samples, the first sample is the top left corner
so i don't have to reorder the pixels in pdf maker if that's what 
you are asking
Graham
26-Apr-2006
[914x2]
Is there anything that can be done for R3/draw  that helps support 
pdf/postscript creation?
A lack of a printing solution after all these years is still a thing 
in my book.
Gabriele
26-Apr-2006
[916x6]
the problem is that printing is a broad term
it may mean printing a document (i.e. typesetting), or just printing 
what you have on screen
the fact that every os has its own way to handle printing doesn't 
help
on unix you usually create ps and send it to the print spooler
on windows you need to use gdi
on osx i guess you need to create a pdf
Graham
26-Apr-2006
[922]
Doesn't OSX have a postscript interpreter in it ?
Henrik
26-Apr-2006
[923]
OSX uses LPR, I think
Graham
26-Apr-2006
[924]
Or did that change?
Gabriele
26-Apr-2006
[925]
henrik, does it take ps too?
Pekr
26-Apr-2006
[926]
I think we don't have many choices - you can to-image your layout, 
or go for external engines, using some make-docs - pdf, postscript, 
html plus css standard ...
Henrik
26-Apr-2006
[927]
postscript works on a different level. it's OS wide in OSX. I think 
it converts everything to PDF before printing, because all graphics 
are PDF centric.
Gabriele
26-Apr-2006
[928]
if windows handled ps i guess we'd have a good solution. it would 
have been easier for me to write a ps maker instead of a pdf maker 
:)
Henrik
26-Apr-2006
[929]
gabriele, I would think it does. I have to convert docs to PS if 
I want them printed under Linux with LPR
Gabriele
26-Apr-2006
[930x4]
lpr, per se, does not mandate a document format
it just spools documents to the printer
originally documents were text files
and, if you had a ps printer, ps files
Pekr
26-Apr-2006
[934]
how "good" is already w3c's stuff here? I mean html plus css and 
it's media (printing) capabilities? browsers are everywhere ....
Henrik
26-Apr-2006
[935]
then I don't know what it does, but I can pipe PS files directly 
into LPR
Gabriele
26-Apr-2006
[936]
then, ghostscript got put in between lpr and the printer, so that 
you could always use ps even for non-ps printers
Graham
26-Apr-2006
[937x2]
PS files are just text files
Pekr is very opposed to using ghostscript!
Gabriele
26-Apr-2006
[939]
petr, i don't think it has ever been important for html to be a printing 
ml
Graham
26-Apr-2006
[940]
I think early Netscape clients emitted PS as well.
Henrik
26-Apr-2006
[941]
well, if this is accurate, I don't use ghostscript at all. this 150$ 
printer here must be able to handle postscript natively then :-)
Gabriele
26-Apr-2006
[942]
i mean, you can print an html document; but if you wanted to print 
a book, you wouldn't probably use html
Graham
26-Apr-2006
[943x3]
some printers come with postscript emulation.
Gabriele, that's what annoys me about Rebol documentation.
It's all html and you can't print it.
Pekr
26-Apr-2006
[946]
Gabriele - I know, but they try to ... Graham - yes, I try to use 
what is at user's disposal already .... browser or mostly Acrobat 
Reader ....
Graham
26-Apr-2006
[947]
In the early days, rebol docs came as pdfs.
Gabriele
26-Apr-2006
[948]
that's one of the reason a pdf emitter for md3 is very important
Henrik
26-Apr-2006
[949]
I think HTML/CSS is not good enough for printing, even with the printing 
oriented CSS commands. It's a nightmare to match margins, and browsers 
don't interpret the settings equally.
Gabriele
26-Apr-2006
[950]
and why i studied TeX