Components | All | New | MacOS | Windows | Linux | iOS | ||||
Examples | Mac & Win | Server | Client | Guides | Statistic | FMM | Blog | Deprecated | Old |
DynaPDF.SetStrokeColor
The function sets the current stroke color as an list of values.
Component | Version | macOS | Windows | Linux | Server | iOS SDK |
DynaPDF | 3.1 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes |
Parameters
Parameter | Description | Example |
---|---|---|
The PDF reference returned from DynaPDF.New. | ||
Value... | The values for the colors. | 0 |
Result
Returns OK or error message.
Description
The function sets the current stroke color as an list of values.The components of non-Lab color spaces must be in the range from 0 through 1. The *a and *b components of a Lab color space are typically in a range from -128 though 127. The *L component ranges from 0 through 100.
The number of components must match the number of components of the underlying color space.
See also DynaPDF.SetFillColor.
This function takes variable number of parameters. Pass as much parameters as needed separated by the semicolon in FileMaker.
Please repeat Value parameter as often as you need.
See also SetStrokeColor function in DynaPDF manual.
Examples
Sets color to red:
MBS( "DynaPDF.SetStrokeColor"; $PDF; 1.0; 0.0; 0.0 )
Sets color to blue:
MBS( "DynaPDF.SetStrokeColor"; $PDF; 0.0; 0.0; 1.0 )
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)]
Set color with integer values in range of 0 to 255:
MBS( "DynaPDF.SetStrokeColor"; $PDF; $red / 255.0; $green / 255.0; /blue / 255.0 )
See also
- DynaPDF.New
- DynaPDF.Rectangle
- DynaPDF.RotateTemplate
- DynaPDF.RoundRectEx
- DynaPDF.SetFieldColor
- DynaPDF.SetLineWidth
- DynaPDF.SetStrokeColorValue
- DynaPDF.StrokePath
- DynaPDF.WriteDemoText
- DynaPDF.WriteFTextEx
Release notes
- Version 11.0
- Added DynaPDF.SetFillColorValue and DynaPDF.SetStrokeColorValue functions.
Example Databases
- DynaPDF/Add Page Links
- DynaPDF/Add Weblinks
- DynaPDF/Convert to 2 Pages
- DynaPDF/Coordinates
- DynaPDF/Create PDF with Bezier Curves
- DynaPDF/Place Picture
- DynaPDF/Shrink PDF pages
- DynaPDF/Watermark pages
Blog Entries
- Add page links for FileMaker
- Things you can do with DynaPDF
- Adding cutting lines for PDF in FileMaker
- DynaPDF WriteFText with links inside
FileMaker Magazin
This function checks for a license.
Created 18th August 2014, last changed 5th June 2021