Package dev.langchain4j.data.pdf
Class PdfFile.Builder
java.lang.Object
dev.langchain4j.data.pdf.PdfFile.Builder
- Enclosing class:
PdfFile
Builder for
PdfFile.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbase64Data(String base64Data) Set the base64 data of the PDF document.build()Build thePdfFile.Set the url of the PDF document.Set the url of the PDF document.
-
Constructor Details
-
Builder
public Builder()Create a newPdfFile.Builder.
-
-
Method Details
-
url
Set the url of the PDF document.- Parameters:
url- the url of the PDF document.- Returns:
this
-
url
Set the url of the PDF document.- Parameters:
url- the url of the PDF document.- Returns:
this
-
base64Data
Set the base64 data of the PDF document.- Parameters:
base64Data- the base64 data of the PDF document.- Returns:
this
-
build
Build thePdfFile.- Returns:
- the
PdfFile.
-