| Available in LEADTOOLS Imaging Pro, Vector, Document, and Medical Imaging toolkits. | 
L_DocWriterFinish
#include "l_bitmap.h"
L_LTDOCWRT_API L_INT EXT_FUNCTION L_DocWriterFinish(hDocument)
| DOCUMENTWRITER_HANDLE hDocument; | /* handle to an existing document */ | 
Writes the created document to the file system.
| Parameter | Description | 
| hDocument | Handle to an existing Document. This handle is obtained by calling the L_DocWriterInit function. | 
Returns
| SUCCESS | The function was successful. | 
| < 1 | An error occurred. Refer to Return Codes. | 
Comments
This function uses the document handle to save a document file to disk using the path provided in the L_DocWriterInit function.
This function frees all allocated resources after creating the document file.
Required DLLs and Libraries
| LtDocWrt_u.dll, LtDocWrt_x.dll  | 
Platforms
Win32, x64.
See Also
| Functions: | |
| Topics: | |
| 
 | 
Example
For an example, refer to L_DocWriterInit.