03-09-2010 07:49 PM
Hi,
I would like to ask if it is possible to use LabVIEW to convert PDF files to image files? or more specifically, PNG files.
Or is there any resources/links that provides sufficient information about the PDF format so that one can use LabVIEW to do some manupulation and get an image/picture Map?
Will appreciate any advises.
Thank you for your kind attention.
Rgds
Solved! Go to Solution.
03-09-2010 10:29 PM
I would consider using ImageMagick to perform the conversion and some of the manipulations.
You can find a nice LV interface here.
03-09-2010 10:33 PM
03-09-2010 11:36 PM
I once posted a VI to create PNG files from LaTeX commands where I used Ghostscript to convert from eps to png. It turns out, with only a very minor modification the subVI will also convert PDF to PNG. Try this out. You can install Ghostcript and then add the path to gswin32c.exe to the path control (if you install to the default location you shouldn't have to change anything other than drive letter).
http://pages.cs.wisc.edu/~ghost/
03-09-2010 11:41 PM
Hi, thanks for the replies.
I have came across a few programs that can do the conversion, but those that are free doesn't support command line execution so cannot automate.
I have also came across some SDKs but so far none are free.
That's why I'm considering creating a custom program to do the job.
Will check out the imagemagic.
03-09-2010 11:49 PM
Limsg wrote:
Hi, thanks for the replies.
I have came across a few programs that can do the conversion, but those that are free doesn't support command line execution so cannot automate.
Will check out the imagemagic.
Ghostscript is free and command line ready (see my previous example). Simple installation, good conversion tools. ImageMagick has command line interface, and very powerful manipulation tools. Installing the LV interface involves some OpenG libraries and some learning, but it is very nice when you get it going. It basically builds the commands for you.
03-10-2010 01:12 AM
Hi Darin, is it possible to save the VI as LV7.1? I can't open the attached VI.. thanks..
03-10-2010 09:29 AM
Sorry I don't have LV8.0 installed so I can't save for 7.1, perhaps someone else would be kind enough, or we can try the downconvert request thread.
There was not much I liked about 8.0 and when I removed it I didn't know or care that I wouldn't be backsaving....
03-10-2010 04:52 PM
03-10-2010 08:47 PM
smercurio, thank you..
Darin, actually my company has bought LV8 also, but after using for a while, I removed it and prefer to use LV7.1 instead. It's simpler and easy to use. The biggest reason is it seems very complicated to complie an installation package with the LV8 application builder, when it's a breeze to use the AB in LV7.
I'll experiment with gs as recommended. Thank you for the kind help..