PDF-Maker V1 and images
[1/10] from: kpeters:otaksoft at: 13-Aug-2007 15:10
While I am getting the hang of graphics & textboxes, images still elude me:
Given an base-64 encoded JPG in C:\Logo.r
logo: load %/c/logo.r
[ page size 215.9 279.4
image 20 100 100 100 logo
]
produces read errors in Acrobat Reader ("Read less image data than expected.")
What am I missing or doing wrong?
Thanks, as always, for all help
Kai
[2/10] from: anton:wilddsl:au at: 14-Aug-2007 14:51
I don't think PDF-MAKER supports base-64 encoded
images. You must pass it an image.
LOGO is a binary!, with the jpeg inside, so try
LOADing it a second time to make it an image!. eg:
logo: load load %/c/logo.r
Regards,
Anton.
[3/10] from: kpeters:otaksoft at: 14-Aug-2007 20:31
On Tue, 14 Aug 2007 14:51:26 +1000, Anton Rolls wrote:
> I don't think PDF-MAKER supports base-64 encoded
> images. You must pass it an image.
<<quoted lines omitted: 3>>
> Regards,
> Anton.
Thanks for your suggestion, Anton ~
problem persists, though:
Test the logo to see if good:
>> logo: load %/c/logo.r
== #{
FFD8FFE000104A46494600010101012C012C0000FFE100164578696600004D4D
002A00000008000000000000FFDB00430005030404040305040404050505...
>> write/binary %/c/new.jpg logo
yes, Gimp thinks it's perfectly fine
build-page: function[ rec [object!]][ tmp ] [
logo: load load %/c/logo.r
[ ; each page must be a block
page size 215.9 279.4
;
image 20 100 100 60 logo
still gives the same error as before, though I now do see the top part of the
logo with a big black box (presumably of the image size I specified?) below.
Any more ideas?
Thanks,
Kai
[4/10] from: anton:wilddsl:au at: 15-Aug-2007 17:36
Hi Kai,
> yes, Gimp thinks it's perfectly fine
What does rebol think, though ? eg:
load %/c/new.jpg
view layout [image %/c/new.jpg]
Anton.
[5/10] from: santilli:gabriele:gma:il at: 15-Aug-2007 11:43
2007/8/15, Kai Peters <kpeters-otaksoft.com>:
> >> logo: load %/c/logo.r
> == #{
> FFD8FFE000104A46494600010101012C012C0000FFE100164578696600004D4D
> 002A00000008000000000000FFDB00430005030404040305040404050505...
You can't pass a BINARY! value, you must pass an IMAGE! value.
HTH,
Gabriele.
[6/10] from: kpeters:otaksoft at: 15-Aug-2007 8:33
On Wed, 15 Aug 2007 17:36:14 +1000, Anton Rolls wrote:
> Hi Kai,
>> yes, Gimp thinks it's perfectly fine
<<quoted lines omitted: 3>>
> view layout [image %/c/new.jpg]
> Anton.
Hi Anton ~
rebol is just as happy as Gimp... one good-looking logo!
Hi Gabriele ~
you must have missed my last email - I am doing a
double load as per Anton's suggestion.
Kai
[7/10] from: santilli:gabriele::gmail at: 16-Aug-2007 10:51
2007/8/15, Kai Peters <kpeters-otaksoft.com>:
> you must have missed my last email - I am doing a
> double load as per Anton's suggestion.
Does TYPE? return IMAGE! ?
Regards,
Gabriele.
[8/10] from: kpeters:otaksoft at: 16-Aug-2007 10:04
build-page: function[ rec [object!]][ tmp ] [
logo: load load %/c/logo.r
print type? logo
[ page size 215.9 279.4
;
image 20 100 100 60 logo
Gabriele ~
Yes, it does return image
Kai
[9/10] from: santilli:gabriele:gm:ail at: 17-Aug-2007 12:15
2007/8/16, Kai Peters <kpeters-otaksoft.com>:
> Gabriele ~
>
> Yes, it does return image
Ok.
Which version of REBOL, and which version of PDF Maker?
Regards,
Gabriele.
[10/10] from: kpeters::otaksoft::com at: 17-Aug-2007 11:37
Gabriele ~
your question for the PDF-maker version has prompted me to not just look
at the one available from the Rebol library (1.24.0) which I had been using.
I found a version 1.27.1 on what appears to be your website and it works
just fine with that - thank you.
Kai
PS: I might be a good idea to update the library with 1.27.1
On Fri, 17 Aug 2007 12:15:52 +0200, Gabriele Santilli wrote:
Notes
- Quoted lines have been omitted from some messages.
View the message alone to see the lines that have been omitted