- Main Page
- Namespaces
- Classes
- Files

- File List
- File Members

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Destination.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_CPPPDFDestination
6 #define PDFTRON_H_CPPPDFDestination
7
8 #include <C/PDF/TRN_Destination.h>
9 #include <SDF/Obj.h>
10
11 namespace pdftron {
12 namespace PDF {
13
14 class Page; // Forward declaration
15
16
30 class Destination
31 {
32 public:
33
46 enum FitType
47 {
48 e_XYZ,
49 e_Fit,
50 e_FitH,
51 e_FitV,
52 e_FitR,
53 e_FitB,
54 e_FitBH,
55 e_FitBV
56 };
57
73 static Destination CreateXYZ(Page page, double left, double top, double zoom);
74
85 static Destination CreateFit(Page page);
86
97 static Destination CreateFitH(Page page, double top);
98
109 static Destination CreateFitV(Page page, double left);
110
127 static Destination CreateFitR(Page page,
128 double left, double bottom, double right, double top);
129
141 static Destination CreateFitB(Page page);
142
153 static Destination CreateFitBH(Page page, double top);
154
165 static Destination CreateFitBV(Page page, double left);
166
182 Destination (SDF::Obj dest);
183
187 Destination (const Destination& d);
188
192 Destination& operator=(const Destination& d);
193
200 bool IsValid() const;
201
206 FitType GetFitType();
207
212 Page GetPage();
213
220 void SetPage(Page page);
221
230 SDF::Obj GetSDFObj () const;
231
238 SDF::Obj GetExplicitDestObj ();
239
240 Destination(TRN_Destination impl);
241
242 // added default constructor for swig;
243 Destination();
244
245 // @cond PRIVATE_DOC
246 #ifndef SWIGHIDDEN
247 TRN_Destination mp_dest;
248 #endif
249 // @endcond
250 };
251
252
253 }; // namespace PDF
254 }; // namespace pdftron
255
256 #include <Impl/Page.inl>
257
258 #endif // PDFTRON_H_CPPPDFDestination
pdftron::PDF::Destination::CreateFitBH
static Destination CreateFitBH(Page page, double top)
pdftron::PDF::Destination::Destination
Destination()
pdftron::PDF::Destination::FitType
FitType
Definition: Destination.h:46
pdftron::PDF::Destination::CreateXYZ
static Destination CreateXYZ(Page page, double left, double top, double zoom)
pdftron::PDF::Destination::e_FitBH
Definition: Destination.h:54
pdftron::PDF::Destination::GetSDFObj
SDF::Obj GetSDFObj() const
pdftron::PDF::Destination::e_FitB
Definition: Destination.h:53
pdftron::PDF::Destination::SetPage
void SetPage(Page page)
pdftron::PDF::Destination::CreateFitH
static Destination CreateFitH(Page page, double top)
pdftron::PDF::Destination::GetPage
Page GetPage()
pdftron::PDF::Destination::CreateFitV
static Destination CreateFitV(Page page, double left)
pdftron::PDF::Destination::e_FitH
Definition: Destination.h:50
pdftron::PDF::Destination::e_XYZ
Definition: Destination.h:48
pdftron::PDF::Destination::e_FitR
Definition: Destination.h:52
Obj.h
pdftron::PDF::Destination::CreateFitBV
static Destination CreateFitBV(Page page, double left)
pdftron::PDF::Destination::CreateFit
static Destination CreateFit(Page page)
pdftron::PDF::Destination
Definition: Destination.h:30
pdftron::PDF::Destination::e_FitBV
Definition: Destination.h:55
pdftron::PDF::Page
Definition: Page.h:31
pdftron::PDF::Destination::operator=
Destination & operator=(const Destination &d)
pdftron::PDF::Destination::CreateFitB
static Destination CreateFitB(Page page)
pdftron::PDF::Destination::GetFitType
FitType GetFitType()
pdftron::PDF::Destination::IsValid
bool IsValid() const
pdftron::SDF::Obj
Definition: Obj.h:40
pdftron::PDF::Destination::GetExplicitDestObj
SDF::Obj GetExplicitDestObj()
pdftron::PDF::Destination::e_FitV
Definition: Destination.h:51
pdftron::PDF::Destination::CreateFitR
static Destination CreateFitR(Page page, double left, double bottom, double right, double top)
pdftron::PDF::Destination::e_Fit
Definition: Destination.h:49