PrizmDoc® Viewer v13.28 Release - Updated
PrizmDoc Viewer / API Reference / Viewer Control / Namespace: PCCViewer / Class: Revision
In This Topic
    Class: Revision
    In This Topic

    PCCViewer. Revision

    new Revision()

    The Revision object is created when requesting the revisions for a document comparison. It represents a change identified in a document comparison and retrieved using PCCViewer.ViewerControl#requestRevisions.

    This constructor should not be used directly. Instead, only access revisions created by PCCViewer.ViewerControl#requestRevisions, through the PCCViewer.RevisionsRequest object.

    See:

    Members

    (static, readonly) Type :string

    The PCCViewer.Revision.Type enumeration defines Revision Types known to the ViewerControl.

    Type:

    • string

    Properties:

    Name Description
    ContentInserted : string

    Indicates that an insertion occurred.

    ContentDeleted : string

    Indicates that a deletion occurred.

    PropertyChanged : string

    Indicates that a property was changed.

    ParagraphNumberChanged : string

    Indicates that a paragraph number changed.

    FieldDisplayChanged : string

    Indicates that a field display changed.

    RevisionMarkedAsReconciledConflict : string

    Indicates that a revision was marked as reconciled conflict.

    RevisionMarkedAsConflict : string

    Indicates that a revision was marked as conflict.

    StyleChanged : string

    Indicates a style change.

    ContentReplaced : string

    Indicates that content was replaced.

    ParagraphPropertyChanged : string

    Indicates that a paragraph property changed.

    TablePropertyChanged : string

    Indicates that a table property changed.

    SectionPropertyChanged : string

    Indicates that a section property changed.

    StyleDefinitionChanged : string

    Indicates that a style definition changed.

    ContentMovedFrom : string

    Indicates that content was moved from this location.

    ContentMovedTo : string

    Indicates that content was moved to this location.

    TableCellInserted : string

    Indicates that a table cell was inserted.

    TableCellDeleted : string

    Indicates that a table cell was deleted.

    TableCellsMerged : string

    Indicates that table cells were merged.

    Unknown : string

    Indicates a revision of an unknown type.

    (readonly) id :number

    Gets the ID of the revision.

    The ID is unique only to revisions in the current revisions request and may be repeated in later revisions requests.

    This is an ECMA 5 accessor property that is defined only in browsers supporting ECMA 5. This property is not available in the older browsers like IE8.

    Type:

    • number
    See:

    (readonly) pageNumber :number

    Gets the page number of the document on which the revision ends.

    If the revision is contained on a single page, this returns the page number of that page. If the revision spans multiple pages, this returns the page number of the last page.

    This is an ECMA 5 accessor property that is defined only in browsers supporting ECMA 5. This property is not available in the older browsers like IE8.

    Type:

    • number
    See:

    (readonly) type :PCCViewer.Revision.Type

    Gets the type of the revision.

    This is an ECMA 5 accessor property that is defined only in browsers supporting ECMA 5. This property is not available in the older browsers like IE8.

    Type:

    See:

    Methods

    getEndPageNumber() → {number}

    Gets the page number of the document on which the revision ends.

    If the revision is contained on a single page, this returns the page number of that page. If the revision spans multiple pages, this returns the page number of the last page.

    Example

    var revisions = revisionsRequest.getRevisions();
    var revision = revisions[0];
    var pageNumber = revision.getEndPageNumber();
    alert("Revision found on page: " + pageNumber);
    
    

    Returns:

    The page number on which the revision ends.

    Type
    number

    getId() → {number}

    Gets the ID of the revision.

    Example

    var revisions = revisionsRequest.getRevisions();
    var revision = revisions[0];
    var id = revision.getId();
    
    

    The ID is unique only to revisions in the current revisions request and may be repeated in later revisions requests.

    See:

    Returns:

    The ID of the revision.

    Type
    number

    getType() → {PCCViewer.Revision.Type}

    Gets the type of the revision.

    Example

    var revisions = revisionsRequest.getRevisions();
    var revision = revisions[0];
    var revisionType = revision.getType();
    
    

    Returns:

    The type of the revision.

    Type
    PCCViewer.Revision.Type

    Documentation generated by JSDoc 3.6.10 on Sun Feb 25 2024 19:35:20 GMT+0000 (Coordinated Universal Time)