Class PdfDocumentReaderConfig

java.lang.Object
org.springframework.ai.reader.pdf.config.PdfDocumentReaderConfig

public class PdfDocumentReaderConfig extends Object
Common configuration builder for the PagePdfDocumentReader and the ParagraphPdfDocumentReader.
Author:
Christian Tzolov
  • Field Details

    • ALL_PAGES

      public static final int ALL_PAGES
      See Also:
    • reversedParagraphPosition

      public final boolean reversedParagraphPosition
    • pagesPerDocument

      public final int pagesPerDocument
    • pageTopMargin

      public final int pageTopMargin
    • pageBottomMargin

      public final int pageBottomMargin
    • pageExtractedTextFormatter

      public final ExtractedTextFormatter pageExtractedTextFormatter
  • Method Details

    • builder

      public static PdfDocumentReaderConfig.Builder builder()
      Start building a new configuration.
      Returns:
      The entry point for creating a new configuration.
    • defaultConfig

      public static PdfDocumentReaderConfig defaultConfig()
      Returns the default config.
      Returns:
      the default config