(image-to-file {image :image
image-index :image-index
ext :ext
dpi :dpi
quality :quality
base-path :base-path})
(pdf-2-images
pdf-file
image-handler
&
{:keys [start-page end-page dpi quality ext pathname]
:or {start-page 0 end-page (Integer/MAX_VALUE) dpi 300 quality 1 ext "png"}})
Converts a page range of a PDF document to images using one of the defined image handlers (image to image, image to byte array or image to file) or the custom one. Returns a sequence consisting of the images, byte arrays or pathnames depending on the selected image handler.
Options are key-value pairs and may be one of: :start-page - The start page, defaults to 0 :end-page - The end page, defaults to Integer/MAX_VALUE :dpi - Screen resolution, defaults to 300 :quality - Quality to be used when compressing the image (0 < quality < 1), defaults to 1 :ext - The target file format, defaults to png :pathname - Path to the PDF file, used if pdf-file is not specified (= nil)
Converts a page range of a PDF document to images using one of the defined image handlers (image to image, image to byte array or image to file) or the custom one. Returns a sequence consisting of the images, byte arrays or pathnames depending on the selected image handler. Options are key-value pairs and may be one of: :start-page - The start page, defaults to 0 :end-page - The end page, defaults to Integer/MAX_VALUE :dpi - Screen resolution, defaults to 300 :quality - Quality to be used when compressing the image (0 < quality < 1), defaults to 1 :ext - The target file format, defaults to png :pathname - Path to the PDF file, used if pdf-file is not specified (= nil)
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close