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.SetViewerPreferences
Sets viewer preferences.
| Component | Version | macOS | Windows | Linux | Server | FileMaker iOS SDK |
| DynaPDF | 9.2 | Yes | Yes | Yes | Yes | Yes |
MBS( "DynaPDF.SetViewerPreferences"; PDF; Value { ; AddVal } ) More
Parameters
| Parameter | Description | Example | Flags |
|---|---|---|---|
| The PDF reference returned from DynaPDF.New. | |||
| Value | The preference to set. Can be number value or list of names. |
"HideToolBar, HideMenuBar" | |
| AddVal | Additional value for the preference. | Optional |
Result
Returns OK or error.
Description
Sets viewer preferences.This controls certain features in PDF viewers, such as hiding the toolbar or menu bar.
The parameters Value and AddVal are both bitmasks or lists. Multiple values can be set by using a Math.BitwiseOR. It is also possible to call the function multiple times to set each preference separately; the flags are combined with already existing one in this case. Already defined flags can be deleted with the flag UseNone (0). A few flags require an additional parameter that must be added to AddVal.
See DynaPDF help for possible values.
See also SetViewerPreferences function in DynaPDF manual.
Examples
Remove toolbar:
MBS( "DynaPDF.SetViewerPreferences"; $PDF; "HideToolBar" )
See also
Blog Entries
Release notes
- Version 9.2
- Added DynaPDF.GetViewerPreferences and DynaPDF.SetViewerPreferences functions.
Created 19th March 2019, last changed 20th March 2019
DynaPDF.SetUserUnit - DynaPDF.SetWMFDefExtent
Feedback: Report problem or ask question.
Links
MBS FileMaker tutorial videos