Loading...
Searching...
No Matches
Link.h
Go to the documentation of this file.
1//---------------------------------------------------------------------------------------
2// Copyright (c) 2001-2025 by Apryse Software Inc. All Rights Reserved.
3// Consult legal.txt regarding legal and license information.
4//---------------------------------------------------------------------------------------
5#ifndef PDFTRON_H_CPPPDFAnnotsLink
6#define PDFTRON_H_CPPPDFAnnotsLink
7
8#include <PDF/Annot.h>
9#include <PDF/QuadPoint.h>
10
11namespace pdftron {
12 namespace PDF {
13 namespace Annots {
14
19class Link : public Annot
20{
21 public:
28 Link(SDF::Obj d = 0);
29
36 Link(const Annot& ann) : Annot(ann.GetSDFObj()) {}
37
46 static Link Create(SDF::SDFDoc& doc, const Rect& pos);
47 static Link CreateAnnot(SDF::SDFDoc& doc, const Rect& pos);
48
58 static Link Create(SDF::SDFDoc& doc, const Rect& pos, const Action& action);
59 static Link CreateAnnot(SDF::SDFDoc& doc, const Rect& pos, const Action& action);
60
65
74
83 void SetAction(const Action& action);
84
103
112
122
133 int GetQuadPointCount() const;
134
147 QuadPoint GetQuadPoint(int idx) const;
148
161 void SetQuadPoint(int idx, const QuadPoint& qp);
162
170 static UString GetNormalizedUrl(const UString& url);
171
172 // @cond PRIVATE_DOC
173 #ifndef SWIGHIDDEN
174 Link(TRN_Annot link);
175 #endif
176 // @endcond
177
178};//class Link
179 };//namespace Annot
180 };//namespace PDF
181};//namespace pdftron
182
183#include <Impl/Page.inl>
184
185#endif // PDFTRON_H_CPPPDFAnnotsLink
Annot(SDF::Obj d=0)
SDF::Obj GetSDFObj() const