Is there any route to importing a PDF image into LiveCode?

Graham Samuel livfoss at mac.com
Tue Apr 5 15:11:31 EDT 2011


Thanks Matthias

Looks as if ImageMagick will do the job provided I can fully integrate it into my product without the user needing to do an additional installation etc. I am not good with command line interfaces (although I grew up with them, but that's another story). I am now investigating.

Cheers

Graham

on Tue, 5 Apr 2011 08:38:05 +0200, Matthias Rebbe <runrev260805 at m-r-d.de> wrote:

> Graham,
> 
> 
> you could use ImageMagick. http://www.imagemagick.org
> It is a software suite to create, edit, compose, or convert bitmap images. But you need only the command-line tool convert.
> 
> You could try the following command for a quick start for example:
> 
>     convert -density 300x300 -trim your_source.pdf output.jpeg
> 
> This would convert  the file  "your_source.pdf" to  the jpeg file  output.jpeg with a density of 300x300dpi
> 
> You can find more information about the commandline switches of convert at  
> http://www.imagemagick.org/script/convert.php
> 
> 
> HTH,
> 
> Matthias
> Am 05.04.2011 um 00:00 schrieb Graham Samuel:
> 
>> Folks
>> 
>> I see in the archives some discussion of this topic, but it seemed to be concentrated on the issue of reading the text in a PDF. I have to process some images which exist as PDF files (with little or no text and anyway I don't want to deconstruct it at all). I would be happy to turn the PDF into an image which could be displayed, snapshotted etc., i.e. essentially a bitmap.
>> 
>> I don't think LiveCode can do this natively, but can anyone suggest a route perhaps using another tool which would make this work automatically (I mean I want the user to find the file using a normal dialog within a LiveCode program and the image would then be imported without further action on the user's part)? The target platform is PC.
>> 
>> TIA
>> 
>> Graham

> 



More information about the use-livecode mailing list