Resource Base
Table of contents

CDirectoryFetcher

The CDirectoryFetcher class is a utility class that retrieves a list of files from a specified directory based on certain criteria. It inherits from the CProactiveImageSourceAdapter class.

Definition

Namespace: dynamsoft::utility

Assembly: DynamsoftUtility

class CDirectoryFetcher : public CProactiveImageSourceAdapter

Methods Summary

Method Description
SetDirectory Sets the directory path and filter for the file search.
SetPDFReadingParameter Sets the parameters for reading PDF files.

SetDirectory

Sets the directory path and filter for the file search.

int SetDirectory(const char *path, const char *filter, bool recursive)

Parameters

[in] path The path of the directory to search.

[in] filter A string that specifies file extensions. For example: “*.BMP;*.JPG;*.GIF”, or “*.*”, etc.

[in] recursive Specifies whether to load files recursively.

Return value

Returns an integer value that represents the success or failure of the operation.

Error Code Value Description
EC_READ_DIRECTORY_FAILED -10064 Failed to read the directory.

SetPDFReadingParameter

Sets the parameters for reading PDF files.

int SetPDFReadingParameter(const CPDFReadingParameter& para)

Parameters

[in] para The parameter object for reading PDF files.

Return value

Returns an integer value that represents the success or failure of the operation.

Error Code Value Description
EC_PARAMETER_VALUE_INVALID -10038 There exists invalid parameter value in your JSON data.

This page is compatible for:

Version 1.0

Is this page helpful?

YesYes NoNo

In this article:

version 1.0.10

  • Latest version (2.2.20)
  • Version 2.x
    • Version 2.2.10
    • Version 2.2.0
    • Version 2.0.30
    • Version 2.0.20
    • Version 2.0.10
    • Version 2.0.0
Change +
© 2003–2024 Dynamsoft. All rights reserved.
Privacy Statement / Site Map / Home / Purchase / Support