ComPDFKit Web SDK
    Preparing search index...

    Function setCustomStyle

    • Injects CSS text into the viewer. Calls accumulate. The styles go into this instance's root node (not the host page's document.head) and are removed when the instance is destroyed.

      Parameters

      • cssText: string

        The CSS text.

      Returns void

      instance.UI.setCustomStyle('.cpdf-header { background: #222; }');