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

Re[2]: [REBOL] Re: pdf-maker.r errors

 [1/5] from: g:santilli:tiscalinet:it at: 19-Apr-2002 13:06


Hi Graham, you wrote: GC> and you may see that it although it right aligns, it does GC> not respect the line breaks. Indeed. You need to use 'newline to do that. I.e.: lo: layout-pdf [ [ ; page 1 textbox 65 230 40 40 [ right align "Investment" newline "Loan Amount" newline "Loan Cost" newline "Loan Type" ] ] ] GC> I get the following error: That's a bug. I hope to fix it soon. Workaround: lo: layout-pdf [ [ ; page 1 textbox 65 230 40 40 [ as-is { Investment Loan Amount Loan Cost Loan Type} ] ] ] Regards, Gabriele. -- Gabriele Santilli <[g--santilli--tiscalinet--it]> -- REBOL Programmer Amigan -- AGI L'Aquila -- REB: http://web.tiscali.it/rebol/index.r

 [2/5] from: g:santilli:tiscalinet:it at: 22-Apr-2002 12:39


Hi Graham, You wrote: GC> In case you haven't seen the image problem, here's a short GC> script to demonstrate. That's very strange. I've used it a lot with images and never seen any problem. Also, it should not depend on the image format as once loaded by REBOL there should be no difference. Did you try saving the image as PNG to see if that makes any difference? I'll have a look at it ASAP. Please remind me if you don't see an answer from me in a day or two. Regards, Gabriele. -- Gabriele Santilli <[g--santilli--tiscalinet--it]> -- REBOL Programmer Amigan -- AGI L'Aquila -- REB: http://web.tiscali.it/rebol/index.r

 [3/5] from: g:santilli:tiscalinet:it at: 25-Apr-2002 10:40


Hi Graham, you wrote: GC> Here's your reminder :) Thanks. :) (Been away for one day...) Regards, Gabriele. -- Gabriele Santilli <[g--santilli--tiscalinet--it]> -- REBOL Programmer Amigan -- AGI L'Aquila -- REB: http://web.tiscali.it/rebol/index.r

 [4/5] from: g:santilli:tiscalinet:it at: 25-Apr-2002 13:02


Hi Graham, you wrote: GC> Here's your reminder :) I just had a look at it. My answer so far: it's a mystery. The REBOL code seems to be working as expected (I also verified that there are no bugs in REBOL in this regard, with: view l: layout [ image testimage feel [engage: func [f a e] [ l/color: pick testimage e/offset/y * testimage/size/x + e/offset/x + 1 show l ] ] ] which works correctly). Also, it is not related to the size of the image, since scaling it up or down does not make any difference. In PDF Maker I'm basically doing: foreach [b g r a] img [ insert insert insert tail data r g b ] which AFAIK is working correctly (tried with PICK instead of FOREACH too, but got the same result). I can't see any problem with that... So, either the problem is somewhere else in my code (will check later), or there's something I misread about the PDF spec, or it's a problem in the Acrobat Reader (will check with Ghostscript later). Let me know if you have any idea, of if you find another image which gives the same problem. Regards, Gabriele. -- Gabriele Santilli <[g--santilli--tiscalinet--it]> -- REBOL Programmer Amigan -- AGI L'Aquila -- REB: http://web.tiscali.it/rebol/index.r

 [5/5] from: g:santilli:tiscalinet:it at: 25-Apr-2002 23:49


Hi Graham, (Did you get my earlier message?) you wrote: GC> Strange it works with 'write on some images It works if there is no #{0A} in the image data. (Also, it would work fine on Unix and Amiga, only change some pixels on the Mac, but does what you have seen on Windows.) Regards, Gabriele. -- Gabriele Santilli <[g--santilli--tiscalinet--it]> -- REBOL Programmer Amigan -- AGI L'Aquila -- REB: http://web.tiscali.it/rebol/index.r