PoDoFo 1.2.0
Loading...
Searching...
No Matches
Public Member Functions | Static Public Member Functions | Friends | List of all members
PoDoFo::PdfResources Class Referencefinal

A interface that provides a wrapper around /Resources. More...

#include <PdfResources.h>

Inheritance diagram for PoDoFo::PdfResources:
PoDoFo::PdfResourceOperations

Public Member Functions

const PdfFontGetFont (const std::string_view &name) const
 Get a font from the resources.
 
PdfObjectGetResource (PdfResourceType type, const std::string_view &key) override
 Get a resource from the resources.
 
const PdfObjectGetResource (PdfResourceType type, const std::string_view &key) const override
 Get a resource from the resources.
 
PdfDictionaryIndirectIterable GetResourceIterator (PdfResourceType type) override
 Get resource iterator by type.
 
PdfDictionaryConstIndirectIterable GetResourceIterator (PdfResourceType type) const override
 Get resource iterator by type.
 

Static Public Member Functions

static bool TryCreateFromObject (PdfObject &obj, std::unique_ptr< PdfResources > &resources)
 

Friends

class PdfPage
 
class PdfXObjectForm
 
class PdfTilingPattern
 
class PdfPainter
 
class PdfAcroForm
 

Additional Inherited Members

- Protected Member Functions inherited from PoDoFo::PdfResourceOperations
 PdfResourceOperations (const PdfResourceOperations &)=default
 
PdfResourceOperationsoperator= (const PdfResourceOperations &)=default
 

Detailed Description

A interface that provides a wrapper around /Resources.

Remarks
Prefer add resources to it through PdfPainter. You can cast the instance to PdfResourceOperations to access low level mutable operations

Member Function Documentation

◆ GetFont()

const PdfFont * PdfResources::GetFont ( const std::string_view &  name) const

Get a font from the resources.

Parameters
namethe resource name of the font
Returns
the font or nullptr if not found

◆ GetResource() [1/2]

const PdfObject * PdfResources::GetResource ( PdfResourceType  type,
const std::string_view &  key 
) const
overridevirtual

Get a resource from the resources.

Parameters
typethe type of the resource
keythe key of the resource
Returns
the resource or nullptr if not found

Implements PoDoFo::PdfResourceOperations.

◆ GetResource() [2/2]

PdfObject * PdfResources::GetResource ( PdfResourceType  type,
const std::string_view &  key 
)
overridevirtual

Get a resource from the resources.

Parameters
typethe type of the resource
keythe key of the resource
Returns
the resource or nullptr if not found

Implements PoDoFo::PdfResourceOperations.

◆ GetResourceIterator() [1/2]

PdfDictionaryConstIndirectIterable PdfResources::GetResourceIterator ( PdfResourceType  type) const
overridevirtual

Get resource iterator by type.

Implements PoDoFo::PdfResourceOperations.

◆ GetResourceIterator() [2/2]

PdfDictionaryIndirectIterable PdfResources::GetResourceIterator ( PdfResourceType  type)
overridevirtual

Get resource iterator by type.

Implements PoDoFo::PdfResourceOperations.


The documentation for this class was generated from the following files: