5 #ifndef PDFTRON_H_CPPPDFAnnot
6 #define PDFTRON_H_CPPPDFAnnot
16 #include <C/PDF/TRN_Annot.h>
211 void SetUniqueID(
const char*
id,
int id_buf_sz = 0);
676 Annot(TRN_Annot annot);
725 BorderStyle(
Style s,
double b_width,
double b_hr,
double b_vr,
const std::vector<double>& b_dash);
751 double GetHR()
const;
757 void SetHR(
double horizontal_radius);
762 double GetVR()
const;
768 void SetVR(
double vertical_radius);
785 std::vector<double>
GetDash()
const;
791 void SetDash(
const std::vector<double>& dash);
797 TRN_AnnotBorderStyle mp_bs;
802 #include <Impl/Page.inl>
804 #endif // PDFTRON_H_CPPPDFAnnot
SDF::Obj GetSDFObj() const
ColorPt GetColorAsGray() const
void SetUniqueID(const char *id, int id_buf_sz=0)
void SetWidth(double width)
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)
A dashed rectangle surrounding the annotation.
void SetPage(const Page &page)
friend bool operator==(const BorderStyle &a, const BorderStyle &b)
void SetDate(const Date &date)
SDF::Obj GetAppearance(AnnotationState annot_state=e_normal, const char *app_state=0)
ptrdiff_t GetHandleInternal()
void DeleteCustomData(const UString &key)
const char * GetActiveAppearanceState() const
void Resize(const Rect &newrect)
Squiggly-underline annotation.
friend bool operator!=(const BorderStyle &a, const BorderStyle &b)
File attachment annotation.
void SetStyle(Style style)
void SetOptionalContent(SDF::Obj content)
Rect GetVisibleContentBox() const
void SetFlag(Flag flag, bool value)
Annot & operator=(const Annot &d)
std::vector< double > GetDash() const
void Flatten(class Page page)
void SetHR(double horizontal_radius)
BorderStyle GetBorderStyle() const
int GetColorCompNum() const
void SetBorderStyle(const BorderStyle &bs, bool oldStyleOnly=false)
ColorPt GetColorAsCMYK() const
A simulated embossed rectangle that appears to be raised above the surface of the page...
static Annot * CreateInternal(ptrdiff_t impl)
void SetVR(double vertical_radius)
void SetRect(const Rect &pos)
void SetContents(const UString &contents)
void SetAppearance(SDF::Obj app_stream, AnnotationState annot_state=e_normal, const char *app_state=0)
A simulated engraved rectangle that appears to be recessed below the surface of the page...
pdftron::PDF::BorderStyle BorderStyle
Printer's mark annotation.
UString GetCustomData(const UString &key) const
A single line along the bottom of the annotation rectangle.
void SetCustomData(const UString &key, const UString &value)
void SetStructParent(const int parkeyval)
void SetRotation(int angle)
bool operator==(const Annot &d)
ColorPt GetColorAsRGB() const
void SetActiveAppearanceState(const char *astate)
A solid rectangle surrounding the annotation.
void SetDash(const std::vector< double > &dash)
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.
BorderStyle & operator=(const BorderStyle &)
Projection annotation, Adobe supplement to ISO 32000.
bool GetFlag(Flag flag) const
SDF::Obj GetTriggerAction(Annot::ActionTriggerEvent trigger)
SDF::Obj GetUniqueID() const