L_DocWriterAppendLtd

#include "l_bitmap.h"

L_LTDOCWRT_API L_INT EXT_FUNCTION L_DocWriterAppendLtd(pszSrcFileName, pszDestFileName)

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

Parameters

L_TCHAR * pszSrcFileName

Character string containing the source LTD file (source file).

L_TCHAR * pszDestFileName

Character string containing the destination LTD file (output file).

Returns

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

Comments

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 function, otherwise, an exception will be thrown.

pszDestFileName may or may not exist prior to calling this function, 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, pszDestFileName 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 pszDestFileName 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 function.

Required DLLs and Libraries

Platforms

Win32, x64.

Help Version 21.0.2023.2.15
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2021 LEAD Technologies, Inc. All Rights Reserved.

LEADTOOLS Raster Imaging C API Help
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2021 LEAD Technologies, Inc. All Rights Reserved.