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

void PoDoFo::PdfDocument::AttachFile ( const PdfFileSpec rFileSpec ) [inherited]

Attach a file to the document.

rFileSpeca file specification

Definition at line 716 of file PdfDocument.cpp.

References PoDoFo::PdfNamesTree::AddValue(), PoDoFo::ePdfError_InvalidHandle, PoDoFo::PdfFileSpec::GetFilename(), PoDoFo::PdfDocument::GetNamesTree(), PoDoFo::PdfElement::GetObject(), PODOFO_RAISE_ERROR, and PoDoFo::PdfObject::Reference().

    PdfNamesTree* pNames = this->GetNamesTree( true );

    if( !pNames ) 
        PODOFO_RAISE_ERROR( ePdfError_InvalidHandle );

    pNames->AddValue( "EmbeddedFiles", rFileSpec.GetFilename(), rFileSpec.GetObject()->Reference() );

Here is the call graph for this function:

Generated by  Doxygen 1.6.0   Back to index