public class MarkdownDocumentInfo extends Object implements IDocumentInfo
Represents metadata of one Markdown document
Modifier and Type | Method and Description |
---|---|
boolean |
equals(MarkdownDocumentInfo other)
Determines whether this instance is equal to the other specified
MarkdownDocumentInfo instance. |
TextualFormats |
getFormat()
Returns a format of this Markdown document — always is
TextualFormats.Md |
int |
getPageCount()
Returns number of pages.
|
long |
getSize()
Returns size in bytes of this Markdown document
|
boolean |
isEncrypted()
Because Markdown documents cannot be encrypted with password, this
property always returns 'false'
|
public final boolean equals(MarkdownDocumentInfo other)
Determines whether this instance is equal to the other specified
MarkdownDocumentInfo
instance.
other
- Other MarkdownDocumentInfo
instance, that should be
checked on equality with thispublic final TextualFormats getFormat()
Returns a format of this Markdown document — always is
TextualFormats.Md
getFormat
in interface IDocumentInfo
public final int getPageCount()
Returns number of pages. Markdown documents usually have no fixed pages and thus page count, so this number is calculated from standard page size set to A4 in portrait orientation.
getPageCount
in interface IDocumentInfo
public final long getSize()
Returns size in bytes of this Markdown document
getSize
in interface IDocumentInfo
public final boolean isEncrypted()
Because Markdown documents cannot be encrypted with password, this property always returns 'false'
isEncrypted
in interface IDocumentInfo