API Reference > Namespaces > OdPdfPublish Namespace > Classes > OdDocument Class > OdDocument Methods > OdDocument::getAttachments Method
OdDocument::getAttachments Method
Syntax
C++
void getAttachments(OdStringArray& file_names, OdStringArray& descriptions);
Parameters 
Description 
OdStringArray& file_names 
[out] A placeholder for names of attached files.  
OdStringArray& descriptions 
[out] A placeholder for descriptions of attached files. 

Retrieves names of files currently attached to the Publish document. The method fills passed string arrays with file names and descriptions; then returns them to a calling subroutine. 

 

Copyright © 2002–2020. Open Design Alliance. All rights reserved.