public class DocumentModelInfo extends Object
Modifier and Type | Method and Description |
---|---|
static DocumentModelInfo |
get(Page page)
Return the model information for the given page.
|
static DocumentModelInfo |
get(PageSegment ps)
Return the model information for the given page segment.
|
Resolution |
getMaximumImageResolution()
Returns the highest resolution of all images contained in the referenced page or page segment.
|
Resolution |
getMinimumImageResolution()
Returns the lowest resolution of all images contained in the referenced page or page segment.
|
int |
getNumberOfImages()
Returns the number of images contained in the referenced page or page segment.
|
List<Rectangle2D> |
getTranslucentRegions()
Returns an unmodifiable list of translucent regions within the referenced page or page segment.
|
List<Rectangle2D> |
getTransparentRegions()
Returns an unmodifiable list of transparent regions within the referenced page or page segment.
|
boolean |
isColored()
Returns whether the referenced page or page segment contains any colored elements.
|
public static DocumentModelInfo get(PageSegment ps)
ps
- the page segmentpublic static DocumentModelInfo get(Page page)
page
- the pagepublic int getNumberOfImages()
public Resolution getMaximumImageResolution()
null
if no images are contained in the
referenced page or page segment.public Resolution getMinimumImageResolution()
null
if no images are contained in the referenced
page or page segment.public List<Rectangle2D> getTransparentRegions()
public List<Rectangle2D> getTranslucentRegions()
public boolean isColored()
false
if the referenced page or page segment solely contains white or black
colored elements, otherwise true
will be returned.Copyright © 2024 levigo holding gmbh. All rights reserved.