Logo Search packages:      
Sourcecode: libpodofo version File versions  Download package

bool PoDoFo::PdfDictionary::RemoveKey ( const PdfName identifier )

Remove a key from this dictionary. If the key does not exists, this function does nothing.

identifierthe name of the key to delete
true if the key was found in the object and was removed if there was is no key with this name, false is returned.

This will set the dirty flag of this object.

See also:

Definition at line 227 of file PdfDictionary.cpp.

References PoDoFo::PdfDataType::AssertMutable(), HasKey(), and m_bDirty.

Referenced by PoDoFo::PdfDestination::AddToDictionary(), PoDoFo::PdfAction::AddToDictionary(), PoDoFo::PdfDocument::Append(), PoDoFo::PdfStream::BeginAppend(), PoDoFo::PdfDocument::SetPageLayout(), PoDoFo::PdfSignatureField::SetSignature(), PoDoFo::PdfSignatureField::SetSignatureDate(), PoDoFo::PdfSignatureField::SetSignatureReason(), and PoDoFo::PdfMemStream::Uncompress().

    if( HasKey( identifier ) )
        delete m_mapKeys[identifier];

        m_mapKeys.erase( identifier );
        m_bDirty = true;
        return true;

    return false;

Here is the call graph for this function:

Here is the caller graph for this function:

Generated by  Doxygen 1.6.0   Back to index