Loading...
Searching...
No Matches
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
11namespace pdftron {
12 namespace PDF {
13
14class Page; // Forward declaration
15
16
31{
32public:
33
57
73 static Destination CreateXYZ(Page page, double left, double top, double zoom);
74
86
97 static Destination CreateFitH(Page page, double top);
98
109 static Destination CreateFitV(Page page, double left);
110
128 double left, double bottom, double right, double top);
129
142
153 static Destination CreateFitBH(Page page, double top);
154
165 static Destination CreateFitBV(Page page, double left);
166
183
188
193
200 bool IsValid() const;
201
207
213
220 void SetPage(Page page);
221
231
239
240 Destination(TRN_Destination impl);
241
242 // added default constructor for swig;
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
void SetPage(Page page)
static Destination CreateFitB(Page page)
static Destination CreateXYZ(Page page, double left, double top, double zoom)
static Destination CreateFitH(Page page, double top)
SDF::Obj GetSDFObj() const
Destination & operator=(const Destination &d)
static Destination CreateFit(Page page)
static Destination CreateFitBH(Page page, double top)
Destination(const Destination &d)
static Destination CreateFitV(Page page, double left)
Destination(SDF::Obj dest)
static Destination CreateFitBV(Page page, double left)
Destination(TRN_Destination impl)
static Destination CreateFitR(Page page, double left, double bottom, double right, double top)