/*
 * PSPDFKit.js
 *
 *   PSPDFKit
 *
 *   Copyright (c) 2015 PSPDFKit GmbH. All rights reserved.
 *
 *   THIS SOURCE CODE AND ANY ACCOMPANYING DOCUMENTATION ARE PROTECTED BY INTERNATIONAL COPYRIGHT LAW
 *   AND MAY NOT BE RESOLD OR REDISTRIBUTED. USAGE IS BOUND TO THE PSPDFKIT LICENSE AGREEMENT.
 *   UNAUTHORIZED REPRODUCTION OR DISTRIBUTION IS SUBJECT TO CIVIL AND CRIMINAL PENALTIES.
 *   This notice may not be removed from this file.
 */

var exec = require('cordova/exec');

exports.showDocument = function (uri, success, error) {
    exec(success, error, "PSPDFKitCordovaPlugin", "showDocument", [uri]);
};

exports.showDocumentFromAssets = function (assetFile, success, error) {
    exec(success, error, "PSPDFKitCordovaPlugin", "showDocumentFromAssets", [assetFile]);
};
@@ -480,141 +480,737 @@
 );%0A%0A
-exports.showDocument = function (uri, success, error) %7B%0A    exec(success, error, %22PSPDFKitCordovaPlugin%22, %22showDocument%22, %5Buri%5D);%0A%7D;%0A
+/**%0A * Opens the PSPDFKitActivity to show a document from the local device file system.%0A *%0A * @param uri     The local filesystem URI of the document to show.%0A * @param success Success callback function.%0A * @param error   Error callback function.%0A */%0Aexports.showDocument = function (uri, success, error) %7B%0A    exec(success, error, %22PSPDFKitCordovaPlugin%22, %22showDocument%22, %5Buri%5D);%0A%7D;%0A%0A/**%0A * Opens the PSPDFKitActivity to show a document from the app's assets folder. This%0A * method copies the file to the internal app directory on the device before showing%0A * it.%0A *%0A * @param assetFile Relative path within the app's assets folder.%0A * @param success   Success callback function.%0A * @param error     Error callback function.%0A */
 %0Aexp

Add comments to Javascript API functions