Document
Inheritance: java.lang.Object
public class Document
Represents PUB document, holds all fields and relevant values
Methods
Method | Description |
---|---|
getSummaryInfo() | Summary Info |
setSummaryInfo(SummaryInfo value) | Sets summary info |
getDocumentSummaryInfo() | Document Summary Info |
setDocSummaryInfo(DocSummaryInfo value) | Sets document summary info |
getWidth() | Width of document in PUB metrics(EMUs) |
getHeight() | Height of document in PUB metrics(EMUs) |
getDefaultTextStyles() | Array of default text styles |
addDefaultTextStyle(TextStyle value) | Adds default text style |
getDefaultParagraphStyles() | Array of default paragraph styles |
addDefaultParagraphStyle(ParagraphStyle value) | Adds default paragraph style |
getFieldCount() | Count of all fields |
getFontNames() | Array of font names |
getColors() | Array of colors |
getSummaryInfo()
public final SummaryInfo getSummaryInfo()
Summary Info
Returns: SummaryInfo - SummaryInfo instance
setSummaryInfo(SummaryInfo value)
public final void setSummaryInfo(SummaryInfo value)
Sets summary info
Parameters:
Parameter | Type | Description |
---|---|---|
value | SummaryInfo | Summary Info value |
getDocumentSummaryInfo()
public final DocSummaryInfo getDocumentSummaryInfo()
Document Summary Info
Returns: DocSummaryInfo - DocSummaryInfo instance
setDocSummaryInfo(DocSummaryInfo value)
public final void setDocSummaryInfo(DocSummaryInfo value)
Sets document summary info
Parameters:
Parameter | Type | Description |
---|---|---|
value | DocSummaryInfo | Document Summary Info value |
getWidth()
public final long getWidth()
Width of document in PUB metrics(EMUs)
Returns: long - long value
getHeight()
public final long getHeight()
Height of document in PUB metrics(EMUs)
Returns: long - long value
getDefaultTextStyles()
public final TextStyle[] getDefaultTextStyles()
Array of default text styles
Returns: com.aspose.pub.TextStyle[] - array of TextStyle instances
addDefaultTextStyle(TextStyle value)
public final void addDefaultTextStyle(TextStyle value)
Adds default text style
Parameters:
Parameter | Type | Description |
---|---|---|
value | TextStyle | text style |
getDefaultParagraphStyles()
public final ParagraphStyle[] getDefaultParagraphStyles()
Array of default paragraph styles
Returns: com.aspose.pub.ParagraphStyle[] - array of ParagraphStyle instances
addDefaultParagraphStyle(ParagraphStyle value)
public final void addDefaultParagraphStyle(ParagraphStyle value)
Adds default paragraph style
Parameters:
Parameter | Type | Description |
---|---|---|
value | ParagraphStyle | paragraph style |
getFieldCount()
public final int getFieldCount()
Count of all fields
Returns: int - int value
getFontNames()
public final String[] getFontNames()
Array of font names
Returns: java.lang.String[] - array of String values
getColors()
public final Color[] getColors()
Array of colors
Returns: java.awt.Color[] - array of Color instances