Class Index | File Index

Classes


Class jsPDF


Defined in: jspdf.js.

Class Summary
Constructor Attributes Constructor Name and Description
 
jsPDF(orientation, unit, format)
Creates new jsPDF document object instance
Method Summary
Method Attributes Method Name and Description
 
jsPDF.addPage()
Adds (and transfers the focus to) new page to the PDF document.
 
jsPDF.text(x, y, text)
Adds text to page.
Class Detail
jsPDF(orientation, unit, format)
Creates new jsPDF document object instance
Parameters:
{String} orientation
One of "portrait" or "landscape" (or shortcuts "p" (Default), "l")
{String} unit
Measurement unit to be used when coordinates are specified. One of "pt" (points), "mm" (Default), "cm", "in"
{String} format
One of 'a3', 'a4' (Default),'a5' ,'letter' ,'legal'
Returns:
{jsPDF}
Method Detail
{jsPDF} jsPDF.addPage()
Adds (and transfers the focus to) new page to the PDF document.
Returns:
{jsPDF}

{jsPDF} jsPDF.text(x, y, text)
Adds text to page. Supports adding multiline text when 'text' argument is an Array of Strings.
Parameters:
{Number} x
Coordinate (in units declared at inception of PDF document) against left edge of the page
{Number} y
Coordinate (in units declared at inception of PDF document) against upper edge of the page
{String|Array} text
String or array of strings to be added to the page. Each line is shifted one line down per font, spacing settings declared before this call.
Returns:
{jsPDF}

Documentation generated by JsDoc Toolkit 2.4.0 on Tue Feb 21 2012 17:56:10 GMT-0800 (PST)