<div class="header-panel member">
<h2><span class="identifier">PdfPaths</span> Class</h2>
<dl class="dl-horizontal">
<dt>File</dt><dd class="filename">wijmo.pdf.js</dd>
<dt>Module</dt><dd><a href="topic/wijmo.pdf.Module.html"><span class="identifier">wijmo.pdf</span></a></dd>
</dl>
<div class="comment"><p>Provides methods for creating graphics paths and drawing them or using them for clipping. </p>
<p>Path creation method calls must be finished with the <a href="topic/wijmo.pdf.PdfPaths.Class.html/#stroke"><span class="identifier">stroke</span></a>,
<a href="topic/wijmo.pdf.PdfPaths.Class.html/#fill"><span class="identifier">fill</span></a>, <a href="topic/wijmo.pdf.PdfPaths.Class.html/#fillAndStroke"><span class="identifier">fillAndStroke</span></a> or <a href="topic/wijmo.pdf.PdfPaths.Class.html/#clip"><span class="identifier">clip</span></a> method.
Any document methods which don't apply directly to path creation/ drawing/ clipping 
(changing a pen, drawing a text, saving the graphics state etc) are prohibited to use
until the path is finished.
The <a href="topic/wijmo.pdf.PdfPaths.Class.html/#lineTo"><span class="identifier">lineTo</span></a>, <a href="topic/wijmo.pdf.PdfPaths.Class.html/#bezierCurveTo"><span class="identifier">bezierCurveTo</span></a> and <a href="topic/wijmo.pdf.PdfPaths.Class.html/#quadraticCurveTo"><span class="identifier">quadraticCurveTo</span></a> 
methods should not start the path, they must be preceded with the <a href="topic/wijmo.pdf.PdfPaths.Class.html/#moveTo"><span class="identifier">moveTo</span></a>.</p>
<p>The methods are chainable:
</p>

<pre>doc.paths.moveTo(0, 0).lineTo(100, 100).stroke();</pre>
<p>This class is not intended to be instantiated in your code.</p></div>
</div>
<div class="member-panel class members" ng-class="{ 'show-inherited' : ctx.showInherited, 'show-raisers' : ctx.showRaisers }">
<h3 class="node">Constructor</h3>
<ul>
<li class="mmethod"><a href="topic/wijmo.pdf.PdfPaths.Class.html/#constructor">constructor</a></li>
</ul>
<h3 class="node">Methods</h3>
<ul>
<li class="mmethod"><a href="topic/wijmo.pdf.PdfPaths.Class.html/#bezierCurveTo">bezierCurveTo</a></li>
<li class="mmethod"><a href="topic/wijmo.pdf.PdfPaths.Class.html/#circle">circle</a></li>
<li class="mmethod"><a href="topic/wijmo.pdf.PdfPaths.Class.html/#clip">clip</a></li>
<li class="mmethod"><a href="topic/wijmo.pdf.PdfPaths.Class.html/#closePath">closePath</a></li>
<li class="mmethod"><a href="topic/wijmo.pdf.PdfPaths.Class.html/#ellipse">ellipse</a></li>
<li class="mmethod"><a href="topic/wijmo.pdf.PdfPaths.Class.html/#fill">fill</a></li>
<li class="mmethod"><a href="topic/wijmo.pdf.PdfPaths.Class.html/#fillAndStroke">fillAndStroke</a></li>
<li class="mmethod"><a href="topic/wijmo.pdf.PdfPaths.Class.html/#lineTo">lineTo</a></li>
<li class="mmethod"><a href="topic/wijmo.pdf.PdfPaths.Class.html/#moveTo">moveTo</a></li>
<li class="mmethod"><a href="topic/wijmo.pdf.PdfPaths.Class.html/#polygon">polygon</a></li>
<li class="mmethod"><a href="topic/wijmo.pdf.PdfPaths.Class.html/#quadraticCurveTo">quadraticCurveTo</a></li>
<li class="mmethod"><a href="topic/wijmo.pdf.PdfPaths.Class.html/#rect">rect</a></li>
<li class="mmethod"><a href="topic/wijmo.pdf.PdfPaths.Class.html/#roundedRect">roundedRect</a></li>
<li class="mmethod"><a href="topic/wijmo.pdf.PdfPaths.Class.html/#stroke">stroke</a></li>
<li class="mmethod"><a href="topic/wijmo.pdf.PdfPaths.Class.html/#svgPath">svgPath</a></li>
</ul>
</div>
<h3>Constructor</h3>
<div id="constructor" class="member-panel mmethod">
<h3>constructor</h3>
<pre>constructor(doc: <a href="topic/wijmo.pdf.PdfDocument.Class.html"><span class="identifier">PdfDocument</span></a>, offset: <a href="topic/wijmo.Point.Class.html"><span class="identifier">Point</span></a>): <a href="topic/wijmo.pdf.PdfPaths.Class.html"><span class="identifier">PdfPaths</span></a></pre>
<div class="comment"><p>Initializes a new instance of the <a href="topic/wijmo.pdf.PdfPaths.Class.html"><span class="identifier">PdfPaths</span></a> class.</p></div>
<dl class="dl-horizontal">
  <dt>Parameters</dt><dd></dd>
</dl>
<ul>
<li><b>doc</b>: <a href="topic/wijmo.pdf.PdfDocument.Class.html"><span class="identifier">PdfDocument</span></a><br/><p>Document.</p></li><li><b>offset</b>: <a href="topic/wijmo.Point.Class.html"><span class="identifier">Point</span></a><br/><p>Offset.</p></li></ul>
<dl class="dl-horizontal">
  <dt>Returns</dt><dd><a href="topic/wijmo.pdf.PdfPaths.Class.html"><span class="identifier">PdfPaths</span></a></dd>
</dl>
</div>
<h3 class="node">Methods</h3>
<div class="member-list" ng-class="{ 'show-inherited' : ctx.showInherited, 'show-raisers' : ctx.showRaisers }">
<div id="bezierCurveTo" class="member-panel mmethod">
<h3>bezierCurveTo</h3>
<pre>bezierCurveTo(cp1x: <a href="https://developer.mozilla.org/en/docs/Web/JavaScript/Reference/Global_Objects/Number" target="_blank"><span class="identifier">number</span></a>, cp1y: <a href="https://developer.mozilla.org/en/docs/Web/JavaScript/Reference/Global_Objects/Number" target="_blank"><span class="identifier">number</span></a>, cp2x: <a href="https://developer.mozilla.org/en/docs/Web/JavaScript/Reference/Global_Objects/Number" target="_blank"><span class="identifier">number</span></a>, cp2y: <a href="https://developer.mozilla.org/en/docs/Web/JavaScript/Reference/Global_Objects/Number" target="_blank"><span class="identifier">number</span></a>, x: <a href="https://developer.mozilla.org/en/docs/Web/JavaScript/Reference/Global_Objects/Number" target="_blank"><span class="identifier">number</span></a>, y: <a href="https://developer.mozilla.org/en/docs/Web/JavaScript/Reference/Global_Objects/Number" target="_blank"><span class="identifier">number</span></a>): <a href="topic/wijmo.pdf.PdfPaths.Class.html"><span class="identifier">PdfPaths</span></a></pre>
<div class="comment"><p>Draws a bezier curve from the current point to a new point using the (cp1x, cp1y)
and (cp2x, cp2y) as the control points.</p>
<p>The new current point is (x, y).</p></div>
<dl class="dl-horizontal">
  <dt>Parameters</dt><dd></dd>
</dl>
<ul>
<li><b>cp1x</b>: <a href="https://developer.mozilla.org/en/docs/Web/JavaScript/Reference/Global_Objects/Number" target="_blank"><span class="identifier">number</span></a><br/><p>The X-coordinate of the first control point, in points.</p></li><li><b>cp1y</b>: <a href="https://developer.mozilla.org/en/docs/Web/JavaScript/Reference/Global_Objects/Number" target="_blank"><span class="identifier">number</span></a><br/><p>The Y-coordinate of the first control point, in points.</p></li><li><b>cp2x</b>: <a href="https://developer.mozilla.org/en/docs/Web/JavaScript/Reference/Global_Objects/Number" target="_blank"><span class="identifier">number</span></a><br/><p>The X-coordinate of the second control point, in points.</p></li><li><b>cp2y</b>: <a href="https://developer.mozilla.org/en/docs/Web/JavaScript/Reference/Global_Objects/Number" target="_blank"><span class="identifier">number</span></a><br/><p>The Y-coordinate of the second control point, in points.</p></li><li><b>x</b>: <a href="https://developer.mozilla.org/en/docs/Web/JavaScript/Reference/Global_Objects/Number" target="_blank"><span class="identifier">number</span></a><br/><p>The X-coordinate of the new point, in points.</p></li><li><b>y</b>: <a href="https://developer.mozilla.org/en/docs/Web/JavaScript/Reference/Global_Objects/Number" target="_blank"><span class="identifier">number</span></a><br/><p>The Y-coordinate of the new point, in points.</p></li></ul>
<dl class="dl-horizontal">
  <dt>Returns</dt><dd><a href="topic/wijmo.pdf.PdfPaths.Class.html"><span class="identifier">PdfPaths</span></a></dd>
</dl>
</div>
<div id="circle" class="member-panel mmethod">
<h3>circle</h3>
<pre>circle(x: <a href="https://developer.mozilla.org/en/docs/Web/JavaScript/Reference/Global_Objects/Number" target="_blank"><span class="identifier">number</span></a>, y: <a href="https://developer.mozilla.org/en/docs/Web/JavaScript/Reference/Global_Objects/Number" target="_blank"><span class="identifier">number</span></a>, radius: <a href="https://developer.mozilla.org/en/docs/Web/JavaScript/Reference/Global_Objects/Number" target="_blank"><span class="identifier">number</span></a>): <a href="topic/wijmo.pdf.PdfPaths.Class.html"><span class="identifier">PdfPaths</span></a></pre>
<div class="comment"><p>Draws a circle.</p></div>
<dl class="dl-horizontal">
  <dt>Parameters</dt><dd></dd>
</dl>
<ul>
<li><b>x</b>: <a href="https://developer.mozilla.org/en/docs/Web/JavaScript/Reference/Global_Objects/Number" target="_blank"><span class="identifier">number</span></a><br/><p>The X-coordinate of the center of the circle, in points.</p></li><li><b>y</b>: <a href="https://developer.mozilla.org/en/docs/Web/JavaScript/Reference/Global_Objects/Number" target="_blank"><span class="identifier">number</span></a><br/><p>The Y-coordinate of the center of the circle, in points.</p></li><li><b>radius</b>: <a href="https://developer.mozilla.org/en/docs/Web/JavaScript/Reference/Global_Objects/Number" target="_blank"><span class="identifier">number</span></a><br/><p>The radius of the circle, in points.</p></li></ul>
<dl class="dl-horizontal">
  <dt>Returns</dt><dd><a href="topic/wijmo.pdf.PdfPaths.Class.html"><span class="identifier">PdfPaths</span></a></dd>
</dl>
</div>
<div id="clip" class="member-panel mmethod">
<h3>clip</h3>
<pre>clip(rule?: <a href="topic/wijmo.pdf.PdfFillRule.Enum.html"><span class="identifier">PdfFillRule</span></a>): <a href="topic/wijmo.pdf.PdfPaths.Class.html"><span class="identifier">PdfPaths</span></a></pre>
<div class="comment"><p>Creates a clipping path used to limit the regions of the page affected by 
painting operators.</p></div>
<dl class="dl-horizontal">
  <dt>Parameters</dt><dd></dd>
</dl>
<ul>
<li><b>rule</b>: <a href="topic/wijmo.pdf.PdfFillRule.Enum.html"><span class="identifier">PdfFillRule</span></a> <span class="badge">Optional</span><br/><p>The fill rule to use.</p></li></ul>
<dl class="dl-horizontal">
  <dt>Returns</dt><dd><a href="topic/wijmo.pdf.PdfPaths.Class.html"><span class="identifier">PdfPaths</span></a></dd>
</dl>
</div>
<div id="closePath" class="member-panel mmethod">
<h3>closePath</h3>
<pre>closePath(): <a href="topic/wijmo.pdf.PdfPaths.Class.html"><span class="identifier">PdfPaths</span></a></pre>
<div class="comment"><p>Closes the current path and draws a line from the current point to the initial
point of the current path.</p></div>
<dl class="dl-horizontal">
  <dt>Returns</dt><dd><a href="topic/wijmo.pdf.PdfPaths.Class.html"><span class="identifier">PdfPaths</span></a></dd>
</dl>
</div>
<div id="ellipse" class="member-panel mmethod">
<h3>ellipse</h3>
<pre>ellipse(x: <a href="https://developer.mozilla.org/en/docs/Web/JavaScript/Reference/Global_Objects/Number" target="_blank"><span class="identifier">number</span></a>, y: <a href="https://developer.mozilla.org/en/docs/Web/JavaScript/Reference/Global_Objects/Number" target="_blank"><span class="identifier">number</span></a>, radiusX: <a href="https://developer.mozilla.org/en/docs/Web/JavaScript/Reference/Global_Objects/Number" target="_blank"><span class="identifier">number</span></a>, radiusY?: <a href="https://developer.mozilla.org/en/docs/Web/JavaScript/Reference/Global_Objects/Number" target="_blank"><span class="identifier">number</span></a>): <a href="topic/wijmo.pdf.PdfPaths.Class.html"><span class="identifier">PdfPaths</span></a></pre>
<div class="comment"><p>Draws an ellipse.</p></div>
<dl class="dl-horizontal">
  <dt>Parameters</dt><dd></dd>
</dl>
<ul>
<li><b>x</b>: <a href="https://developer.mozilla.org/en/docs/Web/JavaScript/Reference/Global_Objects/Number" target="_blank"><span class="identifier">number</span></a><br/><p>The X-coordinate of the center of the ellipse, in points.</p></li><li><b>y</b>: <a href="https://developer.mozilla.org/en/docs/Web/JavaScript/Reference/Global_Objects/Number" target="_blank"><span class="identifier">number</span></a><br/><p>The Y-coordinate of the center of the ellipse, in points.</p></li><li><b>radiusX</b>: <a href="https://developer.mozilla.org/en/docs/Web/JavaScript/Reference/Global_Objects/Number" target="_blank"><span class="identifier">number</span></a><br/><p>The radius of the ellipse along the X-axis, in points.</p></li><li><b>radiusY</b>: <a href="https://developer.mozilla.org/en/docs/Web/JavaScript/Reference/Global_Objects/Number" target="_blank"><span class="identifier">number</span></a> <span class="badge">Optional</span><br/><p>The radius of the ellipse along the Y-axis, in points. 
If it is not provided, then it is assumed to be equal to radiusX.</p></li></ul>
<dl class="dl-horizontal">
  <dt>Returns</dt><dd><a href="topic/wijmo.pdf.PdfPaths.Class.html"><span class="identifier">PdfPaths</span></a></dd>
</dl>
</div>
<div id="fill" class="member-panel mmethod">
<h3>fill</h3>
<pre>fill(brushOrColor?: <span class="identifier">any</span>, rule?: <a href="topic/wijmo.pdf.PdfFillRule.Enum.html"><span class="identifier">PdfFillRule</span></a>): <a href="topic/wijmo.pdf.PdfPaths.Class.html"><span class="identifier">PdfPaths</span></a></pre>
<div class="comment"><p>Fills the path with the specified brush and rule.
If brush is not specified, then the default document brush will be used 
(see the <a href="topic/wijmo.pdf.PdfDocument.Class.html/#setBrush"><span class="identifier">setBrush</span></a> method).</p>
<p>The brushOrColor argument can accept the following values:
<ul>
  <li>A <a href="topic/wijmo.pdf.PdfBrush.Class.html"><span class="identifier">PdfBrush</span></a> object.</li>
  <li>
    A <a href="topic/wijmo.Color.Class.html"><span class="identifier">Color</span></a> object or any string acceptable by the <a href="topic/wijmo.Color.Class.html/#fromString"><span class="identifier">fromString</span></a> method. 
    In this case, the <a href="topic/wijmo.pdf.PdfBrush.Class.html"><span class="identifier">PdfBrush</span></a> object with the specified color will be created internally.
   </li>
</ul></p></div>
<dl class="dl-horizontal">
  <dt>Parameters</dt><dd></dd>
</dl>
<ul>
<li><b>brushOrColor</b>: <span class="identifier">any</span> <span class="badge">Optional</span><br/><p>The brush or color to use.</p></li><li><b>rule</b>: <a href="topic/wijmo.pdf.PdfFillRule.Enum.html"><span class="identifier">PdfFillRule</span></a> <span class="badge">Optional</span><br/><p>The fill rule to use.</p></li></ul>
<dl class="dl-horizontal">
  <dt>Returns</dt><dd><a href="topic/wijmo.pdf.PdfPaths.Class.html"><span class="identifier">PdfPaths</span></a></dd>
</dl>
</div>
<div id="fillAndStroke" class="member-panel mmethod">
<h3>fillAndStroke</h3>
<pre>fillAndStroke(brushOrColor?: <span class="identifier">any</span>, penOrColor?: <span class="identifier">any</span>, rule?: <a href="topic/wijmo.pdf.PdfFillRule.Enum.html"><span class="identifier">PdfFillRule</span></a>): <a href="topic/wijmo.pdf.PdfPaths.Class.html"><span class="identifier">PdfPaths</span></a></pre>
<div class="comment"><p>Fills and strokes the path with the specified brush, pen and rule.
If brush and pen is not specified, then the default document brush and pen will
be used (See the <a href="topic/wijmo.pdf.PdfDocument.Class.html/#setBrush"><span class="identifier">setBrush</span></a>, <a href="topic/wijmo.pdf.PdfDocument.Class.html/#setPen"><span class="identifier">setPen</span></a> methods).</p>
<p>The brushOrColor argument can accept the following values:
<ul>
  <li>A <a href="topic/wijmo.pdf.PdfBrush.Class.html"><span class="identifier">PdfBrush</span></a> object.</li>
  <li>
    A <a href="topic/wijmo.Color.Class.html"><span class="identifier">Color</span></a> object or any string acceptable by the <a href="topic/wijmo.Color.Class.html/#fromString"><span class="identifier">fromString</span></a> method. 
    In this case, the <a href="topic/wijmo.pdf.PdfBrush.Class.html"><span class="identifier">PdfBrush</span></a> object with the specified color will be created internally.
   </li>
</ul></p>
<p>The penOrColor argument can accept the following values:
<ul>
  <li>A <a href="topic/wijmo.pdf.PdfPen.Class.html"><span class="identifier">PdfPen</span></a> object.</li>
  <li>
    A <a href="topic/wijmo.Color.Class.html"><span class="identifier">Color</span></a> object or any string acceptable by the <a href="topic/wijmo.Color.Class.html/#fromString"><span class="identifier">fromString</span></a> method. 
    In this case, the <a href="topic/wijmo.pdf.PdfPen.Class.html"><span class="identifier">PdfPen</span></a> object with the specified color will be created internally.
  </li>
</ul></p></div>
<dl class="dl-horizontal">
  <dt>Parameters</dt><dd></dd>
</dl>
<ul>
<li><b>brushOrColor</b>: <span class="identifier">any</span> <span class="badge">Optional</span><br/><p>The brush or color to use.</p></li><li><b>penOrColor</b>: <span class="identifier">any</span> <span class="badge">Optional</span><br/><p>The pen or color to use.</p></li><li><b>rule</b>: <a href="topic/wijmo.pdf.PdfFillRule.Enum.html"><span class="identifier">PdfFillRule</span></a> <span class="badge">Optional</span><br/><p>The fill rule to use.</p></li></ul>
<dl class="dl-horizontal">
  <dt>Returns</dt><dd><a href="topic/wijmo.pdf.PdfPaths.Class.html"><span class="identifier">PdfPaths</span></a></dd>
</dl>
</div>
<div id="lineTo" class="member-panel mmethod">
<h3>lineTo</h3>
<pre>lineTo(x: <a href="https://developer.mozilla.org/en/docs/Web/JavaScript/Reference/Global_Objects/Number" target="_blank"><span class="identifier">number</span></a>, y: <a href="https://developer.mozilla.org/en/docs/Web/JavaScript/Reference/Global_Objects/Number" target="_blank"><span class="identifier">number</span></a>): <a href="topic/wijmo.pdf.PdfPaths.Class.html"><span class="identifier">PdfPaths</span></a></pre>
<div class="comment"><p>Draws a line from the current point to a new point.</p>
<p>The new current point is (x, y).</p></div>
<dl class="dl-horizontal">
  <dt>Parameters</dt><dd></dd>
</dl>
<ul>
<li><b>x</b>: <a href="https://developer.mozilla.org/en/docs/Web/JavaScript/Reference/Global_Objects/Number" target="_blank"><span class="identifier">number</span></a><br/><p>The X-coordinate of the new point, in points.</p></li><li><b>y</b>: <a href="https://developer.mozilla.org/en/docs/Web/JavaScript/Reference/Global_Objects/Number" target="_blank"><span class="identifier">number</span></a><br/><p>The Y-coordinate of the new point, in points.</p></li></ul>
<dl class="dl-horizontal">
  <dt>Returns</dt><dd><a href="topic/wijmo.pdf.PdfPaths.Class.html"><span class="identifier">PdfPaths</span></a></dd>
</dl>
</div>
<div id="moveTo" class="member-panel mmethod">
<h3>moveTo</h3>
<pre>moveTo(x: <a href="https://developer.mozilla.org/en/docs/Web/JavaScript/Reference/Global_Objects/Number" target="_blank"><span class="identifier">number</span></a>, y: <a href="https://developer.mozilla.org/en/docs/Web/JavaScript/Reference/Global_Objects/Number" target="_blank"><span class="identifier">number</span></a>): <a href="topic/wijmo.pdf.PdfPaths.Class.html"><span class="identifier">PdfPaths</span></a></pre>
<div class="comment"><p>Sets a new current point.</p></div>
<dl class="dl-horizontal">
  <dt>Parameters</dt><dd></dd>
</dl>
<ul>
<li><b>x</b>: <a href="https://developer.mozilla.org/en/docs/Web/JavaScript/Reference/Global_Objects/Number" target="_blank"><span class="identifier">number</span></a><br/><p>The X-coordinate of the new point, in points.</p></li><li><b>y</b>: <a href="https://developer.mozilla.org/en/docs/Web/JavaScript/Reference/Global_Objects/Number" target="_blank"><span class="identifier">number</span></a><br/><p>The Y-coordinate of the new point, in points.</p></li></ul>
<dl class="dl-horizontal">
  <dt>Returns</dt><dd><a href="topic/wijmo.pdf.PdfPaths.Class.html"><span class="identifier">PdfPaths</span></a></dd>
</dl>
</div>
<div id="polygon" class="member-panel mmethod">
<h3>polygon</h3>
<pre>polygon(points: <a href="https://developer.mozilla.org/en/docs/Web/JavaScript/Reference/Global_Objects/Number" target="_blank"><span class="identifier">number</span></a>[][]): <a href="topic/wijmo.pdf.PdfPaths.Class.html"><span class="identifier">PdfPaths</span></a></pre>
<div class="comment"><p>Draws a polygon using a given points array.</p></div>
<dl class="dl-horizontal">
  <dt>Parameters</dt><dd></dd>
</dl>
<ul>
<li><b>points</b>: <a href="https://developer.mozilla.org/en/docs/Web/JavaScript/Reference/Global_Objects/Number" target="_blank"><span class="identifier">number</span></a>[][]<br/><p>An array of two-elements arrays [x, y] specifying
the X and Y coordinates of the point, in points.</p></li></ul>
<dl class="dl-horizontal">
  <dt>Returns</dt><dd><a href="topic/wijmo.pdf.PdfPaths.Class.html"><span class="identifier">PdfPaths</span></a></dd>
</dl>
</div>
<div id="quadraticCurveTo" class="member-panel mmethod">
<h3>quadraticCurveTo</h3>
<pre>quadraticCurveTo(cpx: <a href="https://developer.mozilla.org/en/docs/Web/JavaScript/Reference/Global_Objects/Number" target="_blank"><span class="identifier">number</span></a>, cpy: <a href="https://developer.mozilla.org/en/docs/Web/JavaScript/Reference/Global_Objects/Number" target="_blank"><span class="identifier">number</span></a>, x: <a href="https://developer.mozilla.org/en/docs/Web/JavaScript/Reference/Global_Objects/Number" target="_blank"><span class="identifier">number</span></a>, y: <a href="https://developer.mozilla.org/en/docs/Web/JavaScript/Reference/Global_Objects/Number" target="_blank"><span class="identifier">number</span></a>): <a href="topic/wijmo.pdf.PdfPaths.Class.html"><span class="identifier">PdfPaths</span></a></pre>
<div class="comment"><p>Draws a quadratic curve from the current point to a new point using the current point
and (cpx, cpy) as the control points.</p>
<p>The new current point is (x, y).</p></div>
<dl class="dl-horizontal">
  <dt>Parameters</dt><dd></dd>
</dl>
<ul>
<li><b>cpx</b>: <a href="https://developer.mozilla.org/en/docs/Web/JavaScript/Reference/Global_Objects/Number" target="_blank"><span class="identifier">number</span></a><br/><p>The X-coordinate of the control point, in points.</p></li><li><b>cpy</b>: <a href="https://developer.mozilla.org/en/docs/Web/JavaScript/Reference/Global_Objects/Number" target="_blank"><span class="identifier">number</span></a><br/><p>The Y-coordinate of the control point, in points.</p></li><li><b>x</b>: <a href="https://developer.mozilla.org/en/docs/Web/JavaScript/Reference/Global_Objects/Number" target="_blank"><span class="identifier">number</span></a><br/><p>The X-coordinate of the new point, in points.</p></li><li><b>y</b>: <a href="https://developer.mozilla.org/en/docs/Web/JavaScript/Reference/Global_Objects/Number" target="_blank"><span class="identifier">number</span></a><br/><p>The Y-coordinate of the new point, in points.</p></li></ul>
<dl class="dl-horizontal">
  <dt>Returns</dt><dd><a href="topic/wijmo.pdf.PdfPaths.Class.html"><span class="identifier">PdfPaths</span></a></dd>
</dl>
</div>
<div id="rect" class="member-panel mmethod">
<h3>rect</h3>
<pre>rect(x: <a href="https://developer.mozilla.org/en/docs/Web/JavaScript/Reference/Global_Objects/Number" target="_blank"><span class="identifier">number</span></a>, y: <a href="https://developer.mozilla.org/en/docs/Web/JavaScript/Reference/Global_Objects/Number" target="_blank"><span class="identifier">number</span></a>, width: <a href="https://developer.mozilla.org/en/docs/Web/JavaScript/Reference/Global_Objects/Number" target="_blank"><span class="identifier">number</span></a>, height: <a href="https://developer.mozilla.org/en/docs/Web/JavaScript/Reference/Global_Objects/Number" target="_blank"><span class="identifier">number</span></a>): <a href="topic/wijmo.pdf.PdfPaths.Class.html"><span class="identifier">PdfPaths</span></a></pre>
<div class="comment"><p>Draws a rectangle.</p></div>
<dl class="dl-horizontal">
  <dt>Parameters</dt><dd></dd>
</dl>
<ul>
<li><b>x</b>: <a href="https://developer.mozilla.org/en/docs/Web/JavaScript/Reference/Global_Objects/Number" target="_blank"><span class="identifier">number</span></a><br/><p>The X-coordinate of the topleft corner of the rectangle, in points.</p></li><li><b>y</b>: <a href="https://developer.mozilla.org/en/docs/Web/JavaScript/Reference/Global_Objects/Number" target="_blank"><span class="identifier">number</span></a><br/><p>The Y-coordinate of the topleft corner of the rectangle, in points.</p></li><li><b>width</b>: <a href="https://developer.mozilla.org/en/docs/Web/JavaScript/Reference/Global_Objects/Number" target="_blank"><span class="identifier">number</span></a><br/><p>The width of the rectangle, in points.</p></li><li><b>height</b>: <a href="https://developer.mozilla.org/en/docs/Web/JavaScript/Reference/Global_Objects/Number" target="_blank"><span class="identifier">number</span></a><br/><p>The width of the rectangle, in points.</p></li></ul>
<dl class="dl-horizontal">
  <dt>Returns</dt><dd><a href="topic/wijmo.pdf.PdfPaths.Class.html"><span class="identifier">PdfPaths</span></a></dd>
</dl>
</div>
<div id="roundedRect" class="member-panel mmethod">
<h3>roundedRect</h3>
<pre>roundedRect(x: <a href="https://developer.mozilla.org/en/docs/Web/JavaScript/Reference/Global_Objects/Number" target="_blank"><span class="identifier">number</span></a>, y: <a href="https://developer.mozilla.org/en/docs/Web/JavaScript/Reference/Global_Objects/Number" target="_blank"><span class="identifier">number</span></a>, width: <a href="https://developer.mozilla.org/en/docs/Web/JavaScript/Reference/Global_Objects/Number" target="_blank"><span class="identifier">number</span></a>, height: <a href="https://developer.mozilla.org/en/docs/Web/JavaScript/Reference/Global_Objects/Number" target="_blank"><span class="identifier">number</span></a>, cornerRadius?: <a href="https://developer.mozilla.org/en/docs/Web/JavaScript/Reference/Global_Objects/Number" target="_blank"><span class="identifier">number</span></a>): <a href="topic/wijmo.pdf.PdfPaths.Class.html"><span class="identifier">PdfPaths</span></a></pre>
<div class="comment"><p>Draws a rounded rectangle.</p></div>
<dl class="dl-horizontal">
  <dt>Parameters</dt><dd></dd>
</dl>
<ul>
<li><b>x</b>: <a href="https://developer.mozilla.org/en/docs/Web/JavaScript/Reference/Global_Objects/Number" target="_blank"><span class="identifier">number</span></a><br/><p>The X-coordinate of the upper-left corner of the rectangle, in points.</p></li><li><b>y</b>: <a href="https://developer.mozilla.org/en/docs/Web/JavaScript/Reference/Global_Objects/Number" target="_blank"><span class="identifier">number</span></a><br/><p>The Y-coordinate of the upper-left corner of the rectangle, in points.</p></li><li><b>width</b>: <a href="https://developer.mozilla.org/en/docs/Web/JavaScript/Reference/Global_Objects/Number" target="_blank"><span class="identifier">number</span></a><br/><p>The width of the rectangle, in points.</p></li><li><b>height</b>: <a href="https://developer.mozilla.org/en/docs/Web/JavaScript/Reference/Global_Objects/Number" target="_blank"><span class="identifier">number</span></a><br/><p>The width of the rectangle, in points.</p></li><li><b>cornerRadius</b>: <a href="https://developer.mozilla.org/en/docs/Web/JavaScript/Reference/Global_Objects/Number" target="_blank"><span class="identifier">number</span></a> <span class="badge">Optional</span><br/><p>The corner radius of the rectangle, in points. The default value is 0.</p></li></ul>
<dl class="dl-horizontal">
  <dt>Returns</dt><dd><a href="topic/wijmo.pdf.PdfPaths.Class.html"><span class="identifier">PdfPaths</span></a></dd>
</dl>
</div>
<div id="stroke" class="member-panel mmethod">
<h3>stroke</h3>
<pre>stroke(penOrColor?: <span class="identifier">any</span>): <a href="topic/wijmo.pdf.PdfPaths.Class.html"><span class="identifier">PdfPaths</span></a></pre>
<div class="comment"><p>Strokes the path with the specified pen.
If pen is not specified, then the default document pen will be used 
(See the <a href="topic/wijmo.pdf.PdfDocument.Class.html/#setPen"><span class="identifier">setPen</span></a> method).</p>
<p>The penOrColor argument can accept the following values:
<ul>
  <li>A <a href="topic/wijmo.pdf.PdfPen.Class.html"><span class="identifier">PdfPen</span></a> object.</li>
  <li>
    A <a href="topic/wijmo.Color.Class.html"><span class="identifier">Color</span></a> object or any string acceptable by the <a href="topic/wijmo.Color.Class.html/#fromString"><span class="identifier">fromString</span></a> method. 
    In this case, the <a href="topic/wijmo.pdf.PdfPen.Class.html"><span class="identifier">PdfPen</span></a> object with the specified color will be created internally.
  </li>
</ul></p></div>
<dl class="dl-horizontal">
  <dt>Parameters</dt><dd></dd>
</dl>
<ul>
<li><b>penOrColor</b>: <span class="identifier">any</span> <span class="badge">Optional</span><br/><p>The pen or color to use.</p></li></ul>
<dl class="dl-horizontal">
  <dt>Returns</dt><dd><a href="topic/wijmo.pdf.PdfPaths.Class.html"><span class="identifier">PdfPaths</span></a></dd>
</dl>
</div>
<div id="svgPath" class="member-panel mmethod">
<h3>svgPath</h3>
<pre>svgPath(path: <a href="https://developer.mozilla.org/en/docs/Web/JavaScript/Reference/Global_Objects/String" target="_blank"><span class="identifier">string</span></a>): <a href="topic/wijmo.pdf.PdfPaths.Class.html"><span class="identifier">PdfPaths</span></a></pre>
<div class="comment"><p>Draws a SVG 1.1 path.</p></div>
<dl class="dl-horizontal">
  <dt>Parameters</dt><dd></dd>
</dl>
<ul>
<li><b>path</b>: <a href="https://developer.mozilla.org/en/docs/Web/JavaScript/Reference/Global_Objects/String" target="_blank"><span class="identifier">string</span></a><br/><p>The SVG path to draw.</p></li></ul>
<dl class="dl-horizontal">
  <dt>Returns</dt><dd><a href="topic/wijmo.pdf.PdfPaths.Class.html"><span class="identifier">PdfPaths</span></a></dd>
</dl>
</div>
</div>
