MarkdownDocumentInfo

Inheritance: java.lang.Object

All Implemented Interfaces: com.groupdocs.editor.metadata.IDocumentInfo

public class MarkdownDocumentInfo implements IDocumentInfo

Represents metadata of one Markdown document

Methods

Method Description
getFormat() Returns a format of this Markdown document \u2014 always is TextualFormats.Md
getPageCount() Returns number of pages.
getSize() Returns size in bytes of this Markdown document
isEncrypted() Because Markdown documents cannot be encrypted with password, this property always returns ‘false’
equals(MarkdownDocumentInfo other) Determines whether this instance is equal to the other specified MarkdownDocumentInfo instance.

getFormat()

public final TextualFormats getFormat()

Returns a format of this Markdown document \u2014 always is TextualFormats.Md

Returns: TextualFormats

getPageCount()

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.

Returns: int

getSize()

public final long getSize()

Returns size in bytes of this Markdown document

Returns: long

isEncrypted()

public final boolean isEncrypted()

Because Markdown documents cannot be encrypted with password, this property always returns ‘false’

Returns: boolean

equals(MarkdownDocumentInfo other)

public final boolean equals(MarkdownDocumentInfo other)

Determines whether this instance is equal to the other specified MarkdownDocumentInfo instance.

Parameters:

Parameter Type Description
other MarkdownDocumentInfo Other MarkdownDocumentInfo instance, that should be checked on equality with this

Returns: boolean - True if are equal, false if are unequal