Reference Guide
Reference Guides / JavaScript API / Actions / Document / RotatePages
In This Topic
    RotatePages
    In This Topic
     RotatePages

    This function allows you to rotate specific pages.

    RotatePages: function (docuViewareID, pages, rotation, success, error)

    Parameters

    docuViewareID
    The identifier for the DocuVieware™ instance you want to rotate the current page from.
    pages
    The number of the pages to rotate. Can be an integer or an array of integers.
    rotation
    The rotation you want, possible values are:
    • 1 = Rotate90FlipNone
    • 2 = Rotate180FlipNone
    • 3 = Rotate270FlipNone
    success
    A function that will be executed upon success.
    error
    A function that will be executed upon error.

    Return Value

    1 if error, 0 if success.