Class PdfFile.Builder

java.lang.Object
dev.langchain4j.data.pdf.PdfFile.Builder
Enclosing class:
PdfFile

public static class PdfFile.Builder extends Object
Builder for PdfFile.
  • Constructor Details

  • Method Details

    • url

      public PdfFile.Builder url(URI url)
      Set the url of the PDF document.
      Parameters:
      url - the url of the PDF document.
      Returns:
      this
    • url

      public PdfFile.Builder url(String url)
      Set the url of the PDF document.
      Parameters:
      url - the url of the PDF document.
      Returns:
      this
    • base64Data

      public PdfFile.Builder base64Data(String base64Data)
      Set the base64 data of the PDF document.
      Parameters:
      base64Data - the base64 data of the PDF document.
      Returns:
      this
    • build

      public PdfFile build()
      Build the PdfFile.
      Returns:
      the PdfFile.