(draw-line & {:keys [input-pdf output-pdf coordinates]})
Draw a line on input-pdf's page, producing a output-pdf document. It takes three arguments input-pdf, output-pdf and coordinates. Where coordinates have: page-number, x, y, x1, y1 points where the line should be drawn.
Draw a line on input-pdf's page, producing a output-pdf document. It takes three arguments input-pdf, output-pdf and coordinates. Where coordinates have: page-number, x, y, x1, y1 points where the line should be drawn.
(draw-line-at-coordinates content-stream coordinates)
Take content-stream and coordinates for line to be drawn. Coordinates are a hash map in the format of: x, y, x1, y1.
Take content-stream and coordinates for line to be drawn. Coordinates are a hash map in the format of: x, y, x1, y1.
(get-catalog document)
Get a catalog from a PDF document
Get a catalog from a PDF document
(get-content-stream document page-number)
Take the read in PDF document and a page number and return content stream which will be manipulated
Take the read in PDF document and a page number and return content stream which will be manipulated
(get-page catalog page-number)
Get a particular page from a catalog
Get a particular page from a catalog
(set-line-width content-stream & {:keys [line-width] :or {line-width 3}})
The width of the line to be drawn. By default it's 3.
The width of the line to be drawn. By default it's 3.
(use-rgb-colour content-stream & {:keys [r g b] :or {r 0 g 0 b 0}})
Take content-stream and use RGB colour to draw on it. By default black colour will be used.
Take content-stream and use RGB colour to draw on it. By default black colour will be used.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close