DocumentImage.fromFile Method

Module: DocumentImage

Definition

Creates an Image from the specified file.

static DocumentImage fromFile(String? filepath, PixelFormat pixelFormat)

Parameters

filepath String
in A string that contains the name of the file from which to create the Image.

pixelFormat PixelFormat
in The pixel format into which to convert the input image.

Returns

The newly created document image.

Exceptions

An error has occurred during Document Library execution.