HEX
Server: Apache/2.4.41 (Ubuntu)
System: Linux ip-172-31-42-149 5.15.0-1084-aws #91~20.04.1-Ubuntu SMP Fri May 2 07:00:04 UTC 2025 aarch64
User: ubuntu (1000)
PHP: 7.4.33
Disabled: pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
Upload Files
File: /var/www/vhost/disk-apps/dev-telemedicina.teky.com.co/public/lib/jsPDF-1.3.2/doc/symbols/jsPDF.html
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
	<head>
		<meta http-equiv="content-type" content="text/html; charset=utf-8" />
		<meta name="generator" content="JsDoc Toolkit" />
		
		<title>JsDoc Reference - jsPDF</title>

		<style type="text/css">
			/* default.css */
body
{
	font: 12px "Lucida Grande", Tahoma, Arial, Helvetica, sans-serif;
	width: 800px;
}

.header
{
	clear: both;
	background-color: #ccc;
	padding: 8px;
}

h1
{
	font-size: 150%;
	font-weight: bold;
	padding: 0;
	margin: 1em 0 0 .3em;
}

hr
{
	border: none 0;
	border-top: 1px solid #7F8FB1;
	height: 1px;
}

pre.code
{
	display: block;
	padding: 8px;
	border: 1px dashed #ccc;
}

#index
{
	margin-top: 24px;
	float: left;
	width: 160px;
	position: absolute;
	left: 8px;
	background-color: #F3F3F3;
	padding: 8px;
}

#content
{
	margin-left: 190px;
	width: 600px;
}

.classList
{
	list-style-type: none;
	padding: 0;
	margin: 0 0 0 8px;
	font-family: arial, sans-serif;
	font-size: 1em;
	overflow: auto;
}

.classList li
{
	padding: 0;
	margin: 0 0 8px 0;
}

.summaryTable { width: 100%; }

h1.classTitle
{
	font-size:170%;
	line-height:130%;
}

h2 { font-size: 110%; }
caption, div.sectionTitle
{
	background-color: #7F8FB1;
	color: #fff;
	font-size:130%;
	text-align: left;
	padding: 2px 6px 2px 6px;
	border: 1px #7F8FB1 solid;
}

div.sectionTitle { margin-bottom: 8px; }
.summaryTable thead { display: none; }

.summaryTable td
{
	vertical-align: top;
	padding: 4px;
	border-bottom: 1px #7F8FB1 solid;
	border-right: 1px #7F8FB1 solid;
}

/*col#summaryAttributes {}*/
.summaryTable td.attributes
{
	border-left: 1px #7F8FB1 solid;
	width: 140px;
	text-align: right;
}

td.attributes, .fixedFont
{
	line-height: 15px;
	color: #002EBE;
	font-family: "Courier New",Courier,monospace;
	font-size: 13px;
}

.summaryTable td.nameDescription
{
	text-align: left;
	font-size: 13px;
	line-height: 15px;
}

.summaryTable td.nameDescription, .description
{
	line-height: 15px;
	padding: 4px;
	padding-left: 4px;
}

.summaryTable { margin-bottom: 8px; }

ul.inheritsList
{
	list-style: square;
	margin-left: 20px;
	padding-left: 0;
}

.detailList {
	margin-left: 20px; 
	line-height: 15px;
}
.detailList dt { margin-left: 20px; }

.detailList .heading
{
	font-weight: bold;
	padding-bottom: 6px;
	margin-left: 0;
}

.light, td.attributes, .light a:link, .light a:visited
{
	color: #777;
	font-style: italic;
}

.fineprint
{
	text-align: right;
	font-size: 10px;
}
		</style>
	</head>

	<body>
<!-- ============================== header ================================= -->	
		<!-- begin static/header.html -->
		<div id="header">
</div>
		<!-- end static/header.html -->

<!-- ============================== classes index ============================ -->
		<div id="index">
			<!-- begin publish.classesIndex -->
			<div align="center"><a href="../index.html">Class Index</a>
| <a href="../files.html">File Index</a></div>
<hr />
<h2>Classes</h2>
<ul class="classList">
	
	<li><i><a href="../symbols/_global_.html">_global_</a></i></li>
	
	<li><a href="../symbols/FontObject.html">FontObject</a></li>
	
	<li><a href="../symbols/jsPDF.html">jsPDF</a></li>
	
	<li><a href="../symbols/PubSub.html">PubSub</a></li>
	
</ul>
<hr />
			<!-- end publish.classesIndex -->
		</div>
		
		<div id="content">
<!-- ============================== class title ============================ -->
			<h1 class="classTitle">
				
				Class jsPDF
			</h1>

<!-- ============================== class summary ========================== -->			
			<p class="description">
				
				
			
				
				
				
					<br /><i>Defined in: </i> <a href="../symbols/src/c__work_jsPDF_jspdf.js.html">jspdf.js</a>.
				
			</p>

<!-- ============================== constructor summary ==================== -->			
			
			<table class="summaryTable" cellspacing="0" summary="A summary of the constructor documented in the class jsPDF.">
				<caption>Class Summary</caption>
				<thead>
					<tr>
						<th scope="col">Constructor Attributes</th>
						<th scope="col">Constructor Name and Description</th>
					</tr>
				</thead>
				<tbody>
					<tr>
						<td class="attributes">&nbsp;</td>
						<td class="nameDescription" >
							<div class="fixedFont">
								<b><a href="../symbols/jsPDF.html#constructor">jsPDF</a></b>(orientation, unit, format)
							</div>
							<div class="description">Creates new jsPDF document object instance</div>
						</td>
					</tr>
				</tbody>
			</table>
			

<!-- ============================== properties summary ===================== -->
			
				
				
				<table class="summaryTable" cellspacing="0" summary="A summary of the fields documented in the class jsPDF.">
					<caption>Field Summary</caption>
					<thead>
						<tr>
							<th scope="col">Field Attributes</th>
							<th scope="col">Field Name and Description</th>
						</tr>
					</thead>
					<tbody>
					
						<tr>
							<td class="attributes">&nbsp;</td>
							<td class="nameDescription">
								<div class="fixedFont">
								jsPDF.<b><a href="../symbols/jsPDF.html#.API">API</a></b>
								</div>
								<div class="description">jsPDF.API is a STATIC property of jsPDF class.</div>
							</td>
						</tr>
					
						<tr>
							<td class="attributes">&nbsp;</td>
							<td class="nameDescription">
								<div class="fixedFont">
								<b><a href="../symbols/jsPDF.html#CapJoinStyles">CapJoinStyles</a></b>
								</div>
								<div class="description">Is an Object providing a mapping from human-readable to
	integer flag values designating the varieties of line cap 
	and join styles.</div>
							</td>
						</tr>
					
					</tbody>
				</table>
				
				
				
			

<!-- ============================== methods summary ======================== -->
			
				
				
				<table class="summaryTable" cellspacing="0" summary="A summary of the methods documented in the class jsPDF.">
					<caption>Method Summary</caption>
					<thead>
						<tr>
							<th scope="col">Method Attributes</th>
							<th scope="col">Method Name and Description</th>
						</tr>
					</thead>
					<tbody>
					
						<tr>
							<td class="attributes">&nbsp;</td>
							<td class="nameDescription">
								<div class="fixedFont"><b><a href="../symbols/jsPDF.html#addPage">addPage</a></b>()
								</div>
								<div class="description">Adds (and transfers the focus to) new page to the PDF document.</div>
							</td>
						</tr>
					
						<tr>
							<td class="attributes">&nbsp;</td>
							<td class="nameDescription">
								<div class="fixedFont"><b><a href="../symbols/jsPDF.html#circle">circle</a></b>(x, y, r, style)
								</div>
								<div class="description">Adds an circle to PDF</div>
							</td>
						</tr>
					
						<tr>
							<td class="attributes">&nbsp;</td>
							<td class="nameDescription">
								<div class="fixedFont"><b><a href="../symbols/jsPDF.html#ellipse">ellipse</a></b>(x, y, rx, rx, style)
								</div>
								<div class="description">Adds an ellipse to PDF</div>
							</td>
						</tr>
					
						<tr>
							<td class="attributes">&nbsp;</td>
							<td class="nameDescription">
								<div class="fixedFont"><b><a href="../symbols/jsPDF.html#getFontList">getFontList</a></b>()
								</div>
								<div class="description">Returns an object - a tree of fontName to fontStyle relationships available to 
	active PDF document.</div>
							</td>
						</tr>
					
						<tr>
							<td class="attributes">&nbsp;</td>
							<td class="nameDescription">
								<div class="fixedFont"><b><a href="../symbols/jsPDF.html#lines">lines</a></b>(lines, x, y, scale)
								</div>
								<div class="description">Adds series of curves (straight lines or cubic bezier curves) to canvas, starting at `x`, `y` coordinates.</div>
							</td>
						</tr>
					
						<tr>
							<td class="attributes">&nbsp;</td>
							<td class="nameDescription">
								<div class="fixedFont"><b><a href="../symbols/jsPDF.html#output">output</a></b>(type, options)
								</div>
								<div class="description">Generates the PDF document.</div>
							</td>
						</tr>
					
						<tr>
							<td class="attributes">&nbsp;</td>
							<td class="nameDescription">
								<div class="fixedFont"><b><a href="../symbols/jsPDF.html#rect">rect</a></b>(x, y, w, h, style)
								</div>
								<div class="description">Adds a rectangle to PDF</div>
							</td>
						</tr>
					
						<tr>
							<td class="attributes">&nbsp;</td>
							<td class="nameDescription">
								<div class="fixedFont"><b><a href="../symbols/jsPDF.html#setDrawColor">setDrawColor</a></b>(ch1, ch2, ch3, ch4)
								</div>
								<div class="description">Sets the stroke color for upcoming elements.</div>
							</td>
						</tr>
					
						<tr>
							<td class="attributes">&nbsp;</td>
							<td class="nameDescription">
								<div class="fixedFont"><b><a href="../symbols/jsPDF.html#setFillColor">setFillColor</a></b>(ch1, ch2, ch3, ch4)
								</div>
								<div class="description">Sets the fill color for upcoming elements.</div>
							</td>
						</tr>
					
						<tr>
							<td class="attributes">&nbsp;</td>
							<td class="nameDescription">
								<div class="fixedFont"><b><a href="../symbols/jsPDF.html#setFont">setFont</a></b>(fontName, fontStyle)
								</div>
								<div class="description">Sets text font face, variant for upcoming text elements.</div>
							</td>
						</tr>
					
						<tr>
							<td class="attributes">&nbsp;</td>
							<td class="nameDescription">
								<div class="fixedFont"><b><a href="../symbols/jsPDF.html#setFontSize">setFontSize</a></b>(size)
								</div>
								<div class="description">Sets font size for upcoming text elements.</div>
							</td>
						</tr>
					
						<tr>
							<td class="attributes">&nbsp;</td>
							<td class="nameDescription">
								<div class="fixedFont"><b><a href="../symbols/jsPDF.html#setFontStyle">setFontStyle</a></b>(style)
								</div>
								<div class="description">Switches font style or variant for upcoming text elements,
	while keeping the font face or family same.</div>
							</td>
						</tr>
					
						<tr>
							<td class="attributes">&nbsp;</td>
							<td class="nameDescription">
								<div class="fixedFont"><b><a href="../symbols/jsPDF.html#setLineCap">setLineCap</a></b>(style)
								</div>
								<div class="description">Sets the line cap styles
	See {jsPDF.CapJoinStyles} for variants</div>
							</td>
						</tr>
					
						<tr>
							<td class="attributes">&nbsp;</td>
							<td class="nameDescription">
								<div class="fixedFont"><b><a href="../symbols/jsPDF.html#setLineJoin">setLineJoin</a></b>(style)
								</div>
								<div class="description">Sets the line join styles
	See {jsPDF.CapJoinStyles} for variants</div>
							</td>
						</tr>
					
						<tr>
							<td class="attributes">&nbsp;</td>
							<td class="nameDescription">
								<div class="fixedFont"><b><a href="../symbols/jsPDF.html#setLineWidth">setLineWidth</a></b>(width)
								</div>
								<div class="description">Sets line width for upcoming lines.</div>
							</td>
						</tr>
					
						<tr>
							<td class="attributes">&nbsp;</td>
							<td class="nameDescription">
								<div class="fixedFont"><b><a href="../symbols/jsPDF.html#setProperties">setProperties</a></b>(A)
								</div>
								<div class="description">Adds a properties to the PDF document</div>
							</td>
						</tr>
					
						<tr>
							<td class="attributes">&nbsp;</td>
							<td class="nameDescription">
								<div class="fixedFont"><b><a href="../symbols/jsPDF.html#setTextColor">setTextColor</a></b>(r, g, b)
								</div>
								<div class="description">Sets the text color for upcoming elements.</div>
							</td>
						</tr>
					
						<tr>
							<td class="attributes">&nbsp;</td>
							<td class="nameDescription">
								<div class="fixedFont"><b><a href="../symbols/jsPDF.html#text">text</a></b>(text, x, y, flags)
								</div>
								<div class="description">Adds text to page.</div>
							</td>
						</tr>
					
						<tr>
							<td class="attributes">&nbsp;</td>
							<td class="nameDescription">
								<div class="fixedFont"><b><a href="../symbols/jsPDF.html#triangle">triangle</a></b>(x1, y1, x2, y2, x3, y3, style)
								</div>
								<div class="description">Adds a triangle to PDF</div>
							</td>
						</tr>
					
					</tbody>
				</table>
				
				
				
			
<!-- ============================== events summary ======================== -->
			

<!-- ============================== constructor details ==================== -->		
			
			<div class="details"><a name="constructor"> </a>
				<div class="sectionTitle">
					Class Detail
				</div>
				
				<div class="fixedFont">
						<b>jsPDF</b>(orientation, unit, format)
				</div>
				
				<div class="description">
					Creates new jsPDF document object instance
					
				</div>
				
				
				
				
					
						<dl class="detailList">
						<dt class="heading">Parameters:</dt>
						
							<dt>
								 <b>orientation</b>
								
							</dt>
								<dd>One of "portrait" or "landscape" (or shortcuts "p" (Default), "l")</dd>
						
							<dt>
								 <b>unit</b>
								
							</dt>
								<dd>Measurement unit to be used when coordinates are specified. One of "pt" (points), "mm" (Default), "cm", "in"</dd>
						
							<dt>
								 <b>format</b>
								
							</dt>
								<dd>One of 'a3', 'a4' (Default),'a5' ,'letter' ,'legal'</dd>
						
						</dl>
					
					
					
					
					
						<dl class="detailList">
						<dt class="heading">Returns:</dt>
						
								<dd><span class="light fixedFont">{<a href="../symbols/jsPDF.html">jsPDF</a>}</span> </dd>
						
						</dl>
					
					
					

			</div>
			

<!-- ============================== field details ========================== -->		
			
				<div class="sectionTitle">
					Field Detail
				</div>
				
					<a name=".API"> </a>
					<div class="fixedFont">
					
					
					<span class="light">jsPDF.</span><b>API</b>
					
					</div>
					<div class="description">
						jsPDF.API is a STATIC property of jsPDF class.
jsPDF.API is an object you can add methods and properties to.
The methods / properties you add will show up in new jsPDF objects.

One property is prepopulated. It is the 'events' Object. Plugin authors can add topics, callbacks to this object. These will be reassigned to all new instances of jsPDF. 
Examples: 
	jsPDF.API.events['initialized'] = function(){ 'this' is API object }
	jsPDF.API.events['addFont'] = function(added_font_object){ 'this' is API object }
						
						
					</div>
					
					
					
					<pre class="code">	jsPDF.API.mymethod = function(){
		// 'this' will be ref to internal API object. see jsPDF source
		// , so you can refer to built-in methods like so: 
		//	 this.line(....)
		//	 this.text(....)
	}
	var pdfdoc = new jsPDF()
	pdfdoc.mymethod() // <- !!!!!!</pre>
					
					

						
						
						
						

					<hr />
				
					<a name="CapJoinStyles"> </a>
					<div class="fixedFont">
					
					<span class="light">{Object}</span>
					<b>CapJoinStyles</b>
					
					</div>
					<div class="description">
						Is an Object providing a mapping from human-readable to
	integer flag values designating the varieties of line cap 
	and join styles.
						
						
					</div>
					
					

						
						
						
						

					
				
			

<!-- ============================== method details ========================= -->		
			
				<div class="sectionTitle">
					Method Detail
				</div>
				
					<a name="addPage"> </a>
					<div class="fixedFont">
					
					<span class="light">{<a href="../symbols/jsPDF.html">jsPDF</a>}</span>
					<b>addPage</b>()
					
					</div>
					<div class="description">
						Adds (and transfers the focus to) new page to the PDF document.
						
						
					</div>
					
					
					
						
						
						
						
						
							<dl class="detailList">
							<dt class="heading">Returns:</dt>
							
								<dd><span class="light fixedFont">{<a href="../symbols/jsPDF.html">jsPDF</a>}</span> </dd>
							
							</dl>
						
						
						

					<hr />
				
					<a name="circle"> </a>
					<div class="fixedFont">
					
					<span class="light">{<a href="../symbols/jsPDF.html">jsPDF</a>}</span>
					<b>circle</b>(x, y, r, style)
					
					</div>
					<div class="description">
						Adds an circle to PDF
						
						
					</div>
					
					
					
						
							<dl class="detailList">
							<dt class="heading">Parameters:</dt>
							
								<dt>
									<span class="light fixedFont">{Number}</span> <b>x</b>
									
								</dt>
								<dd>Coordinate (in units declared at inception of PDF document) against left edge of the page</dd>
							
								<dt>
									<span class="light fixedFont">{Number}</span> <b>y</b>
									
								</dt>
								<dd>Coordinate (in units declared at inception of PDF document) against upper edge of the page</dd>
							
								<dt>
									<span class="light fixedFont">{Number}</span> <b>r</b>
									
								</dt>
								<dd>Radius (in units declared at inception of PDF document)</dd>
							
								<dt>
									<span class="light fixedFont">{String}</span> <b>style</b>
									
								</dt>
								<dd>(Defaults to active fill/stroke style) A string signalling if stroke, fill or both are to be applied.</dd>
							
							</dl>
						
						
						
						
						
							<dl class="detailList">
							<dt class="heading">Returns:</dt>
							
								<dd><span class="light fixedFont">{<a href="../symbols/jsPDF.html">jsPDF</a>}</span> </dd>
							
							</dl>
						
						
						

					<hr />
				
					<a name="ellipse"> </a>
					<div class="fixedFont">
					
					<span class="light">{<a href="../symbols/jsPDF.html">jsPDF</a>}</span>
					<b>ellipse</b>(x, y, rx, rx, style)
					
					</div>
					<div class="description">
						Adds an ellipse to PDF
						
						
					</div>
					
					
					
						
							<dl class="detailList">
							<dt class="heading">Parameters:</dt>
							
								<dt>
									<span class="light fixedFont">{Number}</span> <b>x</b>
									
								</dt>
								<dd>Coordinate (in units declared at inception of PDF document) against left edge of the page</dd>
							
								<dt>
									<span class="light fixedFont">{Number}</span> <b>y</b>
									
								</dt>
								<dd>Coordinate (in units declared at inception of PDF document) against upper edge of the page</dd>
							
								<dt>
									<span class="light fixedFont">{Number}</span> <b>rx</b>
									
								</dt>
								<dd>Radius along x axis (in units declared at inception of PDF document)</dd>
							
								<dt>
									<span class="light fixedFont">{Number}</span> <b>rx</b>
									
								</dt>
								<dd>Radius along y axis (in units declared at inception of PDF document)</dd>
							
								<dt>
									<span class="light fixedFont">{String}</span> <b>style</b>
									
								</dt>
								<dd>(Defaults to active fill/stroke style) A string signalling if stroke, fill or both are to be applied.</dd>
							
							</dl>
						
						
						
						
						
							<dl class="detailList">
							<dt class="heading">Returns:</dt>
							
								<dd><span class="light fixedFont">{<a href="../symbols/jsPDF.html">jsPDF</a>}</span> </dd>
							
							</dl>
						
						
						

					<hr />
				
					<a name="getFontList"> </a>
					<div class="fixedFont">
					
					<span class="light">{Object}</span>
					<b>getFontList</b>()
					
					</div>
					<div class="description">
						Returns an object - a tree of fontName to fontStyle relationships available to 
	active PDF document.
						
						
					</div>
					
					
					
						
						
						
						
						
							<dl class="detailList">
							<dt class="heading">Returns:</dt>
							
								<dd><span class="light fixedFont">{Object}</span> Like {'times':['normal', 'italic', ... ], 'arial':['normal', 'bold', ... ], ... }</dd>
							
							</dl>
						
						
						

					<hr />
				
					<a name="lines"> </a>
					<div class="fixedFont">
					
					<span class="light">{<a href="../symbols/jsPDF.html">jsPDF</a>}</span>
					<b>lines</b>(lines, x, y, scale)
					
					</div>
					<div class="description">
						Adds series of curves (straight lines or cubic bezier curves) to canvas, starting at `x`, `y` coordinates.
	All data points in `lines` are relative to last line origin.
	`x`, `y` become x1,y1 for first line / curve in the set.
	For lines you only need to specify [x2, y2] - (ending point) vector against x1, y1 starting point.
	For bezier curves you need to specify [x2,y2,x3,y3,x4,y4] - vectors to control points 1, 2, ending point. All vectors are against the start of the curve - x1,y1.
						
						
					</div>
					
					
					
					<pre class="code">.lines([[2,2],[-2,2],[1,1,2,2,3,3],[2,1]], 212,110, 10) // line, line, bezier curve, line</pre>
					
					
					
						
							<dl class="detailList">
							<dt class="heading">Parameters:</dt>
							
								<dt>
									<span class="light fixedFont">{Array}</span> <b>lines</b>
									
								</dt>
								<dd>Array of *vector* shifts as pairs (lines) or sextets (cubic bezier curves).</dd>
							
								<dt>
									<span class="light fixedFont">{Number}</span> <b>x</b>
									
								</dt>
								<dd>Coordinate (in units declared at inception of PDF document) against left edge of the page</dd>
							
								<dt>
									<span class="light fixedFont">{Number}</span> <b>y</b>
									
								</dt>
								<dd>Coordinate (in units declared at inception of PDF document) against upper edge of the page</dd>
							
								<dt>
									<span class="light fixedFont">{Number}</span> <b>scale</b>
									
								</dt>
								<dd>(Defaults to [1.0,1.0]) x,y Scaling factor for all vectors. Elements can be any floating number Sub-one makes drawing smaller. Over-one grows the drawing. Negative flips the direction.</dd>
							
							</dl>
						
						
						
						
						
							<dl class="detailList">
							<dt class="heading">Returns:</dt>
							
								<dd><span class="light fixedFont">{<a href="../symbols/jsPDF.html">jsPDF</a>}</span> </dd>
							
							</dl>
						
						
						

					<hr />
				
					<a name="output"> </a>
					<div class="fixedFont">
					
					<span class="light">{<a href="../symbols/jsPDF.html">jsPDF</a>}</span>
					<b>output</b>(type, options)
					
					</div>
					<div class="description">
						Generates the PDF document.
	Possible values:
		datauristring (alias dataurlstring) - Data-Url-formatted data returned as string.
		datauri (alias datauri) - Data-Url-formatted data pushed into current window's location (effectively reloading the window with contents of the PDF).
	
	If `type` argument is undefined, output is raw body of resulting PDF returned as a string.
						
						
					</div>
					
					
					
						
							<dl class="detailList">
							<dt class="heading">Parameters:</dt>
							
								<dt>
									<span class="light fixedFont">{String}</span> <b>type</b>
									
								</dt>
								<dd>A string identifying one of the possible output types.</dd>
							
								<dt>
									<span class="light fixedFont">{Object}</span> <b>options</b>
									
								</dt>
								<dd>An object providing some additional signalling to PDF generator.</dd>
							
							</dl>
						
						
						
						
						
							<dl class="detailList">
							<dt class="heading">Returns:</dt>
							
								<dd><span class="light fixedFont">{<a href="../symbols/jsPDF.html">jsPDF</a>}</span> </dd>
							
							</dl>
						
						
						

					<hr />
				
					<a name="rect"> </a>
					<div class="fixedFont">
					
					<span class="light">{<a href="../symbols/jsPDF.html">jsPDF</a>}</span>
					<b>rect</b>(x, y, w, h, style)
					
					</div>
					<div class="description">
						Adds a rectangle to PDF
						
						
					</div>
					
					
					
						
							<dl class="detailList">
							<dt class="heading">Parameters:</dt>
							
								<dt>
									<span class="light fixedFont">{Number}</span> <b>x</b>
									
								</dt>
								<dd>Coordinate (in units declared at inception of PDF document) against left edge of the page</dd>
							
								<dt>
									<span class="light fixedFont">{Number}</span> <b>y</b>
									
								</dt>
								<dd>Coordinate (in units declared at inception of PDF document) against upper edge of the page</dd>
							
								<dt>
									<span class="light fixedFont">{Number}</span> <b>w</b>
									
								</dt>
								<dd>Width (in units declared at inception of PDF document)</dd>
							
								<dt>
									<span class="light fixedFont">{Number}</span> <b>h</b>
									
								</dt>
								<dd>Height (in units declared at inception of PDF document)</dd>
							
								<dt>
									<span class="light fixedFont">{String}</span> <b>style</b>
									
								</dt>
								<dd>(Defaults to active fill/stroke style) A string signalling if stroke, fill or both are to be applied.</dd>
							
							</dl>
						
						
						
						
						
							<dl class="detailList">
							<dt class="heading">Returns:</dt>
							
								<dd><span class="light fixedFont">{<a href="../symbols/jsPDF.html">jsPDF</a>}</span> </dd>
							
							</dl>
						
						
						

					<hr />
				
					<a name="setDrawColor"> </a>
					<div class="fixedFont">
					
					<span class="light">{<a href="../symbols/jsPDF.html">jsPDF</a>}</span>
					<b>setDrawColor</b>(ch1, ch2, ch3, ch4)
					
					</div>
					<div class="description">
						Sets the stroke color for upcoming elements. 

	Depending on the number of arguments given, Gray, RGB, or CMYK
	color space is implied.

	When only ch1 is given, "Gray" color space is implied and it
	must be a value in the range from 0.00 (solid black) to to 1.00 (white)
	if values are communicated as String types, or in range from 0 (black)
	to 255 (white) if communicated as Number type.
	The RGB-like 0-255 range is provided for backward compatibility.

	When only ch1,ch2,ch3 are given, "RGB" color space is implied and each
	value must be in the range from 0.00 (minimum intensity) to to 1.00 
	(max intensity) if values are communicated as String types, or 
	from 0 (min intensity) to to 255 (max intensity) if values are communicated
	as Number types.
	The RGB-like 0-255 range is provided for backward compatibility.

	When ch1,ch2,ch3,ch4 are given, "CMYK" color space is implied and each
	value must be a in the range from 0.00 (0% concentration) to to 
	1.00 (100% concentration)

	Because JavaScript treats fixed point numbers badly (rounds to 
	floating point nearest to binary representation) it is highly advised to
	communicate the fractional numbers as String types, not JavaScript Number type.
						
						
					</div>
					
					
					
						
							<dl class="detailList">
							<dt class="heading">Parameters:</dt>
							
								<dt>
									<span class="light fixedFont">{Number|String}</span> <b>ch1</b>
									
								</dt>
								<dd>Color channel value</dd>
							
								<dt>
									<span class="light fixedFont">{Number|String}</span> <b>ch2</b>
									
								</dt>
								<dd>Color channel value</dd>
							
								<dt>
									<span class="light fixedFont">{Number|String}</span> <b>ch3</b>
									
								</dt>
								<dd>Color channel value</dd>
							
								<dt>
									<span class="light fixedFont">{Number|String}</span> <b>ch4</b>
									
								</dt>
								<dd>Color channel value</dd>
							
							</dl>
						
						
						
						
						
							<dl class="detailList">
							<dt class="heading">Returns:</dt>
							
								<dd><span class="light fixedFont">{<a href="../symbols/jsPDF.html">jsPDF</a>}</span> </dd>
							
							</dl>
						
						
						

					<hr />
				
					<a name="setFillColor"> </a>
					<div class="fixedFont">
					
					<span class="light">{<a href="../symbols/jsPDF.html">jsPDF</a>}</span>
					<b>setFillColor</b>(ch1, ch2, ch3, ch4)
					
					</div>
					<div class="description">
						Sets the fill color for upcoming elements. 
	
	Depending on the number of arguments given, Gray, RGB, or CMYK
	color space is implied.

	When only ch1 is given, "Gray" color space is implied and it
	must be a value in the range from 0.00 (solid black) to to 1.00 (white)
	if values are communicated as String types, or in range from 0 (black)
	to 255 (white) if communicated as Number type.
	The RGB-like 0-255 range is provided for backward compatibility.

	When only ch1,ch2,ch3 are given, "RGB" color space is implied and each
	value must be in the range from 0.00 (minimum intensity) to to 1.00 
	(max intensity) if values are communicated as String types, or 
	from 0 (min intensity) to to 255 (max intensity) if values are communicated
	as Number types.
	The RGB-like 0-255 range is provided for backward compatibility.

	When ch1,ch2,ch3,ch4 are given, "CMYK" color space is implied and each
	value must be a in the range from 0.00 (0% concentration) to to 
	1.00 (100% concentration)

	Because JavaScript treats fixed point numbers badly (rounds to 
	floating point nearest to binary representation) it is highly advised to
	communicate the fractional numbers as String types, not JavaScript Number type.
						
						
					</div>
					
					
					
						
							<dl class="detailList">
							<dt class="heading">Parameters:</dt>
							
								<dt>
									<span class="light fixedFont">{Number|String}</span> <b>ch1</b>
									
								</dt>
								<dd>Color channel value</dd>
							
								<dt>
									<span class="light fixedFont">{Number|String}</span> <b>ch2</b>
									
								</dt>
								<dd>Color channel value</dd>
							
								<dt>
									<span class="light fixedFont">{Number|String}</span> <b>ch3</b>
									
								</dt>
								<dd>Color channel value</dd>
							
								<dt>
									<span class="light fixedFont">{Number|String}</span> <b>ch4</b>
									
								</dt>
								<dd>Color channel value</dd>
							
							</dl>
						
						
						
						
						
							<dl class="detailList">
							<dt class="heading">Returns:</dt>
							
								<dd><span class="light fixedFont">{<a href="../symbols/jsPDF.html">jsPDF</a>}</span> </dd>
							
							</dl>
						
						
						

					<hr />
				
					<a name="setFont"> </a>
					<div class="fixedFont">
					
					<span class="light">{<a href="../symbols/jsPDF.html">jsPDF</a>}</span>
					<b>setFont</b>(fontName, fontStyle)
					
					</div>
					<div class="description">
						Sets text font face, variant for upcoming text elements.
	See output of jsPDF.getFontList() for possible font names, styles.
						
						
					</div>
					
					
					
						
							<dl class="detailList">
							<dt class="heading">Parameters:</dt>
							
								<dt>
									<span class="light fixedFont">{String}</span> <b>fontName</b>
									
								</dt>
								<dd>Font name or family. Example: "times"</dd>
							
								<dt>
									<span class="light fixedFont">{String}</span> <b>fontStyle</b>
									
								</dt>
								<dd>Font style or variant. Example: "italic"</dd>
							
							</dl>
						
						
						
						
						
							<dl class="detailList">
							<dt class="heading">Returns:</dt>
							
								<dd><span class="light fixedFont">{<a href="../symbols/jsPDF.html">jsPDF</a>}</span> </dd>
							
							</dl>
						
						
						

					<hr />
				
					<a name="setFontSize"> </a>
					<div class="fixedFont">
					
					<span class="light">{<a href="../symbols/jsPDF.html">jsPDF</a>}</span>
					<b>setFontSize</b>(size)
					
					</div>
					<div class="description">
						Sets font size for upcoming text elements.
						
						
					</div>
					
					
					
						
							<dl class="detailList">
							<dt class="heading">Parameters:</dt>
							
								<dt>
									<span class="light fixedFont">{Number}</span> <b>size</b>
									
								</dt>
								<dd>Font size in points.</dd>
							
							</dl>
						
						
						
						
						
							<dl class="detailList">
							<dt class="heading">Returns:</dt>
							
								<dd><span class="light fixedFont">{<a href="../symbols/jsPDF.html">jsPDF</a>}</span> </dd>
							
							</dl>
						
						
						

					<hr />
				
					<a name="setFontStyle"> </a>
					<div class="fixedFont">
					
					<span class="light">{<a href="../symbols/jsPDF.html">jsPDF</a>}</span>
					<b>setFontStyle</b>(style)
					
					</div>
					<div class="description">
						Switches font style or variant for upcoming text elements,
	while keeping the font face or family same.
	See output of jsPDF.getFontList() for possible font names, styles.
						
						
					</div>
					
					
					
						
							<dl class="detailList">
							<dt class="heading">Parameters:</dt>
							
								<dt>
									<span class="light fixedFont">{String}</span> <b>style</b>
									
								</dt>
								<dd>Font style or variant. Example: "italic"</dd>
							
							</dl>
						
						
						
						
						
							<dl class="detailList">
							<dt class="heading">Returns:</dt>
							
								<dd><span class="light fixedFont">{<a href="../symbols/jsPDF.html">jsPDF</a>}</span> </dd>
							
							</dl>
						
						
						

					<hr />
				
					<a name="setLineCap"> </a>
					<div class="fixedFont">
					
					<span class="light">{<a href="../symbols/jsPDF.html">jsPDF</a>}</span>
					<b>setLineCap</b>(style)
					
					</div>
					<div class="description">
						Sets the line cap styles
	See {jsPDF.CapJoinStyles} for variants
						
						
					</div>
					
					
					
						
							<dl class="detailList">
							<dt class="heading">Parameters:</dt>
							
								<dt>
									<span class="light fixedFont">{String|Number}</span> <b>style</b>
									
								</dt>
								<dd>A string or number identifying the type of line cap</dd>
							
							</dl>
						
						
						
						
						
							<dl class="detailList">
							<dt class="heading">Returns:</dt>
							
								<dd><span class="light fixedFont">{<a href="../symbols/jsPDF.html">jsPDF</a>}</span> </dd>
							
							</dl>
						
						
						

					<hr />
				
					<a name="setLineJoin"> </a>
					<div class="fixedFont">
					
					<span class="light">{<a href="../symbols/jsPDF.html">jsPDF</a>}</span>
					<b>setLineJoin</b>(style)
					
					</div>
					<div class="description">
						Sets the line join styles
	See {jsPDF.CapJoinStyles} for variants
						
						
					</div>
					
					
					
						
							<dl class="detailList">
							<dt class="heading">Parameters:</dt>
							
								<dt>
									<span class="light fixedFont">{String|Number}</span> <b>style</b>
									
								</dt>
								<dd>A string or number identifying the type of line join</dd>
							
							</dl>
						
						
						
						
						
							<dl class="detailList">
							<dt class="heading">Returns:</dt>
							
								<dd><span class="light fixedFont">{<a href="../symbols/jsPDF.html">jsPDF</a>}</span> </dd>
							
							</dl>
						
						
						

					<hr />
				
					<a name="setLineWidth"> </a>
					<div class="fixedFont">
					
					<span class="light">{<a href="../symbols/jsPDF.html">jsPDF</a>}</span>
					<b>setLineWidth</b>(width)
					
					</div>
					<div class="description">
						Sets line width for upcoming lines.
						
						
					</div>
					
					
					
						
							<dl class="detailList">
							<dt class="heading">Parameters:</dt>
							
								<dt>
									<span class="light fixedFont">{Number}</span> <b>width</b>
									
								</dt>
								<dd>Line width (in units declared at inception of PDF document)</dd>
							
							</dl>
						
						
						
						
						
							<dl class="detailList">
							<dt class="heading">Returns:</dt>
							
								<dd><span class="light fixedFont">{<a href="../symbols/jsPDF.html">jsPDF</a>}</span> </dd>
							
							</dl>
						
						
						

					<hr />
				
					<a name="setProperties"> </a>
					<div class="fixedFont">
					
					<span class="light">{<a href="../symbols/jsPDF.html">jsPDF</a>}</span>
					<b>setProperties</b>(A)
					
					</div>
					<div class="description">
						Adds a properties to the PDF document
						
						
					</div>
					
					
					
						
							<dl class="detailList">
							<dt class="heading">Parameters:</dt>
							
								<dt>
									<span class="light fixedFont">{Object}</span> <b>A</b>
									
								</dt>
								<dd>property_name-to-property_value object structure.</dd>
							
							</dl>
						
						
						
						
						
							<dl class="detailList">
							<dt class="heading">Returns:</dt>
							
								<dd><span class="light fixedFont">{<a href="../symbols/jsPDF.html">jsPDF</a>}</span> </dd>
							
							</dl>
						
						
						

					<hr />
				
					<a name="setTextColor"> </a>
					<div class="fixedFont">
					
					<span class="light">{<a href="../symbols/jsPDF.html">jsPDF</a>}</span>
					<b>setTextColor</b>(r, g, b)
					
					</div>
					<div class="description">
						Sets the text color for upcoming elements. 
	If only one, first argument is given,
	treats the value as gray-scale color value.
						
						
					</div>
					
					
					
						
							<dl class="detailList">
							<dt class="heading">Parameters:</dt>
							
								<dt>
									<span class="light fixedFont">{Number}</span> <b>r</b>
									
								</dt>
								<dd>Red channel color value in range 0-255</dd>
							
								<dt>
									<span class="light fixedFont">{Number}</span> <b>g</b>
									
								</dt>
								<dd>Green channel color value in range 0-255</dd>
							
								<dt>
									<span class="light fixedFont">{Number}</span> <b>b</b>
									
								</dt>
								<dd>Blue channel color value in range 0-255</dd>
							
							</dl>
						
						
						
						
						
							<dl class="detailList">
							<dt class="heading">Returns:</dt>
							
								<dd><span class="light fixedFont">{<a href="../symbols/jsPDF.html">jsPDF</a>}</span> </dd>
							
							</dl>
						
						
						

					<hr />
				
					<a name="text"> </a>
					<div class="fixedFont">
					
					<span class="light">{<a href="../symbols/jsPDF.html">jsPDF</a>}</span>
					<b>text</b>(text, x, y, flags)
					
					</div>
					<div class="description">
						Adds text to page. Supports adding multiline text when 'text' argument is an Array of Strings.
						
						
					</div>
					
					
					
						
							<dl class="detailList">
							<dt class="heading">Parameters:</dt>
							
								<dt>
									<span class="light fixedFont">{String|Array}</span> <b>text</b>
									
								</dt>
								<dd>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.</dd>
							
								<dt>
									<span class="light fixedFont">{Number}</span> <b>x</b>
									
								</dt>
								<dd>Coordinate (in units declared at inception of PDF document) against left edge of the page</dd>
							
								<dt>
									<span class="light fixedFont">{Number}</span> <b>y</b>
									
								</dt>
								<dd>Coordinate (in units declared at inception of PDF document) against upper edge of the page</dd>
							
								<dt>
									<span class="light fixedFont">{Object}</span> <b>flags</b>
									
								</dt>
								<dd>Collection of settings signalling how the text must be encoded. Defaults are sane. If you think you want to pass some flags, you likely can read the source.</dd>
							
							</dl>
						
						
						
						
						
							<dl class="detailList">
							<dt class="heading">Returns:</dt>
							
								<dd><span class="light fixedFont">{<a href="../symbols/jsPDF.html">jsPDF</a>}</span> </dd>
							
							</dl>
						
						
						

					<hr />
				
					<a name="triangle"> </a>
					<div class="fixedFont">
					
					<span class="light">{<a href="../symbols/jsPDF.html">jsPDF</a>}</span>
					<b>triangle</b>(x1, y1, x2, y2, x3, y3, style)
					
					</div>
					<div class="description">
						Adds a triangle to PDF
						
						
					</div>
					
					
					
						
							<dl class="detailList">
							<dt class="heading">Parameters:</dt>
							
								<dt>
									<span class="light fixedFont">{Number}</span> <b>x1</b>
									
								</dt>
								<dd>Coordinate (in units declared at inception of PDF document) against left edge of the page</dd>
							
								<dt>
									<span class="light fixedFont">{Number}</span> <b>y1</b>
									
								</dt>
								<dd>Coordinate (in units declared at inception of PDF document) against upper edge of the page</dd>
							
								<dt>
									<span class="light fixedFont">{Number}</span> <b>x2</b>
									
								</dt>
								<dd>Coordinate (in units declared at inception of PDF document) against left edge of the page</dd>
							
								<dt>
									<span class="light fixedFont">{Number}</span> <b>y2</b>
									
								</dt>
								<dd>Coordinate (in units declared at inception of PDF document) against upper edge of the page</dd>
							
								<dt>
									<span class="light fixedFont">{Number}</span> <b>x3</b>
									
								</dt>
								<dd>Coordinate (in units declared at inception of PDF document) against left edge of the page</dd>
							
								<dt>
									<span class="light fixedFont">{Number}</span> <b>y3</b>
									
								</dt>
								<dd>Coordinate (in units declared at inception of PDF document) against upper edge of the page</dd>
							
								<dt>
									<span class="light fixedFont">{String}</span> <b>style</b>
									
								</dt>
								<dd>(Defaults to active fill/stroke style) A string signalling if stroke, fill or both are to be applied.</dd>
							
							</dl>
						
						
						
						
						
							<dl class="detailList">
							<dt class="heading">Returns:</dt>
							
								<dd><span class="light fixedFont">{<a href="../symbols/jsPDF.html">jsPDF</a>}</span> </dd>
							
							</dl>
						
						
						

					
				
			
			
<!-- ============================== event details ========================= -->		
			
			
			<hr />
		</div>

		
<!-- ============================== footer ================================= -->
		<div class="fineprint" style="clear:both">
			
			Documentation generated by <a href="http://code.google.com/p/jsdoc-toolkit/" target="_blank">JsDoc Toolkit</a> 2.4.0 on Mon Oct 15 2012 22:41:49 GMT-0700 (PDT)
		</div>
	</body>
</html>