Topics   All   Mac OS X (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server (Not)   Client   Old   Guides   Examples
New in version: 6.3   6.4   6.5   7.0   7.1   7.2   7.3   7.4   7.5   7.6    Statistic  

DynaPDF.SetLineWidth

The function sets the line width used to stroke paths.

Component Version macOS Windows Server FileMaker Cloud FileMaker iOS SDK
DynaPDF 3.3 Yes Yes Yes Yes Yes

MBS( "DynaPDF.SetLineWidth"; PDF; Value )

Parameters

Parameter Description Example value
PDF The PDF reference returned from DynaPDF.New. $pdf
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

Example Databases


DynaPDF.SetLineJoinStyle   -   DynaPDF.SetLinkHighlightMode

Feedback: Report problem or ask question.




Links
MBS Xojo Chart Plugins