pdfToImage

pdfToImage ( int pdfPath , int _resolution[default:300] , string _imageDirectory ) : list

Convert PDF into images. File names of images are at this format : _1.png, _2.png, etc. Each number correspond to the page number.


Return value

Returns a list of paths of produced images.

See also

ocr
partitionImage

Example


list imagePaths = pdfToImage(path("desktop")+"file.pdf", 200)

Parameters

pdfPath

path of the PDF file to convert

_resolution[default:300] (optional)

resolution of images in DPI

_imageDirectory (optional)

Path of directory for images. By default it is the TMP folder.