Topics   All   Mac OS X (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server   Client   Old   Guides   Examples
New in version: 7.5   8.0   8.1   8.2   8.3   8.4   8.5   9.0   9.1   9.2    Statistic  


The function deletes an embedded file.

Component Version macOS Windows Server FileMaker Cloud FileMaker iOS SDK
DynaPDF 5.0 Yes Yes Yes Yes Yes
MBS( "DynaPDF.DeleteEmbeddedFile"; PDF; Handle )   More


Parameter Description Example value
PDF The PDF reference returned from DynaPDF.New. $pdf
Handle The index number for the embedded file. Range from 0 to DynaPDF.GetEmbeddedFileCount. 0


Returns OK or error.


The function deletes an embedded file.
The parameter Handle must be a valid embedded file handle. Such a handle is a simple array index. DynaPDF.GetEmbeddedFileCount returns the remaining number of embedded files. If all embedded files should be deleted then delete the files from top to bottom by decrementing the loop variable. This is faster because it is not required to reorganize the array in which the files are stored in this case. All handles above the deleted file index become invalid after the file was deleted.

See also DeleteEmbeddedFile function in DynaPDF manual.

See also

Created 6th February 2015, last changed 6th February 2015

DynaPDF.DeleteBookmark   -   DynaPDF.DeleteField

Feedback: Report problem or ask question.

MBS Xojo Plugins