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

type rotation = 
| Rot0
| Rot90
| Rot180
| Rot270

Rotation

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

Call add_texts linewidth outline fast fontname font bates batespad colour position linespacing fontsize underneath text range box opacity justification midline topline rotation filename shift raw url_border pdf. For details see cpdfmanual.pdf

val addrectangle : bool ->
string ->
colour ->
bool ->
float ->
float ->
Cpdfposition.position -> string -> 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.