std.GetDocumentStream

This job reads a file range, creates a new file from it, and returns it.

1. Input Parameters

Name Type Required Description

dwObjectID

INT

Yes

ID of the object

dwObjectType

INT

Yes

Type of the object

PageNum

INT

Yes

Page number to read from

dwOffset

INT

Yes

Offset in bytes from which to read

dwLength

INT

Yes

Number of bytes to read

2. Output Parameters

Name Type Dependency Description

Count

INT

Number of created files

3. Output Files

Name Description

File list

Path and name of the created file

Possible error codes:
ERR_WRONGPARAM = Offset is greater than the file
ERR_GETOBJECTDEFPARAM = Object type unknown
ERR_GETPARAMETER = too few (valid) parameters passed
ERR_SQLSELECT = error in DB queries
ERR_NOTDEFINED_YET = object is on a remote server
ERR_INSOURCE = file cannot be found or opened
ERR_INDESTINATION = destination file cannot be created

4. Return Value

(INT): 0 = Job successful, otherwise error code.