|
48 | 48 | * Creates new jsPDF document object instance.
|
49 | 49 | * @name jsPDF
|
50 | 50 | * @class
|
51 |
| - * @param orientation One of "portrait" or "landscape" (or shortcuts "p" (Default), "l") <br /> |
| 51 | + * @param orientation {String/Object} Orientation of the first page. Possible values are "portrait" or "landscape" (or shortcuts "p" (Default), "l") <br /> |
52 | 52 | * Can also be an options object.
|
53 |
| - * @param unit Measurement unit to be used when coordinates are specified. |
54 |
| - * One of "pt" (points), "mm" (Default), "cm", "in" |
55 |
| - * @param format One of 'pageFormats' as shown below, default: a4 |
| 53 | + * @param unit {String} Measurement unit to be used when coordinates are specified.<br /> |
| 54 | + * Possible values are "pt" (points), "mm" (Default), "cm", "in" or "px". |
| 55 | + * @param format {String/Array} The format of the first page. Can be <ul><li>a0 - a10</li><li>b0 - b10</li><li>c0 - c10</li><li>c0 - c10</li><li>dl</li><li>letter</li><li>government-letter</li><li>legal</li><li>junior-legal</li><li>ledger</li><li>tabloid</li><li>credit-card</li></ul><br /> |
| 56 | + * 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] |
56 | 57 | * @returns {jsPDF}
|
57 | 58 | * @description
|
58 | 59 | * If the first parameter (orientation) is an object, it will be interpreted as an object of named parameters
|
@@ -1349,6 +1350,9 @@ var jsPDF = (function(global) {
|
1349 | 1350 |
|
1350 | 1351 | /**
|
1351 | 1352 | * Adds (and transfers the focus to) new page to the PDF document.
|
| 1353 | + * @param format {String/Array} The format of the new page. Can be <ul><li>a0 - a10</li><li>b0 - b10</li><li>c0 - c10</li><li>c0 - c10</li><li>dl</li><li>letter</li><li>government-letter</li><li>legal</li><li>junior-legal</li><li>ledger</li><li>tabloid</li><li>credit-card</li></ul><br /> |
| 1354 | + * 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] |
| 1355 | + * @param orientation {String} Orientation of the new page. Possible values are "portrait" or "landscape" (or shortcuts "p" (Default), "l") |
1352 | 1356 | * @function
|
1353 | 1357 | * @returns {jsPDF}
|
1354 | 1358 | *
|
|
0 commit comments