parseViewParam_(paramValue) {
    const viewModeComponents = paramValue.toLowerCase().split(',');
    if (viewModeComponents.length < 1)
      return {};

    const params = {};
    const viewMode = viewModeComponents[0];
    let acceptsPositionParam;
    if (viewMode === 'fit') {
      params['view'] = FittingType.FIT_TO_PAGE;
      acceptsPositionParam = false;
    } else if (viewMode === 'fith') {
      params['view'] = FittingType.FIT_TO_WIDTH;
      acceptsPositionParam = true;
    } else if (viewMode === 'fitv') {
      params['view'] = FittingType.FIT_TO_HEIGHT;
      acceptsPositionParam = true;
    }

    if (!acceptsPositionParam || viewModeComponents.length < 2)
      return params;

    const position = parseFloat(viewModeComponents[1]);
    if (!Number.isNaN(position))
      params['viewPosition'] = position;

    return params;
  }
/**
   * Parse view parameter of open PDF parameters. The PDF should be opened at
   * the specified fitting type mode and position.
   *
   * @param {string} paramValue view value.
   * @return {Object} Map with view parameters (view and viewPosition).
   * @private
   */
Parse view parameter of open PDF parameters. The PDF should be opened at
the specified fitting type mode and position.

@param {string} paramValue view value.
@return {Object} Map with view parameters (view and viewPosition).
@private
Parse view parameter of open PDF parameters . The PDF should be opened at the specified fitting type mode and position . @param { string } paramValue view value . @return { Object } Map with view parameters ( view and viewPosition ) . @private
parseViewParam_(paramValue) {
    const viewModeComponents = paramValue.toLowerCase().split(',');
    if (viewModeComponents.length < 1)
      return {};
    const params = {};
    const viewMode = viewModeComponents[0];
    let acceptsPositionParam;
    if (viewMode === 'fit') {
      params['view'] = FittingType.FIT_TO_PAGE;
      acceptsPositionParam = false;
    } else if (viewMode === 'fith') {
      params['view'] = FittingType.FIT_TO_WIDTH;
      acceptsPositionParam = true;
    } else if (viewMode === 'fitv') {
      params['view'] = FittingType.FIT_TO_HEIGHT;
      acceptsPositionParam = true;
    }
    if (!acceptsPositionParam || viewModeComponents.length < 2)
      return params;
    const position = parseFloat(viewModeComponents[1]);
    if (!Number.isNaN(position))
      params['viewPosition'] = position;
    return params;
  }
parseViewParam_ ( paramValue ) { const viewModeComponents = paramValue . toLowerCase ( ) . split ( ',' ) ; if ( viewModeComponents . length < 1 ) return { } ; const params = { } ; const viewMode = viewModeComponents [ 0 ] ; let acceptsPositionParam ; if ( viewMode === 'fit' ) { params [ 'view' ] = FittingType . FIT_TO_PAGE ; acceptsPositionParam = false ; } else if ( viewMode === 'fith' ) { params [ 'view' ] = FittingType . FIT_TO_WIDTH ; acceptsPositionParam = true ; } else if ( viewMode === 'fitv' ) { params [ 'view' ] = FittingType . FIT_TO_HEIGHT ; acceptsPositionParam = true ; } if ( ! acceptsPositionParam || viewModeComponents . length < 2 ) return params ; const position = parseFloat ( viewModeComponents [ 1 ] ) ; if ( ! Number . isNaN ( position ) ) params [ 'viewPosition' ] = position ; return params ; }
Parse view parameter of open PDF parameters.
Parse view parameter of open PDF parameters .