Hope the following is helpful to you.
http://codeguru.earthweb.com/printing/printspool.html
Print monitor that prints into a directory 
http://www.paintlib.de/paintlib/
  paintlib is a portable C++ class library for image loading, saving and manipulation. Images can be loaded from BMP, GIF, JPEG, PCX, PGM, PICT, PNG, TGA, TIFF and WMF files and saved in BMP, JPEG, PNG and TIFF formats. Image manipulation can be done either through filters implemented in filter classes or by directly accessing the bitmap bits. Full C++ source is provided. This is library version 2.40, 2/24/02. The newest version of paintlib can be found via http://www.paintlib.de/paintlib/.