tx and img in a fld

Klaus Major klaus at major-k.de
Sun Oct 24 11:23:11 EDT 2004


Bon jour Yves et Rob,

> Salut Yves,
>
>> I'd like to add at the end of text (after some cr return) an img 
>> coming from a screen copy (in fact it is a
>> file on the desktop of the user named "image 1" and the file format 
>> of this img is .pdf therefore, there
>> is a button "import illustration" beside the fld "foo"
>
> Check out the imageSource field property in Rev Dictionary
>>
>> what could be the script of this btn ?
>>
>> It starts with :
>>
>> on mouseUp
>> answer file "Choose your file :" with "/users/<NameOfUser>/Desktop/" 
>> of type "pdf"
>> if it is empty then exit to top
>
>  put return&space after field "foo"
>  set the imageSource of char -1 of field "foo" to "binfile:"&it
> -- is pdf supported directly, or must
> -- one tie the pdf file to an image file?

1. You an display a PDF file inside a player object on OS X.
2. You can't use a PDF as an imagesource :-(

3. BUT Trevor's excellent QuickTime external can convert a PDF to a 
jpeg or png imagefile!
(..and PSD, TIFF, GIF and PICT :-)

> -- 
> Rob Cozens
>
> "If you give me six lines written by the most honest man,
>  I will find something in them to hang him."
>
>  -- Cardinal Richelieu (1585-1642)

Maybe i shouldn't show you any scripts of mine... ;-)


Regards

Klaus Major
klaus at major-k.de
http://www.major-k.de



More information about the use-livecode mailing list