com.aspose.note

Class Page

    • Constructor Detail

      • Page

        public Page(Document document)

        Initializes a new instance of the Page class.

        Parameters:
        document - The parent document of the page.
    • Method Detail

      • getPageContentRevisionSummary

        public RevisionSummary getPageContentRevisionSummary()

        Gets or sets the revision summary for the page and it's child nodes.

      • setPageContentRevisionSummary

        public void setPageContentRevisionSummary(RevisionSummary value)

        Gets or sets the revision summary for the page and it's child nodes.

      • getTitle

        public Title getTitle()

        Gets or sets the title.

        Value: The Title.
      • setTitle

        public void setTitle(Title value)

        Gets or sets the title.

        Value: The Title.
      • getLastModifiedTime

        public Date getLastModifiedTime()

        Gets or sets the last modified time.

      • setLastModifiedTime

        public void setLastModifiedTime(Date value)

        Gets or sets the last modified time.

      • getCreationTime

        public Date getCreationTime()

        Gets or sets the creation time.

      • setCreationTime

        public void setCreationTime(Date value)

        Gets or sets the creation time.

      • getCachedTitleString

        public String getCachedTitleString()

        Gets or sets the title string.

      • setCachedTitleString

        public void setCachedTitleString(String value)

        Gets or sets the title string.

      • getLevel

        public byte getLevel()

        Gets or sets the level.

      • setLevel

        public void setLevel(byte value)

        Gets or sets the level.

      • getMargin

        public Margins getMargin()

        Gets or sets the margin.

      • setMargin

        public void setMargin(Margins value)

        Gets or sets the margin.

      • getAuthor

        public String getAuthor()

        Gets or sets the author.

      • setAuthor

        public void setAuthor(String value)

        Gets or sets the author.

      • getSizeType

        public final int getSizeType()

        Gets or sets the size type of a page.


        By default, a page resizes automatically. The default value is PageSizeType.sizeByContent.

      • setSizeType

        public final void setSizeType(int value)

        Gets or sets the size type of a page.


        By default, a page resizes automatically. The default value is PageSizeType.sizeByContent.

      • getWidth

        public final float getWidth()

        Gets or sets the width.

      • setWidth

        public final void setWidth(float value)

        Gets or sets the width.

      • getHeight

        public final float getHeight()

        Gets or sets the height.

      • setHeight

        public final void setHeight(float value)

        Gets or sets the height.

      • isConflictPage

        public final boolean isConflictPage()

        Gets or sets a value indicating whether this page is a conflict page.


        The conflict page arises when two users try to update the same content. In this case the changes of first user are written as usual. But changes of another user can't be merged. So just a copy of page is created and marked as conflict.

        At this version the conflicts are resolved in favor of the first user's changes. So if document has conflict pages then they will be shown in history but they will be skipped on saving. It is possible to reset this flag to save this pages in history as usual ones.

        Detailed sample of manipulating by conflict page can be found in the online documentation.

      • setConflictPage

        public final void setConflictPage(boolean value)

        Gets or sets a value indicating whether this page is a conflict page.


        The conflict page arises when two users try to update the same content. In this case the changes of first user are written as usual. But changes of another user can't be merged. So just a copy of page is created and marked as conflict.

        At this version the conflicts are resolved in favor of the first user's changes. So if document has conflict pages then they will be shown in history but they will be skipped on saving. It is possible to reset this flag to save this pages in history as usual ones.

        Detailed sample of manipulating by conflict page can be found in the online documentation.

      • deepClone

        public Page deepClone()

        Clones the page.

        Returns:
        A clone of the page.