Reference Guide
Reference Guides / JavaScript API / Actions / Operations / DirectPrint
In This Topic
    DirectPrint
    In This Topic
     DirectPrint

    This function allows you to instantiate the printing process without prompting any dialog box.

    DirectPrint: function (docuViewareID, options, success, error)

    Parameters

    docuViewareID
    The identifier for the DocuVieware™ instance you want to download the current document from.
    options
    An optional JavaScript object specifying the printing options. It has the following prototype:
    {
       removeAnnontations: boolean,
       range: string,
       destination: integer
    }

    removeAnnotations is a boolean specifying if annotations must be removed from the printed pages. (false by default).
    - range is a string specifying the range of pages to print. Use "*" or empty string to print all pages. ("*" by default).
    - destination is an integer specifying the printing destination. Use 0 for printer and 1 for PDF document. (0 by default).  

    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.