ComPDFKit Web SDK
    Preparing search index...

    Function setCustomMultiViewerAcceptedFileFormats

    • Sets the file extensions accepted by the right pane's "choose file" (with or without the leading dot). Only extensions the viewer can open are kept; pass null / undefined to restore the default.

      Parameters

      • formats: string[] | null | undefined

        The accepted extensions.

      Returns void

      instance.UI.setCustomMultiViewerAcceptedFileFormats(['pdf']);