Topics
All
MacOS
(Only)
Windows
(Only)
Linux
(Only, Not)
iOS
(Only, Not)
Components
Crossplatform Mac & Win
Server
Client
Old
Deprecated
Guides
Examples
Videos
New in version:
9.3
9.4
9.5
10.0
10.1
10.2
10.3
10.4
10.5
10.6
Statistic
FMM
Blog
DynaPDF.SetLineWidth
The function sets the line width used to stroke paths.
| Component | Version | macOS | Windows | Linux | Server | FileMaker iOS SDK |
| DynaPDF | 3.3 | Yes | Yes | Yes | Yes | Yes |
Parameters
| Parameter | Description | Example |
|---|---|---|
| The PDF reference returned from DynaPDF.New. | ||
| Value | The new line width value. | 3 |
Result
Returns OK or error message.
Description
The function sets the line width used to stroke paths.The line width is also used to specify the thickness of the border of annotations and interactive form fields. In the latter case, the line width should be a multiple of one (or zero) and not exceed 3 units. Larger values are still correctly rendered by Adobe's Acrobat but the appearance can be changed when a Reset Form Action is executed or when other changes are made to the document.
See also SetLineWidth function in DynaPDF manual.
Examples
Draw two lines in black:
Set Variable [$r; Value:MBS ( "DynaPDF.SetStrokeColor" ; $pdf ; 0; 0; 0 )]
Set Variable [$r; Value:MBS ( "DynaPDF.SetLineWidth" ; $pdf ; 1 )]
Set Variable [$r; Value:MBS ( "DynaPDF.MoveTo" ; $pdf ; 20; 20)]
Set Variable [$r; Value:MBS ( "DynaPDF.LineTo" ; $pdf ; 20; 40)]
Set Variable [$r; Value:MBS ( "DynaPDF.MoveTo" ; $pdf ; 30; 30)]
Set Variable [$r; Value:MBS ( "DynaPDF.LineTo" ; $pdf ; 30; 50)]
Set Variable [$r; Value:MBS ( "DynaPDF.StrokePath" ; $pdf)]
See also
- DynaPDF.CreateSigField
- DynaPDF.GetLineWidth
- DynaPDF.GetPageWidth
- DynaPDF.GetTextWidth
- DynaPDF.MoveTo
- DynaPDF.PageLink
- DynaPDF.PageLinkEx
- DynaPDF.SetLinkHighlightMode
- DynaPDF.SetStrokeColor
- DynaPDF.WebLink
Example Databases
- DynaPDF/Add Weblinks
- DynaPDF/Create PDF with Bezier Curves
- DynaPDF/Place Picture
- DynaPDF/Shrink PDF pages
Blog Entries
Created 18th August 2014, last changed 1st January 2017
DynaPDF.SetLineJoinStyle - DynaPDF.SetLinkHighlightMode
Feedback: Report problem or ask question.
Links
MBS Xojo PDF Plugins