Topics   All   Mac OS X (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server   Client   Old   Guides   Examples
New in version: 8.2   8.3   8.4   8.5   9.0   9.1   9.2   9.3   9.4   9.5    Statistic  


Sets viewer preferences.

Component Version macOS Windows Server FileMaker Cloud FileMaker iOS SDK
DynaPDF 9.2 Yes Yes Yes Yes Yes
MBS( "DynaPDF.SetViewerPreferences"; PDF; Value { ; AddVal } )   More


Parameter Description Example value
PDF The PDF reference returned from DynaPDF.New. $pdf
Value The preference to set.
Can be number value or list of names.
"HideToolBar, HideMenuBar"
AddVal Optional
Additional value for the preference.


Returns OK or error.


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.


Remove toolbar:

MBS( "DynaPDF.SetViewerPreferences"; $PDF; "HideToolBar" )

See also

Blog Entries

Release notes

Created 19th March 2019, last changed 20th March 2019

DynaPDF.SetUserUnit   -   DynaPDF.SetWMFDefExtent

Feedback: Report problem or ask question.

MBS FileMaker blog