In This Topic
Reference Guides / JavaScript API / Actions / Document / DirectPrint

DirectPrint

In This Topic
 DirectPrint

This function allows you to instantiate the printing process without displaying the DocuVieware 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.