Skip to content

modern-pdf-lib


modern-pdf-lib / parseViewerPreferences

Function: parseViewerPreferences()

parseViewerPreferences(dict): ViewerPreferences

Defined in: src/metadata/viewerPreferences.ts:149

Parse a /ViewerPreferences dictionary into a ViewerPreferences object.

Parameters

dict

PdfDict

The PDF dictionary to parse.

Returns

ViewerPreferences

The parsed viewer preferences.

Released under the MIT License.