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, CCPdfContextDeleter > | context |
PDF rendering context managed by unique_ptr with custom deleter. | |
fz_document * | document { nullptr } |
Raw pointer to the PDF document; manual lifecycle management. | |
CCPdfDocumentPrivate holders.
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.