# Module Cpdfaddtext

    module Cpdfaddtext: sig .. end

Adding text

    type colour =

`|` | `Grey of `float``
`|` | `RGB of `float * float * float``
`|` | `CYMK of `float * float * float * float``

Colours

    val colour_op : colour -> Pdfops.t

Build a colour operation for filling with the given colour.

    val colour_op_stroke : colour -> Pdfops.t

Build a colour operation for filing with the given colour

    type justification =

`|` | `LeftJustify`
`|` | `CentreJustify`
`|` | `RightJustify`

Justification of multiline text

    val addtexts : float ->
           bool ->
           bool ->
           string ->
           Cpdfembed.cpdffont ->
           int ->
           int option ->
           colour ->
           Cpdfposition.position ->
           float ->
           float ->
           bool ->
           string ->
           int list ->
           bool ->
           float ->
           justification ->
           bool ->
           bool -> string -> float option -> string -> ?raw:bool -> Pdf.t -> Pdf.t

Call `add_texts linewidth outline fast fontname font bates batespad colour position linespacing fontsize underneath text pages orientation relative_to_cropbox midline_adjust topline filename pdf`. For details see cpdfmanual.pdf

    val addrectangle : bool ->
           string ->
           colour ->
           bool ->
           float ->
           float -> Cpdfposition.position -> bool -> bool -> int list -> Pdf.t -> Pdf.t

Add a rectangle to the given pages. `addrectangle fast coordinate colour outline linewidth opacity position relative_to_cropbox underneath range pdf`.