Hi Gabriele and everyone else that has helped me learn how to print to papers,
It is early morning here and I haven't gone to bed yet (this is my last day
to try to meet a deadline), so please forgive me for not naming all of you
that have so graciously helped me, but please accept my sincere
thanks. Gabriele, I especially owe you for the excellent job you did with
pdf-maker.r and for explaining to me how to use it. You are one of my
heros for sure now!
Here is how I am using pdf-maker.r to print out my reports (I would
appreciate any advice on how this can be improved):
REBOL []
do %pdf-maker.r
if exists? %pig.pdf [delete %pig.pdf]
count: 0
lets: copy [{AAAAAAAAA} {BBBBBBB} {CCCCCC}] ; short informative sample
reports :>)
pdf: copy {}
pdf: {write/binary %pig.pdf layout-pdf [}
foreach let lets [
pdf: join pdf compose/deep [{[textbox [} [font Courier 4.4 as-is
{^{}(let){^}]]}]]
count: count + 1
]
pdf: join pdf {]}
pdf: replace/all pdf {^{ } {^{} ;removes leading white space---trim didn't
work.
pdf: replace/all pdf { ^}} {^}} ;why are these two lines needed?
print pdf
do pdf
browse %pig.pdf
ask "Continue? "
delete %pig.pdf
Thanks again everybody!
Louis
At 09:45 PM 4/18/2002 +0200, you wrote:
>Hi Luis,
>
>On Thursday, April 18, 2002, 6:56:33 AM, you wrote:
>
>DLAT> Question 1: Why won't page three (below) print the contents of the
>DLAT> variable named letter?
>
>Because PDF Maker's dialect does not evaluate words. (That needs
>to be added somehow, I hope I will be able to someday. :)
>
>Workaroud: use compose/deep.
>
> write/binary %pig.pdf layout-pdf 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)]
> ]
> ]
>
>DLAT> Question 2: Is it possible to read into pdf-maker.r a pre formatted
>DLAT> text-only document (like that contained in the variable named letter
>DLAT> above), and have it printed as pre formatted without further
>coding? Or is
>DLAT> it necessary to change linefeeds to newline or ^/ etc.?
>
>DLAT> Question 3: How can one turn off justification?
>
>You can use the following paragraph alignments:
>
> textbox 15 100 100 160 [
> justify {This paragraph will be justified. This is the default
> paragraph alignment. Original text formatting is
> lost.}
> left align {This paragraph will be left aligned. Original text
> formatting is lost.}
> right align {This paragraph will be right aligned. Original text
> formatting is lost.}
> center {This paragraph will be centered in the textbox.
> Original text formatting is lost.}
> as-is {This paragraph will be left aligned.
>The text will be rendered as is, so the original
> formatting
>is preserved. This is what you are looking
>for if I understand correctly.}
> ]
>
>DLAT> Question 4: I have version 1.21.0 of pdf-maker.r. Is that the latest?
>
>Yup. :-)
>
>DLAT> Question 5: I have a 6 page pdf-maker-doc.pdf, and a
>pdf-maker-doc.r. Is
>DLAT> there more documentation somewhere?
>
>Unfortunately, no. I am the one to blame for this.
>
>DLAT> Question 6: What is the purpose of the following line at the
>beginning of
>DLAT> pdf-maker-doc.r:
>
>It's the image of a REBOL face that appears in the second page.
>
>DLAT> Thanks for making pdf-maker.r available, Gabriele!
>
>I'm very glad you find it useful!
>
>Regards,
> Gabriele.
>--
>Gabriele Santilli <[EMAIL PROTECTED]> -- REBOL Programmer
>Amigan -- AGI L'Aquila -- REB: http://web.tiscali.it/rebol/index.r
>
>--
>To unsubscribe from this list, please send an email to
>[EMAIL PROTECTED] with "unsubscribe" in the
>subject, without the quotes.
--
To unsubscribe from this list, please send an email to
[EMAIL PROTECTED] with "unsubscribe" in the
subject, without the quotes.