Liking cljdoc? Tell your friends :D

pdfboxing.draw


draw-lineclj

(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.
sourceraw docstring

draw-line-at-coordinatesclj

(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.
sourceraw docstring

get-catalogclj

(get-catalog document)

Get a catalog from a PDF document

Get a catalog from a PDF document
sourceraw docstring

get-content-streamclj

(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
sourceraw docstring

get-pageclj

(get-page catalog page-number)

Get a particular page from a catalog

Get a particular page from a catalog
sourceraw docstring

set-line-widthclj

(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.
sourceraw docstring

use-rgb-colourclj

(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.
sourceraw docstring

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

× close