#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, 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_uint32 o) |
PODOFO_NOTHROW pdf_objnum | ObjectNumber () const |
PODOFO_NOTHROW void | SetGenerationNumber (const pdf_uint16 g) |
PODOFO_NOTHROW pdf_gennum | GenerationNumber () const |
PODOFO_NOTHROW bool | IsIndirect () const |
This class is a indirect reference in a PDF file.
PoDoFo::PdfReference::PdfReference | ( | ) | [inline] |
Create a PdfReference with object number and generation number initialized to 0.
PoDoFo::PdfReference::PdfReference | ( | const pdf_objnum | nObjectNo, | |
const pdf_gennum | nGenerationNo | |||
) | [inline] |
Create a PdfReference to an object with a given object and generation number.
nObjectNo | the object number | |
nGenerationNo | the generation number |
PoDoFo::PdfReference::PdfReference | ( | const PdfReference & | rhs | ) | [inline] |
pdf_uint16 PoDoFo::PdfReference::GenerationNumber | ( | ) | const [inline] |
Get the generation number.
bool PoDoFo::PdfReference::IsIndirect | ( | ) | const [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.
pdf_uint32 PoDoFo::PdfReference::ObjectNumber | ( | ) | const [inline] |
Get the object number.
bool PoDoFo::PdfReference::operator!= | ( | const PdfReference & | rhs | ) | const [inline] |
Compare to PdfReference objects.
bool PoDoFo::PdfReference::operator< | ( | const PdfReference & | rhs | ) | const [inline] |
Compare to PdfReference objects.
const PdfReference & PoDoFo::PdfReference::operator= | ( | const PdfReference & | rhs | ) | [inline] |
bool PoDoFo::PdfReference::operator== | ( | const PdfReference & | rhs | ) | const [inline] |
Compare to PdfReference objects.
PODOFO_NOTHROW void PoDoFo::PdfReference::SetGenerationNumber | ( | const pdf_uint16 | g | ) | [inline] |
Set the generation number of this object
g | the new generation number |
PODOFO_NOTHROW void PoDoFo::PdfReference::SetObjectNumber | ( | pdf_uint32 | o | ) | [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.
void PoDoFo::PdfReference::Write | ( | PdfOutputDevice * | pDevice, | |
const PdfEncrypt * | pEncrypt = NULL | |||
) | const [virtual] |
Write the complete variant to an output device. This is an overloaded member function.
pDevice | write the object to this device |
Implements PoDoFo::PdfDataType.