ComPDFKit Web SDK
    Preparing search index...

    Class ContentImageBoxEditor

    Editor of an image content box. Every operation can be undone.

    Index
    • The original image (PNG); requires the browser's OffscreenCanvas.

      Returns Promise<Blob>

    • Mirrors the image horizontally.

      Returns Promise<void>

    • Mirrors the image vertically.

      Returns Promise<void>

    • Returns the image opacity.

      Returns Promise<number>

      Opacity from 0 to 1.

    • Current rotation angle (degrees).

      Returns Promise<number>

    • Replaces the image with another (position and size unchanged): a dataURL, Blob or file bytes.

      Parameters

      • image: string | ArrayBuffer | Blob

      Returns Promise<void>

    • Rotates clockwise by degree degrees.

      Parameters

      • degree: 90 | 180 | 270

      Returns Promise<void>

    • 0–1

      Parameters

      • opacity: number

      Returns Promise<void>

    The image box being edited.