Nutrient Web SDK

v0.0.0-dev

ReferenceNutrientViewerviewStateFromOpenParameters

Function viewStateFromOpenParameters

Merges the properties extracted from the location.hash into the NutrientViewer.ViewState.

Properties will be extracted following the PDF Open Parameters spec.

Currently, we only support the page parameter.

Function
Type Signature
viewStateFromOpenParameters(
    viewState: NutrientViewer.ViewState,
    hash?: string | null | undefined,
): NutrientViewer.ViewState