Class Index

Classes


Class Annotations.WidgetFlags

Annotations.WidgetFlags

Class Summary
Constructor Attributes Constructor Name and Description
 
An object that describes flags on a Widget, or other PDF objects.
Method Summary
Method Attributes Method Name and Description
 
Clear the flags.
 
get(flag)
Determine if the given flag is set.
 
set(options, shouldSet)
Set flags to true or false.
 
Return an array of all set flags.
Class Detail
Annotations.WidgetFlags(options)
An object that describes flags on a Widget, or other PDF objects.
Parameters:
{?{mask: string[]}} options
Define the set of supported flags.
Method Detail
clear()
Clear the flags.

{boolean} get(flag)
Determine if the given flag is set.
Parameters:
{string} flag
The name of the flag to check
Returns:
{boolean} Whether the flag is set

set(options, shouldSet)
Set flags to true or false. If options is an array of strings, set the flags with those names to true. If options is a number or array of numbers, set the flags from the corresponding numbers to true. (deprecated, relies on a limited interpretation of numbers as bitfields) If options is a string, set that flag to shouldSet.
Parameters:
{(string[]|number[]|string|number)} options
One of the possible input types to determine which flags to set
{?boolean} shouldSet
If options is a string, whether to set or unset the flag

{string[]} toArray()
Return an array of all set flags.
Returns:
{string[]} An array of all set flags.

Documentation generated by JsDoc Toolkit 2.4.0 on Fri Sep 09 2016 14:32:37 GMT-0700 (PDT)