6 #ifndef PDF_DESTINATION_H
7 #define PDF_DESTINATION_H
11 #include <podofo/auxiliary/Rect.h>
12 #include "PdfElement.h"
18 enum class PdfDestinationFit
54 friend class PdfAnnotationLink;
56 friend class PdfNameTreeBase;
71 static bool TryCreateFromObject(
PdfObject& obj, std::unique_ptr<PdfDestination>& dest);
77 void SetDestination(
const PdfPage& page, PdfDestinationFit fit = PdfDestinationFit::Fit);
83 void SetDestination(
const PdfPage& page,
const Rect& rect);
92 void SetDestination(
const PdfPage& page,
double left,
double top,
double zoom);
100 void SetDestination(
const PdfPage& page, PdfDestinationFit fit,
double value);
122 double GetZoom()
const;
130 Rect GetRect()
const;
138 double GetTop()
const;
146 double GetLeft()
const;
154 double GetDValue()
const;
SPDX-FileCopyrightText: (C) 2005 Dominik Seichter domseichter@web.de SPDX-FileCopyrightText: (C) 2020...
A destination in a PDF file.
Definition: PdfDestination.h:52
The PDF dictionary data type of PoDoFo (inherits from PdfDataContainer, the base class for such repre...
Definition: PdfDictionary.h:82
PdfDocument is the core interface for working with PDF documents.
Definition: PdfDocument.h:108
This class represents a PDF indirect Object in memory.
Definition: PdfObject.h:35
A PDF outline item has an title and a destination.
Definition: PdfOutlines.h:39
PdfPage is one page in the pdf document.
Definition: PdfPage.h:127
A rectangle defined by position and size.
Definition: Rect.h:20
SPDX-FileCopyrightText: (C) 2022 Francesco Pretto ceztko@gmail.com SPDX-License-Identifier: LGPL-2....
Definition: basetypes.h:16
PdfDestinationType
Destination type, as per 12.3.2.2 of the Pdf spec.
Definition: PdfDestination.h:34