9#include "kitinerary_export.h"
11#include <QExplicitlySharedDataPointer>
52 [[nodiscard]]
constexpr inline bool isNull()
const
57 [[nodiscard]]
constexpr inline bool operator==(
const PdfImageRef &other)
const
59 return m_refNum == other.m_refNum && m_refGen == other.m_refGen && m_type == other.m_type;
67 friend class PdfImagePrivate;
68 friend std::size_t std::hash<PdfImageRef>::operator ()(
const PdfImageRef&)
const noexcept;
76 Q_PROPERTY(
int width READ width)
77 Q_PROPERTY(
int height READ height)
85 [[nodiscard]]
int width()
const;
87 [[nodiscard]]
int height()
const;
90 [[nodiscard]]
int sourceHeight()
const;
92 [[nodiscard]]
int sourceWidth()
const;
102 AbortOnColorHint = 1,
103 ConvertToGrayscaleHint = 2,
105 Q_DECLARE_FLAGS(LoadingHints, LoadingHint)
108 void setLoadingHints(LoadingHints hints);
111 [[nodiscard]]
QImage image()
const;
116 [[nodiscard]]
bool hasObjectId()
const;
125 [[nodiscard]]
bool isVectorImage()
const;
130 [[nodiscard]]
int pathElementsCount()
const;
135 [[nodiscard]]
bool hasAspectRatioTransform()
const;
141 [[nodiscard]]
QImage applyAspectRatioTransform(
const QImage &image)
const;
147 friend class PdfExtractorOutputDevice;
148 friend class PdfPagePrivate;
153Q_DECLARE_OPERATORS_FOR_FLAGS(PdfImage::LoadingHints)
160 return std::hash<int>{}(ref.m_refNum) ^ (std::hash<int>{}(ref.m_refGen) << 1) ^ std::hash<int>{}((int)ref.m_type);
PDF object reference for an image, with the ability to address attached masks as well.
An image in a PDF document.
LoadingHint
Hints for loading image data.
A page in a PDF document.
Classes for reservation/travel data models, data extraction and data augmentation.
PdfImageType
PDF image element type.
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:09:59 by
doxygen 1.12.0 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.