Possible Duplicate:
Converting a PDF to PNG
Staff there any open source library in C can convert PDF to JPEG. thank you
Possible Duplicate:
Converting a PDF to PNG
Staff there any open source library in C can convert PDF to JPEG. thank you
mupdf internally uses libfitz (pretty small) and supports writing png (it only decodes jpeg - at least by default) but you can convert to jpeg using mtpixel (part of mtcelledit), convert (part of imagemagic)
mupdf example:
http://git.ghostscript.com/?p=mupdf.git;a=blob;f=doc/example.c
png2jpg:
http://src.gnu-darwin.org/ports/games/torcs/work/torcs-1.3.0/src/misc/png2jpg/png2jpg.c
edit: if you don't mind having cairo as a dependency (its pretty large these days) libpoppler will work too, but mupdf is smaller and easy to hack at.