Liking cljdoc? Tell your friends :D

pdf-to-images.core


image-to-byte-arrayclj

(image-to-byte-array {image :image ext :ext dpi :dpi})
source

image-to-fileclj

(image-to-file {image :image
                image-index :image-index
                ext :ext
                dpi :dpi
                base-path :base-path})
source

image-to-imageclj

(image-to-image {image :image})
source

pdf-to-imagesclj

(pdf-to-images
  pdf-file
  image-handler
  &
  {:keys [start-page end-page dpi ext pathname]
   :or {start-page 0 end-page (Integer/MAX_VALUE) dpi 300 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 :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
  :ext        - The target file format, defaults to png
  :pathname   - Path to the PDF file, used if pdf-file is not specified (= nil)
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close