DynaPDF.StrokePath
------------------

The function strokes the current path without closing it.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [DynaPDF](component_DynaPDF.md) | [3.1](newinversion31.md) | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes |

MBS( "DynaPDF.StrokePath"; PDF ) 

**MBS**( **"DynaPDF.StrokePath";** /\* The function strokes the current path without closing it. \*/  
**$PDF**) /\* The PDF reference returned from [DynaPDF.New](DynaPDFNew.md). \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| PDF | The PDF reference returned from [DynaPDF.New](DynaPDFNew.md). | $pdf |

### Result

Returns OK or error.

### Description

The function strokes the current path without closing it.  
If no open path can be detected the function returns with a warning.  
See also [StrokePath](https://www.monkeybreadsoftware.com/DynaPDF-Manual/StrokePath.shtml) function in DynaPDF manual.

### Examples

Draw two lines in black:

 Set Variable \[$r ; Value:MBS ( "[DynaPDF.SetStrokeColor](DynaPDFSetStrokeColor.md)" ; $pdf ; 0; 0; 0 )\]  
Set Variable \[$r ; Value:MBS ( "[DynaPDF.SetLineWidth](DynaPDFSetLineWidth.md)" ; $pdf ; 1 )\]  
Set Variable \[$r ; Value:MBS ( "[DynaPDF.MoveTo](DynaPDFMoveTo.md)" ; $pdf ; 20; 20)\]  
Set Variable \[$r ; Value:MBS ( "[DynaPDF.LineTo](DynaPDFLineTo.md)" ; $pdf ; 20; 40)\]  
Set Variable \[$r ; Value:MBS ( "[DynaPDF.MoveTo](DynaPDFMoveTo.md)" ; $pdf ; 30; 30)\]  
Set Variable \[$r ; Value:MBS ( "[DynaPDF.LineTo](DynaPDFLineTo.md)" ; $pdf ; 30; 50)\]  
Set Variable \[$r ; Value:MBS ( "DynaPDF.StrokePath" ; $pdf )\]  
### See also

- [DynaPDF.ClosePath](DynaPDFClosePath.md)
- [DynaPDF.LineTo](DynaPDFLineTo.md)
- [DynaPDF.MoveTo](DynaPDFMoveTo.md)
- [DynaPDF.New](DynaPDFNew.md)
- [DynaPDF.SetLineWidth](DynaPDFSetLineWidth.md)
- [DynaPDF.SetStrokeColor](DynaPDFSetStrokeColor.md)

### Example Databases

- [DynaPDF/Book Creation](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/DynaPDF/Book%20Creation.shtml#4ScriptAnchor_)
- [DynaPDF/Create PDF with Bezier Curves](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/DynaPDF/Create%20PDF%20with%20Bezier%20Curves.shtml#11ScriptAnchor_)

### Blog Entries

- [MBS Filemaker Plugin, version 3.2pr4](https://www.mbsplugins.de/archive/2013-03-18/MBS_Filemaker_Plugin_version_3/monkeybreadsoftware_blog_filemaker)

This function checks for a license.

Created 18th August 2014 , last changed 1st January 2017

  
[DynaPDF.StampAnnot](DynaPDFStampAnnot.md) - [DynaPDF.SysFontInfo](DynaPDFSysFontInfo.md)

[HTML Version](DynaPDFStrokePath.shtml)