Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

[REBOL] Re: pdf-maker.r

From: greggirwin:mindspring at: 18-Apr-2002 10:09

Hi Louis, << I am only now realizing why make-doc-pro and pdf-maker are so important to rebol users---platform independent printing. In fact, the only way to print to paper (am I correct about this?). >> You can write HTML files and use the browser to print them or, in some cases, you can dump things directly to the printer, but pdf-maker gives you the most control over the output in a nice platform independent way. << Question 1: Why won't page three (below) print the contents of the variable named letter? I get a blank page, but this is what I need to be able to do to dynamically create the pages for printing. (The following best viewed with Courier font.) >> Your block contains the word 'letter, but pdf-maker doesn't know what to do with it. You need to do something like this to put the value of 'letter in there. pdf-block: compose/deep [ [ ;page 1 textbox [font Courier 4.8 "Example text 1."] ] [ ;page 2 textbox [center font Helvetica 2.8 "What?"] ] [ ;page 3 textbox [font Courier 4.8 (letter)] ] ] COMPOSE lets you specify which parts of the block to reduce by putting them in parens. << Question 2: Is it possible to read into pdf-maker.r a pre formatted text-only document (like that contained in the variable named letter above), and have it printed as pre formatted without further coding? Or is it necessary to change linefeeds to newline or ^/ etc.? >> Hmmm. I haven't tried that. Maybe Gabriele will jump in and let us know if you could create one big text box to do that. << Question 5: I have a 6 page pdf-maker-doc.pdf, and a pdf-maker-doc.r. Is there more documentation somewhere? >> I don't think so. Keep notes as you're trying things out with it and pass them along to Gabriele. Then there will be more. :) << Question 6: What is the purpose of the following line at the beginning of pdf-maker-doc.r: rebolface: load 64#{..content deleted here..} >> I have 1.20 here, and it doesn't contain that. The only decompress it has is for the font metrics. --Gregg