L_DocWriterAppendLtd(pszSrcFileName, pszDestFileName)

Include

#include "l_bitmap.h"

Syntax

L_LTDOCWRT_API L_INT EXT_FUNCTION L_DocWriterAppendLtd(pszSrcFileName, pszDestFileName)

L_TCHAR * pszSrcFileName; The source LTD file.
L_TCHAR * pszDestFileName; The destination LTD file.

Summary

Appends one LEADTOOLS Temporary Document (LTD) file to another.

Parameters

Parameter Description
pszSrcFileName Character string containing the source LTD file (source file).
pszDestFileName Character string containing the destination LTD file (output file).

Returns

SUCCESS The function was successful.
< 1 An error occurred. Refer to Return Codes.

Remarks

You can use this function to append several LTD files together before calling L_DocWriterConvert.

This can be useful in a multi-threading OCR solution.

pszSrcFileName must exist on disk before calling this method, otherwise, an exception will be thrown.

pszDestFileName may or may not exist prior to calling this method, if it does not exist, a new file is created and the data is copied as is from the source file.

When this function returns, destFileName will contain all the pages from the source and destination file (if exists), for example if the source file has 10 pages and the destination file has 20 pages, the result will be an LTD with 30 pages in destFileName with the 10 pages from the source file appended to the end of the destination file at page index 20, 21, 22, etc.

The source file name is never changed by this method.

Required DLLs and Libraries

LtDocWrt_u.dll, LtDocWrt_x.dll LTDocWrtEmf_u.dll, LTDocWrtEmf_x.dll LTDocWrtTtf_u.dll, LTDocWrtTtf_x.dll LTDocWrtPdf_u.dll, LTDocWrtPdf_x.dll LTDocWrtDoc_u.dll, LTDocWrtDoc_x.dll LTDocWrtRtf_u.dll, LTDocWrtRtf_x.dll LTDocWrtHtm_u.dll, LTDocWrtHtm_x.dll LTDocWrtTxt_u.dll, LTDocWrtTxt_x.dll LTDocWrtXls_u.dll, LTDocWrtXls_x.dll LTDocWrtDocx_u.dll, LTDocWrtDocx_x.dll LTDocWrtXps_u.dll, LTDocWrtXps_x.dll LtFil_u.dll, LtFil_x.dll LfJb2_u.dll, LfJb2_x.dll Lfcmp_u.dll, Lfcmp_x.dll Lftif_u.dll, Lftif_x.dll Lfraw_u.dll, Lfraw_x.dll Lfbmp_u.dll, Lfbmp_x.dll Lfpng_u.dll, Lfpng_x.dll For a listing of the exact DLLs and Libraries needed, based on the toolkit version, refer to Files To Be Included With Your Application.

Platforms

Win32, x64.

Help Version 19.0.2017.10.27
Products | Support | Contact Us | Copyright Notices
© 1991-2017 LEAD Technologies, Inc. All Rights Reserved.
LEADTOOLS Raster Imaging C API Help