Is there any route to importing a PDF image into LiveCode?
Matthias Rebbe
runrev260805 at m-r-d.de
Tue Apr 5 02:38:05 EDT 2011
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
>
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
More information about the use-livecode
mailing list