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

    This function allows you to swap two pages.

    SwapPages: function (docuViewareID, page1, page2, success, error)

    Parameters

    docuViewareID
    The identifier for the DocuVieware™ instance you want to swap the pages from.
    page1
    The number of the first page to swap.
    page2
    The number of the second page to swap.
    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.