A list of PdfObjects that constitutes the indirect object list of the document The PdfParser will read the PdfFile into memory and create a PdfIndirectObjectList of all dictionaries found in the PDF file.
More...
#include <PdfIndirectObjectList.h>
|
using | iterator = ObjectList::const_iterator |
|
using | reverse_iterator = ObjectList::const_reverse_iterator |
|
|
class | PdfDocument |
|
class | PdfObject |
|
class | PdfObjectOutputStream |
|
A list of PdfObjects that constitutes the indirect object list of the document The PdfParser will read the PdfFile into memory and create a PdfIndirectObjectList of all dictionaries found in the PDF file.
The PdfWriter class contrary creates a PdfIndirectObjectList internally and writes it to a PDF file later with an appropriate table of contents.
This class contains also advanced functions for searching of PdfObject's in a PdfIndirectObjectList.
◆ begin()
PdfIndirectObjectList::iterator PdfIndirectObjectList::begin |
( |
| ) |
const |
Iterator pointing at the beginning of the vector.
- Returns
- beginning iterator
◆ CreateDictionaryObject()
Creates a new object and inserts it into the vector.
This function assigns the next free object number to the PdfObject.
- Parameters
-
type | optional value of the /Type key of the object |
subtype | optional value of the /SubType key of the object |
- Returns
- PdfObject pointer to the new PdfObject
◆ CreateObject()
Creates a new object and inserts it into the vector.
This function assigns the next free object number to the PdfObject.
- Parameters
-
- Returns
- PdfObject pointer to the new PdfObject
◆ end()
PdfIndirectObjectList::iterator PdfIndirectObjectList::end |
( |
| ) |
const |
Iterator pointing at the end of the vector.
- Returns
- ending iterator
◆ GetDocument()
PdfDocument& PoDoFo::PdfIndirectObjectList::GetDocument |
( |
| ) |
const |
|
inline |
- Returns
- a reference to the owner document
◆ GetFreeObjects()
const PdfFreeObjectList& PoDoFo::PdfIndirectObjectList::GetFreeObjects |
( |
| ) |
const |
|
inline |
- Returns
- a list of free references in this vector
◆ GetObject()
Finds the object with the given reference and returns a pointer to it if it is found.
- Parameters
-
ref | the object to be found |
- Returns
- the found object or nullptr if no object was found.
◆ GetObjectCount()
unsigned PoDoFo::PdfIndirectObjectList::GetObjectCount |
( |
| ) |
const |
|
inline |
- Returns
- the logical object count in the document.
◆ GetSize()
unsigned PdfIndirectObjectList::GetSize |
( |
| ) |
const |
- Returns
- the size of the internal object list
◆ MustGetObject()
Finds the object with the given reference and returns a pointer to it if it is found.
Throws a PdfError exception with error code PdfErrorCode::NoObject if no object was found
- Parameters
-
ref | the object to be found |
- Returns
- the found object
- Exceptions
-
PdfError(PdfErrorCode::NoObject) | |
The documentation for this class was generated from the following files: