mindee
    Preparing search index...

    Class ExtractedImage

    Generic class for image extraction

    Hierarchy (View Summary)

    Index

    Constructors

    • Parameters

      • buffer: Uint8Array
      • fileName: string
      • OptionalpageId: number
      • OptionalelementId: number

      Returns ExtractedImage

    Properties

    buffer: Buffer
    elementId?: number
    filename: string
    pageId?: number

    Methods

    • Attempts to saves the document to a file synchronously. Throws an error if the file extension is not supported or if the file could not be saved to disk for some reason.

      Parameters

      • outputPath: string

        Path to save the file to.

      Returns void

    • Saves the document to a file.

      Parameters

      • outputPath: string

        Path to save the file to.

      Returns Promise<void>