World: r3wp
[View] discuss view related issues
older newer | first last |
Graham 14-Oct-2008 [8202] | so this produces a single page of postscript? |
Henrik 14-Oct-2008 [8203x4] | each to-postscript call produces one single page. |
that means if you have 4 pages, you create 4 separate layouts and call to-postscript 4 times. | |
but it's quite possible that I could deliver a block of layouts... | |
...to to-postscript to generate multiple pages in one go. | |
Graham 14-Oct-2008 [8207x2] | that's what I do at present ... I have a block of layouts |
and then i generate a single page of postscript from all the layouts | |
Henrik 14-Oct-2008 [8209] | a single page from multiple layouts? |
Graham 14-Oct-2008 [8210x4] | yes |
no | |
one postscript file but multiple pages | |
inefficient to produce a single postscript file for each layout | |
Henrik 14-Oct-2008 [8214x2] | yes, true |
I can upload it it you want to play with it. | |
Graham 14-Oct-2008 [8216x2] | sure .. |
My method is because I have a single document that goes over many pages | |
Henrik 14-Oct-2008 [8218x2] | http://rebol.hmkdesign.dk/files/to-postscript.r |
load Geomol's postscript.r first. | |
Graham 14-Oct-2008 [8220x2] | where is it? |
this one ? http://hmkdesign.dk/rebol/postscript/postscript.r | |
Henrik 14-Oct-2008 [8222] | yes, that will be fine |
Graham 14-Oct-2008 [8223] | neat |
Henrik 14-Oct-2008 [8224] | I've now added multipage support (simpler than I thought) |
Graham 14-Oct-2008 [8225x2] | even better |
Anyway, excellent way to get a screen print of a View layout | |
Henrik 14-Oct-2008 [8227x2] | it's almost stupidly simple. :-) it's one of those things I wish I came up with 2-3 years ago. could have saved a lot of work. the secret is just to slavishly follow the offsets and sizes already generated with VID or RebGUI. |
no fancy postscript measuring tools are used. | |
Graham 14-Oct-2008 [8229] | I'm not sure it would work with microjustification of text |
Henrik 14-Oct-2008 [8230] | we don't have finer type setting features, but I can live with that, as long as I have a simple and quick way to build postscript pages. |
Graham 14-Oct-2008 [8231] | can you get that type of resolution with View? |
Henrik 14-Oct-2008 [8232] | if you scale your view up and then appropriately scale the postscript down, yeah |
Graham 14-Oct-2008 [8233] | scale it up so that it's too big for the screen? :) |
Henrik 14-Oct-2008 [8234] | yes, you can create 10000x10000 layouts if you want to, they just won't fit on the paper without scaling them down. I did something similar once in a different system, but it proved to be unusably slow on smaller PCs and it eats memory. |
Graham 14-Oct-2008 [8235] | yes |
Henrik 14-Oct-2008 [8236] | I may add scaling, if it makes sense |
Graham 14-Oct-2008 [8237] | So, will this work images etc? |
Henrik 14-Oct-2008 [8238x3] | image support depends on if postscript.r will get support for image!. currently it seems only to support direct loading of jpg, gif and bmp images. |
image! support is necessary if we want to output the face/image and face/effect parts of a face | |
scaling now added. use to-postscript/scale my-layout 0.1 to increase precision by 10 times. this means you must create your layout 10 times bigger. | |
Graham 14-Oct-2008 [8241x2] | so what elements can you support now? |
text and ? | |
Henrik 14-Oct-2008 [8243] | text and boxes |
Graham 14-Oct-2008 [8244] | ok |
Henrik 14-Oct-2008 [8245x2] | DRAW is probably too hard to get in. I don't personally need it. |
perhaps we should move this to the postscript group | |
Anton 14-Oct-2008 [8247x2] | Can you put bitmaps in a postscript file ? |
(moved to Postscript group) | |
PeterWood 30-Oct-2008 [8249] | I've come across what seems to be an oddity with View on the Mac.Iit seems that the Rebol/View console is using UTF-8 encoding but that View is using MacRoman. |
Gabriele 31-Oct-2008 [8250] | the "console" on Mac and Linux is just a terminal (OS provided), and they are usually UTF-8. That has nothing to do with View. |
Robert 1-Nov-2008 [8251] | How can I return something when using DISPLAY/DIALOG when the dialog is closed? Something like: result: display/dialog [...] Or is this only possible via a wrapper function? |
older newer | first last |