Deletes the specified page from a multipage file, if the format supports delete operations.
virtual L_INT LFile::DeletePage(nPage, uFlags=0, pSaveFileOption=NULL)
Number of the page to delete. Use -1 to delete the last page. Use 1 to delete the first page.
Reserved. Use 0.
Pointer to optional extended save options. Pass NULL to use the default save options.
|SUCCESS||The function was successful.|
|< 1||An error occurred. Refer to Return Codes.|
The following file formats support delete operations:
Before you can call this function, you must set the filename for the class object.
nRet = LeadFile.DeletePage(2,0, NULL) ;
if(nRet != SUCCESS)
Medical Web Viewer .NET
.NET, Java, Android, and iOS/macOS Assemblies
C API/C++ Class Libraries