5#ifndef PDFTRON_H_CPPPDFAnnot
6#define PDFTRON_H_CPPPDFAnnot
16#include <C/PDF/TRN_Annot.h>
676 Annot(TRN_Annot annot);
725 BorderStyle(
Style s,
double b_width,
double b_hr,
double b_vr,
const std::vector<double>& b_dash);
757 void SetHR(
double horizontal_radius);
791 void SetDash(
const std::vector<double>& dash);
797 TRN_AnnotBorderStyle mp_bs;
802#include <Impl/Page.inl>
Rect GetVisibleContentBox() const
const char * GetActiveAppearanceState() const
Annot & operator=(const Annot &d)
void SetDate(const Date &date)
ColorPt GetColorAsCMYK() const
void SetActiveAppearanceState(const char *astate)
SDF::Obj GetTriggerAction(Annot::ActionTriggerEvent trigger)
void RefreshAppearance(const RefreshOptions &options)
@ e_Projection
Projection annotation, Adobe supplement to ISO 32000.
@ e_PrinterMark
Printer's mark annotation.
@ e_Movie
Movie annotation.
@ e_Watermark
Watermark annotation.
@ e_TrapNet
Trap network annotation.
@ e_Widget
Widget annotation.
@ e_Stamp
Rubber stamp annotation.
@ e_Square
Square annotation.
@ e_Sound
Sound annotation.
@ e_Circle
Circle annotation.
@ e_Polygon
Polygon annotation.
@ e_Highlight
Highlight annotation.
@ e_FreeText
Free text annotation.
@ e_StrikeOut
Strikeout annotation.
@ e_Redact
Redact annotation.
@ e_Polyline
Polyline annotation.
@ e_RichMedia
Rich Media annotation, Adobe supplement to ISO 32000.
@ e_Caret
Caret annotation.
@ e_FileAttachment
File attachment annotation.
@ e_Screen
Screen annotation.
@ e_Squiggly
Squiggly-underline annotation.
@ e_Popup
Pop-up annotation.
@ e_Unknown
Any other annotation type, not listed in PDF spec and unrecognized by PDFTron software.
@ e_Underline
Underline annotation.
void DeleteCustomData(const UString &key)
void SetStructParent(const int parkeyval)
void SetBorderStyle(const BorderStyle &bs, bool oldStyleOnly=false)
void SetRect(const Rect &pos)
BorderStyle GetBorderStyle() const
ColorPt GetColorAsRGB() const
bool operator==(const Annot &d)
void SetRotation(int angle)
ColorPt GetColorAsGray() const
int GetColorCompNum() const
void SetCustomData(const UString &key, const UString &value)
static Annot * CreateInternal(ptrdiff_t impl)
void SetFlag(Flag flag, bool value)
void SetContents(const UString &contents)
bool GetFlag(Flag flag) const
void Flatten(class Page page)
static Annot Create(SDF::SDFDoc &doc, Type type, const Rect &pos)
SDF::Obj GetSDFObj() const
UString GetCustomData(const UString &key) const
void SetUniqueID(const char *id, int id_buf_sz=0)
void RemoveAppearance(AnnotationState annot_state=e_normal, const char *app_state=0)
pdftron::PDF::BorderStyle BorderStyle
SDF::Obj GetUniqueID() const
UString GetContents() const
void SetColor(const ColorPt &col, int numcomp=3)
void SetAppearance(SDF::Obj app_stream, AnnotationState annot_state=e_normal, const char *app_state=0)
@ e_action_trigger_annot_up
@ e_action_trigger_annot_page_open
@ e_action_trigger_annot_page_close
@ e_action_trigger_annot_exit
@ e_action_trigger_annot_down
@ e_action_trigger_annot_page_invisible
@ e_action_trigger_annot_focus
@ e_action_trigger_annot_enter
@ e_action_trigger_annot_page_visible
@ e_action_trigger_activate
@ e_action_trigger_annot_blur
ptrdiff_t GetHandleInternal()
void SetPage(const Page &page)
SDF::Obj GetOptionalContent() const
int GetStructParent() const
void SetOptionalContent(SDF::Obj content)
void Resize(const Rect &newrect)
SDF::Obj GetAppearance(AnnotationState annot_state=e_normal, const char *app_state=0)
BorderStyle(Style s, double b_width, double b_hr, double b_vr, const std::vector< double > &b_dash)
BorderStyle(Style s, double b_width, double b_hr=0, double b_vr=0)
BorderStyle & operator=(const BorderStyle &)
std::vector< double > GetDash() const
BorderStyle(TRN_AnnotBorderStyle impl)
void SetVR(double vertical_radius)
void SetStyle(Style style)
friend bool operator!=(const BorderStyle &a, const BorderStyle &b)
friend bool operator==(const BorderStyle &a, const BorderStyle &b)
BorderStyle(const BorderStyle &)
void SetDash(const std::vector< double > &dash)
void SetHR(double horizontal_radius)
void SetWidth(double width)
@ e_dashed
A dashed rectangle surrounding the annotation.
@ e_inset
A simulated engraved rectangle that appears to be recessed below the surface of the page.
@ e_beveled
A simulated embossed rectangle that appears to be raised above the surface of the page.
@ e_solid
A solid rectangle surrounding the annotation.
@ e_underline
A single line along the bottom of the annotation rectangle.