5 #ifndef PDFTRON_H_CPPPDFAnnot
6 #define PDFTRON_H_CPPPDFAnnot
16 #include <C/PDF/TRN_Annot.h>
210 void SetUniqueID(
const char*
id,
int id_buf_sz = 0);
356 BorderStyle(
Style s,
double b_width,
double b_hr,
double b_vr,
const std::vector<double>& b_dash);
382 double GetHR()
const;
388 void SetHR(
double horizontal_radius);
393 double GetVR()
const;
399 void SetVR(
double vertical_radius);
416 std::vector<double>
GetDash()
const;
422 void SetDash(
const std::vector<double>& dash);
428 TRN_AnnotBorderStyle mp_bs;
757 Annot(TRN_Annot annot);
768 #include <Impl/Page.inl>
770 #endif // PDFTRON_H_CPPPDFAnnot
SDF::Obj GetSDFObj() const
std::vector< double > GetDash() const
ColorPt GetColorAsGray() const
void SetUniqueID(const char *id, int id_buf_sz=0)
Any other annotation type, not listed in PDF spec and unrecognized by PDFTron software.
void RemoveAppearance(AnnotationState annot_state=e_normal, const char *app_state=0)
void SetVR(double vertical_radius)
void SetPage(const Page &page)
void SetDate(const Date &date)
friend bool operator==(const BorderStyle &a, const BorderStyle &b)
void SetHR(double horizontal_radius)
SDF::Obj GetAppearance(AnnotationState annot_state=e_normal, const char *app_state=0)
ptrdiff_t GetHandleInternal()
A dashed rectangle surrounding the annotation.
const char * GetActiveAppearanceState() const
void Resize(const Rect &newrect)
Squiggly-underline annotation.
void SetDash(const std::vector< double > &dash)
File attachment annotation.
A simulated embossed rectangle that appears to be raised above the surface of the page...
void SetOptionalContent(SDF::Obj content)
Rect GetVisibleContentBox() const
void SetFlag(Flag flag, bool value)
void SetWidth(double width)
Annot & operator=(const Annot &d)
void Flatten(class Page page)
BorderStyle GetBorderStyle() const
int GetColorCompNum() const
void SetBorderStyle(const BorderStyle &bs, bool oldStyleOnly=false)
ColorPt GetColorAsCMYK() const
static Annot * CreateInternal(ptrdiff_t impl)
void SetRect(const Rect &pos)
BorderStyle & operator=(const BorderStyle &)
void SetContents(const UString &contents)
void SetAppearance(SDF::Obj app_stream, AnnotationState annot_state=e_normal, const char *app_state=0)
Printer's mark annotation.
void SetStructParent(const int parkeyval)
void SetRotation(int angle)
A single line along the bottom of the annotation rectangle.
bool operator==(const Annot &d)
void SetStyle(Style style)
ColorPt GetColorAsRGB() const
void SetActiveAppearanceState(const char *astate)
void SetColor(const ColorPt &col, int numcomp=3)
UString GetContents() const
static Annot Create(SDF::SDFDoc &doc, Type type, const Rect &pos)
SDF::Obj GetOptionalContent() const
int GetStructParent() const
Rich Media annotation, Adobe supplement to ISO 32000.
A simulated engraved rectangle that appears to be recessed below the surface of the page...
Projection annotation, Adobe supplement to ISO 32000.
A solid rectangle surrounding the annotation.
bool GetFlag(Flag flag) const
friend bool operator!=(const BorderStyle &a, const BorderStyle &b)
SDF::Obj GetTriggerAction(Annot::ActionTriggerEvent trigger)
SDF::Obj GetUniqueID() const