Page 1 of 1
API classes for PDF to PNG on linux platform
Posted: 2009-10-07T10:07:02-07:00
by jieleng88
I am writing a C++ program running on linux and try to use c++ library to convert PDF to PNG. Which class and method should I use for pdf->png conversion? what is the dependency for my program to run?
Re: API classes for PDF to PNG on linux platform
Posted: 2009-10-07T11:00:51-07:00
by magick
To convert PDF to PNG you simple need read() and write(). Read the PDF format, and write the PNG format. Write your Magick++ application and build like this:
- g++ `Magick++-config --cxxflags --cppflags` -o magick++ magick++.cpp `Magick++-config --ldflags --libs`
Re: API classes for PDF to PNG on linux platform
Posted: 2009-10-07T11:35:06-07:00
by jieleng88
ok. Sounds simple. So there is no third party tool dependency like Ghostscript. Magick++ is the only library my program need to compile and link?
Re: API classes for PDF to PNG on linux platform
Posted: 2009-10-07T18:51:11-07:00
by magick
ImageMagick depends on the Ghostscript delegate library or the gs command line program to interpret PDF. ImageMagick does not rely to either to write a PDF image.