mindee
    Preparing search index...

    Class ExtractedPdf

    Represents a PDF artifact produced by an extraction/splitting operation.

    Hierarchy (View Summary)

    Index

    Constructors

    • Parameters

      • pdfData: Buffer<ArrayBufferLike>
      • filename: string
      • pageIndexes: number[]

      Returns ExtractedPdf

    Properties

    buffer: Buffer

    Raw bytes of the extracted PDF segment.

    filename: string

    Filename suggested for export.

    pageCount: number

    Number of pages in this extracted PDF.

    pageIndexes: number[]

    Zero-based indexes of pages included in this extracted PDF.

    Methods

    • Saves the document to a file synchronously.

      Parameters

      • outputPath: string

      Returns void

    • Saves the document to a file.

      Parameters

      • outputPath: string

        Path to save the file to.

      Returns Promise<void>