Class PdfFileContent

java.lang.Object
dev.langchain4j.data.message.PdfFileContent
All Implemented Interfaces:
Content

public class PdfFileContent extends Object implements Content
  • Constructor Details

    • PdfFileContent

      public PdfFileContent(URI url)
      Create a new PdfFileContent from the given url.
      Parameters:
      url - the url of the PDF.
    • PdfFileContent

      public PdfFileContent(String url)
      Create a new PdfFileContent from the given url.
      Parameters:
      url - the url of the PDF.
    • PdfFileContent

      public PdfFileContent(String base64Data, String mimeType)
      Create a new PdfFileContent from the given base64 data and mime type.
      Parameters:
      base64Data - the base64 data of the PDF.
      mimeType - the mime type of the PDF.
    • PdfFileContent

      public PdfFileContent(PdfFile pdfFile)
      Create a new PdfFileContent from the given PDF file.
      Parameters:
      pdfFile - the PDF.
  • Method Details