public final class DocumentInfo extends Object
Contains metadata for a document
Modifier and Type | Class and Description |
---|---|
static class |
DocumentInfo.PageOrientationType
Page orientation enum
|
Constructor and Description |
---|
DocumentInfo() |
Modifier and Type | Method and Description |
---|---|
String |
getAuthor()
Returns detected document author if applicable to the current document
format
|
int |
getBitsPerPixel()
Returns detected bits per pixel if applicable to the current document
format
|
Date |
getCreatedDate()
Returns detected document creation date if it's applicable to the current
document format
|
Charset |
getEncoding()
Gets the document encoding is applicable to the current document format
|
String |
getFileType()
Document file type
|
int |
getHeight()
Returns detected height if applicable to the current document format
|
int |
getHorizontalResolution()
Returns detected horizontal resolution if applicable to the current
document format
|
String[] |
getLayers()
Returns list of layer names if applicable to the current document format
|
Date |
getModifiedDate()
Returns detected document modification date if applicable to the current
document format
|
int |
getPageCount()
Gets pages count if applicable to the current document format
|
int |
getPageOrientation()
Get page orientation
|
long |
getSize()
Document bytes size
|
String |
getTitle()
Returns document title width if applicable to the current document format
|
int |
getVerticalResolution()
Returns detected vertical resolution if applicable to the current
document format
|
int |
getWidth()
Returns detected width if applicable to the current document format
|
void |
setAuthor(String value)
Returns detected document author if applicable to the current document
format
|
void |
setBitsPerPixel(int value)
Returns detected bits per pixel if applicable to the current document
format
|
void |
setCreatedDate(Date value)
Returns detected document creation date if it's applicable to the current
document format
|
void |
setCreatedDateInternal(com.aspose.ms.System.DateTime value) |
void |
setEncoding(Charset value)
Gets the document encoding is applicable to the current document format
|
void |
setFileType(String value)
Document file type
|
void |
setHeight(int value)
Returns detected height if applicable to the current document format
|
void |
setHorizontalResolution(int value)
Returns detected horizontal resolution if applicable to the current
document format
|
void |
setLayers(String[] value)
Returns list of layer names if applicable to the current document format
|
void |
setModifiedDate(Date value)
Returns detected document modification date if applicable to the current
document format
|
void |
setModifiedDateInternal(com.aspose.ms.System.DateTime value) |
void |
setPageCount(int value)
Gets pages count if applicable to the current document format
|
void |
setPageOrientation(int value)
Get page orientation
|
void |
setSize(long value)
Document bytes size
|
void |
setTitle(String value)
Returns document title width if applicable to the current document format
|
void |
setVerticalResolution(int value)
Returns detected vertical resolution if applicable to the current
document format
|
void |
setWidth(int value)
Returns detected width if applicable to the current document format
|
public String getFileType()
Document file type
public void setFileType(String value)
Document file type
value
- public int getPageCount()
Gets pages count if applicable to the current document format
public void setPageCount(int value)
Gets pages count if applicable to the current document format
value
- public long getSize()
Document bytes size
public void setSize(long value)
Document bytes size
value
- public Charset getEncoding()
Gets the document encoding is applicable to the current document format
public void setEncoding(Charset value)
Gets the document encoding is applicable to the current document format
value
- public int getWidth()
Returns detected width if applicable to the current document format
public void setWidth(int value)
Returns detected width if applicable to the current document format
value
- public int getHeight()
Returns detected height if applicable to the current document format
public void setHeight(int value)
Returns detected height if applicable to the current document format
value
- public int getHorizontalResolution()
Returns detected horizontal resolution if applicable to the current document format
public void setHorizontalResolution(int value)
Returns detected horizontal resolution if applicable to the current document format
value
- public int getVerticalResolution()
Returns detected vertical resolution if applicable to the current document format
public void setVerticalResolution(int value)
Returns detected vertical resolution if applicable to the current document format
value
- public int getBitsPerPixel()
Returns detected bits per pixel if applicable to the current document format
public void setBitsPerPixel(int value)
Returns detected bits per pixel if applicable to the current document format
value
- public String getTitle()
Returns document title width if applicable to the current document format
public void setTitle(String value)
Returns document title width if applicable to the current document format
value
- public String getAuthor()
Returns detected document author if applicable to the current document format
public void setAuthor(String value)
Returns detected document author if applicable to the current document format
value
- public Date getCreatedDate()
Returns detected document creation date if it's applicable to the current document format
public void setCreatedDate(Date value)
Returns detected document creation date if it's applicable to the current document format
value
- public void setCreatedDateInternal(com.aspose.ms.System.DateTime value)
public Date getModifiedDate()
Returns detected document modification date if applicable to the current document format
public void setModifiedDate(Date value)
Returns detected document modification date if applicable to the current document format
value
- public void setModifiedDateInternal(com.aspose.ms.System.DateTime value)
public String[] getLayers()
Returns list of layer names if applicable to the current document format
public void setLayers(String[] value)
Returns list of layer names if applicable to the current document format
value
- public int getPageOrientation()
Get page orientation
public void setPageOrientation(int value)
Get page orientation
value
- Copyright © 2019. All rights reserved.