camlpdf

Read, write and modify PDF files
Library camlpdf
Module Pdfannot
type style =
| NoStyle
| Solid
| Dashed
| Beveled
| Inset
| UnderlineStyle
type border = {
width : float;
vradius : float;
hradius : float;
style : style;
dasharray : int array;
}
type subtype =
| Text
| FreeText
| Line
| Square
| Circle
| Polygon
| PolyLine
| Highlight
| Underline
| Squiggly
| StrikeOut
| Stamp
| Caret
| Ink
| Popup of t
| FileAttachment
| Sound
| Movie
| Widget
| Screen
| PrinterMark
| TrapNet
| Watermark
| ThreeDee
| Unknown
and t = {
subtype : subtype;
annot_contents : string option;
subject : string option;
rectangle : float * float * float * float;
border : border;
colour : (int * int * int) option;
annotrest : Pdf.pdfobject;
}
val read_annotation : Pdf.t -> Pdf.pdfobject -> t
val get_popup_parent : Pdf.t -> Pdf.pdfobject -> int option
val annotations_of_page : Pdf.t -> Pdfpage.t -> t list
val string_of_subtype : subtype -> string
val obj_of_annot : t -> Pdf.pdfobject
val make_border : ?vradius:float -> ?hradius:float -> ?style:style -> ?dasharray:int array -> float -> border
val make : ?content:string -> ?border:border -> ?rectangle:(float * float * float * float) -> ?colour:(int * int * int) -> ?subject:string -> subtype -> t
val add_annotation : Pdf.t -> Pdfpage.t -> t -> Pdfpage.t