Liking cljdoc? Tell your friends :D

clj-paper-print.media-size


media-sizecljmultimethod

The multi media-size return a vector with the dimesions of the requested ISO paper. It consists in 2 variations, each one accepts a vector with the variation keyword and a MediaSizeName object The input of each one (media-size [:inch/:mm mediaSizeName]) 1: :inch accepts: (^MediaSizeName) MediaSizeName (e.g A4). returns: vector of [x y] dimensions of the requested paper in inches. 2; :mm accepts: (^MediaSizeName) MediaSizeName (e.g A4). returns: vector of [x y] dimensions of the requested paper in milimeters.

The multi `media-size` return a vector with the dimesions of the requested ISO paper.
It consists in 2 variations, each one accepts a vector with the variation keyword and a MediaSizeName object
The input of each one (media-size [:inch/:mm mediaSizeName])
1: `:inch`
 accepts: (^MediaSizeName) MediaSizeName (e.g A4).
 returns: vector of [x y] dimensions of the requested paper in inches.
2; `:mm`
 accepts: (^MediaSizeName) MediaSizeName (e.g A4).
 returns: vector of [x y] dimensions of the requested paper in milimeters.
sourceraw docstring

ms-lookup-sizecljmultimethod

A multi-method that will perform a lookup with the given dimensions to return the equivalent MediaSizeName object. The dispatch values are :inch :mm. If there isn't an exact match, it will return the closest match. It might return nil if the closest match has no Media instance.

A multi-method that will perform a lookup with the given dimensions to return the equivalent `MediaSizeName` object.
The dispatch values are :inch :mm.
If there isn't an exact match, it will return the closest match.
It might return nil if the closest match has no `Media` instance.
sourceraw docstring

ms-predefined-sizesclj

(ms-predefined-sizes)

A function that will return a map with all the predefined MediaSizeName objects of the supported variants.

A function that will return a map with all the predefined `MediaSizeName` objects of the supported variants.
sourceraw docstring

ms-supported-sizesclj

(ms-supported-sizes prs)

A function that will accept the supproted Media dimensions of a PrintService(printer) and will search for the equivelant ISO vaulues that are supported. The function will return a map with keys the name of each MediaSizeName object and value the actual MediaSizeName.

A function that will accept the supproted Media dimensions of a PrintService(printer)
and will search for the equivelant ISO vaulues that are supported.
The function will return a map with keys the name of each `MediaSizeName` object and value
the actual `MediaSizeName`.
sourceraw docstring

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

× close