Skip to end of metadata
Go to start of metadata
Contents Summary
 

This feature is supported by version 18.10 and greater.

The code in below examples uses some methods defined in Common Utilities.

Extracting Images from Documents

This feature allows extracting images from documents. To extract images from the page of the document, getImageAreas methods are used. getImageAreas has following overloads:

Java

The method with one parameter returns all images from the page with zero-based pageIndex. The method with ImageAreaSearchOptions optional parameter returns only the images which meet the conditions of the searchOptions. Both versions of the method return a collection of ImageArea objects:

Member
Description
GetBitmapStreamReturns a stream with bitmap representation of the image
GetRawStreamReturns a stream with the image
MediaTypeMIME type of the image
PageLink to the page which contains this image
RectangleRectangle of the image area
RotationAngle of the image rotation (0 if image isn't rotated)

ImageAreaSearchOptions class has only one property - Rectangle. If it's set, the method returns only the images which are intersected with the given Rectangle.

Extracting Images from Text Documents

The following code snippet shows how to extract images from text documents.

Extracting Images from PDF Documents

The following code snippet shows how to extract images from PDF documents.

Extracting Images from Presentation Documents

The following code snippet shows how to extract images from presentation documents.

Extracting Images from Spreadsheet Documents

The following code snippet shows how to extract images from spreadsheet documents.

Labels
  • No labels