# How to read a pdf and convert it to an image (bmp, jpeg, png) and then save it?

 1. [FAQ](/ja/faq)
2. »
3. [Raster Image Questions](/faq/raster-image-questions)

Example of converting a pdf - document page into an image you can look in function getThumbnail in PdfiumWrapperImpl.cpp.

Example of saving OdGiRasterImage - object in a file you can look in the function createRasterImage in DbDeviceDriver.cpp.
