Skip to content

Commit

Permalink
Merge pull request #1590 from arasabbasi/fix_for_372
Browse files Browse the repository at this point in the history
Fix for #372, Add Documentation Information
  • Loading branch information
MrRio committed Jan 30, 2018
2 parents efdbc92 + 90ff922 commit ed30795
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions jspdf.js
Original file line number Diff line number Diff line change
Expand Up @@ -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") <br />
* @param orientation {String/Object} Orientation of the first page. Possible values are "portrait" or "landscape" (or shortcuts "p" (Default), "l") <br />
* 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.<br />
* Possible values are "pt" (points), "mm" (Default), "cm", "in" or "px".
* @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 />
* 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
Expand Down Expand Up @@ -1349,6 +1350,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 <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 />
* 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}
*
Expand Down

0 comments on commit ed30795

Please sign in to comment.