CCIMXDesktop
 
Loading...
Searching...
No Matches
CCPdfDocumentPrivate Struct Reference

CCPdfDocumentPrivate holders. More...

Public Member Functions

 CCPdfDocumentPrivate ()
 Default constructor, initializes the PDF context and registers handlers.
 
 ~CCPdfDocumentPrivate ()
 Destructor, releases the document if it exists.
 

Public Attributes

std::unique_ptr< fz_context, CCPdfContextDeletercontext
 PDF rendering context managed by unique_ptr with custom deleter.
 
fz_document * document { nullptr }
 Raw pointer to the PDF document; manual lifecycle management.
 

Detailed Description

Member Data Documentation

◆ document

fz_document* CCPdfDocumentPrivate::document { nullptr }

Raw pointer to the PDF document; manual lifecycle management.

Reason not using unique_ptr: The document destruction timing is critical due to front/back relationships, so manual control is required.


The documentation for this struct was generated from the following file: