ComPDFKit Web SDK
    Preparing search index...

    Class FileAttachmentUtils

    Core.Annotations.FileAttachmentUtils: attachment utility functions (static at runtime and declared as instance methods in the d.ts; both ways work).

    Index
    • Decompresses FlateDecode data (a hex string) into a Blob; mimeType, when given, becomes the Blob type. Throws when the data is corrupt or the environment cannot decompress.

      Parameters

      • fileData: string
      • OptionalmimeType: string

      Returns Promise<Blob>

    • Decompresses FlateDecode data (same as the static method).

      Parameters

      • fileData: string

        The compressed data as a hex string.

      • OptionalmimeType: string

        MIME type of the resulting Blob.

      Returns Promise<Blob>

      The decompressed data.