ImagePlacementAbsorber

Inheritance: java.lang.Object

public final class ImagePlacementAbsorber

Represents an absorber object of image placement objects. Performs search of image usages and provides access to search results via ImagePlacementAbsorber.ImagePlacements collection.


The example demonstrates how to find images on the first PDF document page and get the image placement properties.


 // Open document
 Document doc = new Document("D:\\Tests\\input.pdf");
 // Create ImagePlacementAbsorber object to perform image placement search
 ImagePlacementAbsorber abs = new ImagePlacementAbsorber();
 // Accept the absorber for first page
 doc.getPages().get_Item(1).accept(abs);
 // Display image placement properties for all placements
 for (ImagePlacement imagePlacement : ```
(Iterable)
```abs.getImagePlacements())
 {
     System.out.println("image width:" + imagePlacement.getRectangle().getWidth());
     System.out.println("image height:" + imagePlacement.getRectangle().getHeight());
     System.out.println("image LLX:" + imagePlacement.getRectangle(0).getX());
     System.out.println("image LLY:" + imagePlacement.getRectangle.getY());
     System.out.println("image horizontal resolution:" + imagePlacement.getResolution().getX());
     System.out.println("image vertical resolution:" + imagePlacement.getResolution().getY());
 }

The ImagePlacementAbsorber object is basically used in images search scenario. When the search is completed the occurrences are represented with ImagePlacement objects that the ImagePlacementAbsorber.ImagePlacements collection contains. The ImagePlacement object provides access to the image placement properties: dimensions, resolution etc.

Constructors

Constructor Description
ImagePlacementAbsorber() Initializes new instance of the ImagePlacementAbsorber object.

Methods

Method Description
equals(Object arg0)
getClass()
getImagePlacements() Gets collection of image placement occurrences that are presented with ImagePlacement objects.
hashCode()
isReadOnlyMode() Gets/sets read only mode for parsing operations collection.
notify()
notifyAll()
setReadOnlyMode(boolean value) Gets/sets read only mode for parsing operations collection.
toString()
visit(IDocument pdf) Performs search on the specified document.
visit(Page page) Performs search on the specified page.
wait()
wait(long arg0)
wait(long arg0, int arg1)

ImagePlacementAbsorber()

public ImagePlacementAbsorber()

Initializes new instance of the ImagePlacementAbsorber object.

equals(Object arg0)

public boolean equals(Object arg0)

Parameters:

Parameter Type Description
arg0 java.lang.Object

Returns: boolean

getClass()

public final native Class<?> getClass()

Returns: java.lang.Class

getImagePlacements()

public ImagePlacementCollection getImagePlacements()

Gets collection of image placement occurrences that are presented with ImagePlacement objects.

Returns: ImagePlacementCollection - ImagePlacementCollection object

hashCode()

public native int hashCode()

Returns: int

isReadOnlyMode()

public final boolean isReadOnlyMode()

Gets/sets read only mode for parsing operations collection. It may help against out of memory exceptions.

Returns: boolean - boolean value

notify()

public final native void notify()

notifyAll()

public final native void notifyAll()

setReadOnlyMode(boolean value)

public final void setReadOnlyMode(boolean value)

Gets/sets read only mode for parsing operations collection. It may help against out of memory exceptions.

Parameters:

Parameter Type Description
value boolean boolean value

toString()

public String toString()

Returns: java.lang.String

visit(IDocument pdf)

public void visit(IDocument pdf)

Performs search on the specified document.

Parameters:

Parameter Type Description
pdf IDocument Pdf pocument object.

visit(Page page)

public void visit(Page page)

Performs search on the specified page.

Parameters:

Parameter Type Description
page Page Pdf pocument page object.

wait()

public final void wait()

wait(long arg0)

public final native void wait(long arg0)

Parameters:

Parameter Type Description
arg0 long

wait(long arg0, int arg1)

public final void wait(long arg0, int arg1)

Parameters:

Parameter Type Description
arg0 long
arg1 int