In This Topic ▼

L_CanLoadDoc

#include "l_bitmap.h"

L_LTFIL_API L_INT L_CanLoadDoc(pszFile, pbSupported, pLoadOptions, pFileInfo)

L_TCHAR* pszFile;

file name

L_BOOL* pbSupported;

pointer to variable to be updated

pLOADFILEOPTION pLoadOptions;

pointer to optional extended load options

pFILEINFO pFileInfo;

pointer to optional file info structure

Determines whether the specified image, document, or vector file can be loaded as a DOC file.

Parameter

Description

pszFile

Character string containing the name of the image file to load.

pbSupported

Pointer to a variable to be updated. TRUE if the specified image, document, or vector file can be loaded as SVG; otherwise, FALSE.

pLoadOptions

Pointer to optional extended load options. Pass NULL to use the default load options.

pFileInfo

Pointer to optional FILEINFO structure. Pass NULL if you do not know or do not need the file information.

Returns

SUCCESS

The function was successful.

< 1

An error occurred. Refer to Return Codes.

Comments

Use this function to determine whether the specified image, document, or vector file supports being loaded and converted on-the-fly to a document file format using L_LoadDoc. In the future, this function could be used to check if conversion to several document formats is possible. Right now, the only supported output format is PDF. The following conditions must be met in order to load one or more pages from a file and convert them to PDF:

Condition Description

The file format is a document file format

Any of the document file formats (AFP, DOC/DOCX, PPT/PPTX, XLS/XLSX, TXT, PTK, etc.), supported by LEADTOOLS. These formats will set the FILEINFO.bIsDocFile member to TRUE when calling L_FileInfo.

In addition to LTFIL and LTKRN, the following additional DLLs/assemblies are required to support loading as PDF:

DLL

Description

LTDIS

Display functions.

LTDRW

Drawing engine.

LTDOCWRT

Document writer engine.

LTDOCWRTEMF

Document Writer Emf engine.

LTDOCWRTPDF

Document Writer PDF engine.

LTDOCWrtTtf

Document Writer True Type font engine.

LTIMGCOR

Core Image Processing functions.

LTSVG

Scalable Vector Graphics File Format.

Note:

More options are available in the LOADFILEOPTION structure.

Support for loading as PDF is only available in the Document and Medical Imaging toolkits.

Note: You should never pass an uninitialized FILEINFO structure to this function.

Other required DLLs and Libraries

LTFIL
File format DLLs

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, Linux.

See Also

Functions:

L_LoadDoc, L_LoadBitmap, L_SetRasterizeDocOptions

Topics:

Raster Image Functions: Loading Files

 

Raster Image Functions: Redirecting Input and Output

 

Loading and Saving Images

 

Programming with the LEADTOOLS Document Writers

Example

For an example, refer to L_LoadDoc.

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

LEADTOOLS Raster Imaging C API Help