pdf-lite - v1.5.0
    Preparing search index...

    Lightweight builder for PDF content streams. Chains PDF operators via a fluent API and emits the final stream with build(). Enhanced with text measurement capabilities for layout calculations.

    Index

    Constructors

    Methods

    • Calculate the minimum font size needed to fit text within given constraints.

      Parameters

      • text: string
      • maxWidth: number
      • OptionalmaxHeight: number
      • lineHeight: number = 1.2

      Returns number