Components | All | New | MacOS | Windows | Linux | iOS | ||||
Examples | Mac & Win | Server | Client | Guides | Statistic | FMM | Blog | Deprecated | Old |
DynaPDF.SetLineWidth
The function sets the line width used to stroke paths.
Component | Version | macOS | Windows | Linux | Server | iOS SDK |
DynaPDF | 3.3 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes |
MBS( "DynaPDF.SetLineWidth"; PDF; Value ) More
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.GetLineWidth
- DynaPDF.GetPageWidth
- DynaPDF.GetTextWidth
- DynaPDF.MoveTo
- DynaPDF.New
- DynaPDF.PageLink
- DynaPDF.PageLinkEx
- DynaPDF.RoundRect
- DynaPDF.SetLinkHighlightMode
- DynaPDF.WriteFTextEx
Release notes
- Version 14.4
- Fixed incorrect returning of result for DynaPDF.SetRenderingIntent, DynaPDF.SetUserUnit and DynaPDF.SetLineWidth functions.
Example Databases
- DynaPDF/Add Weblinks
- DynaPDF/Convert to 2 Pages
- DynaPDF/Create PDF with Bezier Curves
- DynaPDF/Find and Replace Text
- DynaPDF/Place Picture
- DynaPDF/Shrink PDF pages
Blog Entries
- MBS FileMaker Plugin, version 14.4pr2
- Adding cutting lines for PDF in FileMaker
- DynaPDF WriteFText with links inside
- Example Script for DynaPDF.FindText and DynaPDF.WebLink
This function checks for a license.
Created 18th August 2014, last changed 1st January 2017