PDF SDK Documentation

Comprehensive Guide for Developers: Features, Integration, and API Reference

Loading...
Searching...
No Matches
xobject.h
1// Copyright (c) 2009-2025 Avanquest Software. All rights reserved.
2
3#ifndef PDFSDK_CXX_PDF_XOBJECT_H_INCLUDED_
4#define PDFSDK_CXX_PDF_XOBJECT_H_INCLUDED_
5
6#include <optional>
7#include <string>
8
10#include <pdfsdk/cxx/math.h>
11
12#include "forward_declarations.h"
13#include "wrapper_base.h"
14
15namespace PDF {
16
22class XObject : public detail::RefCountedHandle<PDEXObject> {
23public:
29 static XObject CreateFromPdfObject(const Object& object);
30
36
41 PDEXObjectType GetXObjectType() const;
42
48
53 void SetOCMembership(const OCMembership& ocmd);
54
60
66
71 bool ImageIsMask() const;
72
78
83 bool GetImageInterpolate() const;
84
89 void SetImageInterpolate(bool interpolate);
90
95 std::optional<PDERenderingIntent> GetImageRenderingIntent() const;
96
101 void SetImageRenderingIntent(std::optional<PDERenderingIntent> intent);
102
108
113 void SetImageMask(const XObject& mask);
114
120
125 void SetImageSMask(const XObject& smask);
126
132
138
144
149 void SetFormBBox(const RectF& bbox);
150
156
161 void SetFormMatrix(const Matrix& matrix);
162
168
173 void SetFormContent(const Content& content);
174
180
185 void SetFormXGroup(const XGroup& xgroup);
186
191 void SetFormADBECompoundType(const char* compoundType) const;
192
197 void SetFormADBECompoundType(const std::string& compoundType) const;
198
199 PDF_CXX_CORE_WRAPPER_DEFINE_MEMBERS_(XObject, PDEXObject)
200};
201
202} // namespace PDF
203
204#include "xobject_impl.inl"
205
206#endif // PDFSDK_CXX_PDF_XOBJECT_H_INCLUDED_
Represents a color space in a PDF document.
Definition color_space.h:18
Represents the content of a PDF page.
Definition content.h:20
Optional content membership.
Definition optional_content.h:55
Represents a PDF object.
Definition object.h:20
Definition xgroup.h:15
Represents an XObject in a PDF document.
Definition xobject.h:22
XObject FormCopy() const
Matrix GetFormMatrix() const
XGroup GetFormXGroup() const
RectF GetFormBBox() const
static XObject CreateFromPdfObject(const Object &object)
void SetFormADBECompoundType(const char *compoundType) const
bool GetImageInterpolate() const
void SetFormADBECompoundType(const std::string &compoundType) const
Object GetPdfObject() const
void SetFormXGroup(const XGroup &xgroup)
OCMembership GetOCMembership() const
ColorSpace GetImageColorSpace() const
PDAtom GetImageCompressionFilter() const
bool ImageIsMask() const
XObject GetImageMask() const
void SetOCMembership(const OCMembership &ocmd)
void SetImageSMask(const XObject &smask)
XObject GetImageSMask() const
void SetImageInterpolate(bool interpolate)
SizeI GetImageSize() const
void SetFormContent(const Content &content)
void SetImageRenderingIntent(std::optional< PDERenderingIntent > intent)
Content GetFormContent() const
PDEXObjectType GetXObjectType() const
void SetFormBBox(const RectF &bbox)
int GetImageBitsPerComponent() const
void SetImageMask(const XObject &mask)
void SetFormMatrix(const Matrix &matrix)
std::optional< PDERenderingIntent > GetImageRenderingIntent() const
Content API.
Definition math.h:1053
Definition math.h:545
Definition math.h:279