Poppler CPP 24.11.0
poppler-destination.h
Go to the documentation of this file.
1/*
2 * Copyright (C) 2019, Masamichi Hosoda <trueroad@trueroad.jp>
3 * Copyright (C) 2019, 2021, Albert Astals Cid <aacid@kde.org>
4 * Copyright (C) 2022, Oliver Sander <oliver.sander@tu-dresden.de>
5 *
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 2, or (at your option)
9 * any later version.
10 *
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
15 *
16 * You should have received a copy of the GNU General Public License
17 * along with this program; if not, write to the Free Software
18 * Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA.
19 */
20
21#ifndef POPPLER_DESTINATION_H
22#define POPPLER_DESTINATION_H
23
24#include <memory>
25#include "poppler-global.h"
26
27namespace poppler {
28class destination_private;
29
30class POPPLER_CPP_EXPORT destination : public poppler::noncopyable
31{
32public:
45
47 destination(destination &&other) noexcept;
48
49 type_enum type() const;
50 int page_number() const;
51 double left() const;
52 double bottom() const;
53 double right() const;
54 double top() const;
55 double zoom() const;
56 bool is_change_left() const;
57 bool is_change_top() const;
58 bool is_change_zoom() const;
59
60 destination &operator=(destination &&other) noexcept;
61
62private:
63 explicit destination(destination_private *dd);
64
65 std::unique_ptr<destination_private> d;
66 friend class document;
67};
68
69}
70
71#endif
The information about a destination used in a PDF document.
Definition poppler-destination.h:31
destination & operator=(destination &&other) noexcept
Move assignment operator.
type_enum
The various types of destinations available in a PDF document.
Definition poppler-destination.h:34
@ fit_b
go to page with its contents magnified just enough to fit its bounding box entirely within the window...
Definition poppler-destination.h:41
@ fit_b_h
go to page with the vertical coordinate top positioned at the top edge of the window and the contents...
Definition poppler-destination.h:42
@ unknown
unknown destination
Definition poppler-destination.h:35
@ fit_v
go to page with the horizontal coordinate left positioned at the left edge of the window and the cont...
Definition poppler-destination.h:39
@ fit_h
go to page with the vertical coordinate top positioned at the top edge of the window and the contents...
Definition poppler-destination.h:38
@ fit
go to page with its contents magnified just enough to fit the entire page within the window both hori...
Definition poppler-destination.h:37
@ xyz
go to page with coordinates (left, top) positioned at the upper-left corner of the window and the con...
Definition poppler-destination.h:36
@ fit_r
go to page with its contents magnified just enough to fit the rectangle specified by the coordinates ...
Definition poppler-destination.h:40
~destination()
Destructor.
Represents a PDF document.
Definition poppler-document.h:39
Single namespace containing all the classes and functions of poppler-cpp.
Definition poppler-destination.h:27