PoDoFo
0.9.6
|
#include <PdfReference.h>
Public Member Functions | |
PdfReference () | |
PdfReference (const pdf_objnum nObjectNo, const pdf_gennum nGenerationNo) | |
PdfReference (const PdfReference &rhs) | |
const std::string | ToString () const |
PODOFO_NOTHROW const PdfReference & | operator= (const PdfReference &rhs) |
void | Write (PdfOutputDevice *pDevice, EPdfWriteMode eWriteMode, const PdfEncrypt *pEncrypt=NULL) const |
PODOFO_NOTHROW bool | operator== (const PdfReference &rhs) const |
PODOFO_NOTHROW bool | operator!= (const PdfReference &rhs) const |
PODOFO_NOTHROW bool | operator< (const PdfReference &rhs) const |
PODOFO_NOTHROW void | SetObjectNumber (pdf_objnum o) |
PODOFO_NOTHROW pdf_objnum | ObjectNumber () const |
PODOFO_NOTHROW void | SetGenerationNumber (const pdf_gennum g) |
PODOFO_NOTHROW pdf_gennum | GenerationNumber () const |
PODOFO_NOTHROW bool | IsIndirect () const |
![]() | |
virtual bool | IsDirty () const |
virtual void | SetDirty (bool bDirty) |
void | SetImmutable (bool bImmutable) |
bool | GetImmutable () const |
Additional Inherited Members | |
![]() | |
PdfDataType () | |
void | AssertMutable () const |
A reference is a pointer to a object in the PDF file of the form "4 0 R", where 4 is the object number and 0 is the generation number. Every object in the PDF file can be identified this way.
This class is a indirect reference in a PDF file.
|
inline |
Create a PdfReference with object number and generation number initialized to 0.
|
inline |
Create a PdfReference to an object with a given object and generation number.
nObjectNo | the object number |
nGenerationNo | the generation number |
|
inline |
Create a copy of an existing PdfReference.
rhs | the object to copy |
|
inline |
Get the generation number.
|
inline |
Allows to check if a reference points to an indirect object.
A reference is indirect if object number and generation number are both not equal 0.
|
inline |
Get the object number.
|
inline |
Compare to PdfReference objects.
|
inline |
Compare to PdfReference objects.
|
inline |
Assign the value of another object to this PdfReference.
rhs | the object to copy |
|
inline |
Compare to PdfReference objects.
|
inline |
Set the generation number of this object
g | the new generation number |
|
inline |
Set the object number of this object
o | the new object number |
const std::string PoDoFo::PdfReference::ToString | ( | ) | const |
Convert the reference to a string.
|
virtual |
Write the complete variant to an output device. This is an overloaded member function.
pDevice | write the object to this device |
eWriteMode | additional options for writing this object |
pEncrypt | an encryption object which is used to encrypt this object or NULL to not encrypt this object |
Implements PoDoFo::PdfDataType.