From 90ff9226ae82fcb84c26c19890f918a5909a9eed Mon Sep 17 00:00:00 2001 From: Aras Abbasi Date: Fri, 12 Jan 2018 01:20:29 +0100 Subject: [PATCH] Update jspdf.js --- jspdf.js | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/jspdf.js b/jspdf.js index c1d03d0f6..c78833a9f 100644 --- a/jspdf.js +++ b/jspdf.js @@ -48,11 +48,12 @@ * Creates new jsPDF document object instance. * @name jsPDF * @class - * @param orientation One of "portrait" or "landscape" (or shortcuts "p" (Default), "l")
+ * @param orientation {String/Object} Orientation of the first page. Possible values are "portrait" or "landscape" (or shortcuts "p" (Default), "l")
* Can also be an options object. - * @param unit Measurement unit to be used when coordinates are specified. - * One of "pt" (points), "mm" (Default), "cm", "in" - * @param format One of 'pageFormats' as shown below, default: a4 + * @param unit {String} Measurement unit to be used when coordinates are specified.
+ * Possible values are "pt" (points), "mm" (Default), "cm", "in" or "px". + * @param format {String/Array} The format of the first page. Can be
+ * Default is "a4". If you want to use your own format just pass instead of one of the above predefined formats the size as an number-array , e.g. [595.28, 841.89] * @returns {jsPDF} * @description * If the first parameter (orientation) is an object, it will be interpreted as an object of named parameters @@ -1184,6 +1185,9 @@ var jsPDF = (function(global) { /** * Adds (and transfers the focus to) new page to the PDF document. + * @param format {String/Array} The format of the new page. Can be
+ * Default is "a4". If you want to use your own format just pass instead of one of the above predefined formats the size as an number-array , e.g. [595.28, 841.89] + * @param orientation {String} Orientation of the new page. Possible values are "portrait" or "landscape" (or shortcuts "p" (Default), "l") * @function * @returns {jsPDF} *