PDF SDK Documentation

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

Loading...
Searching...
No Matches
view.h
1// Copyright (c) 2009-2025 Avanquest Software. All rights reserved.
2
3#ifndef PDFSDK_CXX_VIEW_H_INCLUDED_
4#define PDFSDK_CXX_VIEW_H_INCLUDED_
5
6#include <pdfsdk/view.h>
7
8#include "wrapper_base.h"
9
10namespace PDF {
11
17class RenderContext : public detail::RefCountedHandle<PDFRenderContext> {
18public:
19 static RenderContext Create();
20
21 PDF_CXX_CORE_WRAPPER_DEFINE_MEMBERS_(RenderContext, PDFRenderContext)
22};
23
24inline RenderContext RenderContext::Create() {
25 RenderContext ctx;
26 PDF_CHECK_SUCCESS_X(PDFCreateRenderContext(&ctx));
27 return ctx;
28}
29
30} // namespace PDF
31
32#endif // PDFSDK_CXX_VIEW_H_INCLUDED_
Stores cached rendering data.
Definition view.h:17
Rendering API.
PDF_CORE_API PDErrCode PDFSDK_CALLCONV PDFCreateRenderContext(PDFRenderContext *pcontext)
Initializes a new render context for rendering PDF content.