Resource Base
Table of contents

CFileFetcher

The CFileFetcher class is a utility class that partitions a multi-page image file into multiple independent ImageData objects. It inherits from the CImageSourceAdapter class.

Definition

Namespace: dynamsoft::utility

Assembly: DynamsoftUtility

class CFileFetcher : public CImageSourceAdapter

Methods Summary

Method Description
SetFile Sets the file using a file path, file bytes or an CImageData object.
SetPDFReadingParameter Sets the parameters for reading PDF files.

SetFile

Sets the file using a file path, file bytes or an CImageData object.

int SetFile(const char* path);
int SetFile(const unsigned char* pFileBytes,int fileSize);
int SetFile(const CImageData* imageData);

Parameters

[in] path The file path.

[in] pFileBytes The file bytes..

[in] fileSize The file bytes length.

[in] imageData The image data object.

Return value

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

Error Code Value Description
EC_NULL_POINTER -10002 The fileBytes you input is null.
EC_FILE_NOT_FOUND -10005 The file is not found.
EC_FILE_TYPE_NOT_SUPPORTED -10006 The file type is not supported.

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