public class JadiceDocumentInfo extends Object implements IDocumentInfo, Serializable
Constructor and Description |
---|
JadiceDocumentInfo(String uuid,
int pageCount,
boolean isAnnotated,
String baseFormat,
Dimension2D[] pageSizes,
float[] verticalResolutions,
float[] horizontalResolutions,
String[] pageFormats,
com.levigo.jadice.document.metadata.Metadata[] metadata) |
Modifier and Type | Method and Description |
---|---|
String |
getBaseFormat() |
String |
getFormat(int pageIndex)
Determine the Format of a given page.
|
float |
getHorizontalResolution(int pageIndex)
Determine the horizontal resolution of a given page in dpi.
|
com.levigo.jadice.document.metadata.Metadata |
getMetadata(int pageIndex)
Return the
Metadata for a given page. |
int |
getPageCount() |
Dimension2D |
getSize(int pageIndex)
Determine the size of a given page in
Unit.JadiceDocumentUnit . |
String |
getUUID() |
float |
getVerticalResolution(int pageIndex)
Determine the vertical resolution of a given page in dpi.
|
boolean |
isAnnotated() |
public JadiceDocumentInfo(String uuid, int pageCount, boolean isAnnotated, String baseFormat, Dimension2D[] pageSizes, float[] verticalResolutions, float[] horizontalResolutions, String[] pageFormats, com.levigo.jadice.document.metadata.Metadata[] metadata)
public String getUUID()
getUUID
in interface IDocumentInfo
Stream
that was analyzedStreamDescriptor.getUUID()
public int getPageCount()
getPageCount
in interface IDocumentInfo
public boolean isAnnotated()
isAnnotated
in interface IDocumentInfo
true iff the document contains annotations
public String getBaseFormat()
getBaseFormat
in interface IDocumentInfo
null
if the
document has an unknown or unsupported formatpublic Dimension2D getSize(int pageIndex)
IDocumentInfo
Unit.JadiceDocumentUnit
.getSize
in interface IDocumentInfo
pageIndex
- The index of the page (0-based). Value must be in range [0..
IDocumentInfo.getPageCount()
-1]Unit.JadiceDocumentUnit
public float getVerticalResolution(int pageIndex)
IDocumentInfo
getVerticalResolution
in interface IDocumentInfo
pageIndex
- The index of the page (0-based). Value must be in range [0..
IDocumentInfo.getPageCount()
-1]public float getHorizontalResolution(int pageIndex)
IDocumentInfo
getHorizontalResolution
in interface IDocumentInfo
pageIndex
- The index of the page (0-based). Value must be in range [0..
IDocumentInfo.getPageCount()
-1]public String getFormat(int pageIndex)
IDocumentInfo
getFormat
in interface IDocumentInfo
pageIndex
- The index of the page (0-based). Value must be in range [0..
IDocumentInfo.getPageCount()
-1]null
public com.levigo.jadice.document.metadata.Metadata getMetadata(int pageIndex)
IDocumentInfo
Metadata
for a given page.getMetadata
in interface IDocumentInfo
pageIndex
- The index of the page (0-based). Value must be in range [0..
IDocumentInfo.getPageCount()
-1]null
Copyright © 2017 levigo holding gmbh. All rights reserved.