module Pdfannot: sig
.. end
Annotations
type
style =
| |
NoStyle |
| |
Solid |
| |
Dashed |
| |
Beveled |
| |
Inset |
| |
UnderlineStyle |
Border styles
type
border = {
|
width : float ; |
|
vradius : float ; |
|
hradius : float ; |
|
style : style ; |
|
dasharray : int array ; |
}
Annotation borders.
type
subtype =
| |
Text |
| |
Link |
| |
FreeText |
| |
Line |
| |
Square |
| |
Circle |
| |
Polygon |
| |
PolyLine |
| |
Highlight |
| |
Underline |
| |
Squiggly |
| |
StrikeOut |
| |
Stamp |
| |
Caret |
| |
Ink |
| |
Popup of annotation |
| |
FileAttachment |
| |
Sound |
| |
Movie |
| |
Widget |
| |
Screen |
| |
PrinterMark |
| |
TrapNet |
| |
Watermark |
| |
ThreeDee |
| |
Unknown |
Annotation types
type
annotation = {
|
subtype : subtype ; |
|
contents : string option ; |
|
subject : string option ; |
|
rectangle : float * float * float * float ; |
|
border : border ; |
|
colour : (int * int * int) option ; |
|
rest : Pdf.pdfobject ; |
}
Annotations.
val annotations_of_page : Pdf.pdfdoc -> Pdfdoc.page -> annotation list
Return the annotations on a page in a document.