Package dev.langchain4j.data.pdf
Class PdfFile.Builder
-
- All Implemented Interfaces:
public class PdfFile.Builder
Builder for PdfFile.
-
-
Constructor Summary
Constructors Constructor Description PdfFile.Builder()
Create a new Builder.
-
Method Summary
Modifier and Type Method Description PdfFile.Builder
url(URI url)
Set the url of the PDF document. PdfFile.Builder
url(String url)
Set the url of the PDF document. PdfFile.Builder
base64Data(String base64Data)
Set the base64 data of the PDF document. PdfFile
build()
Build the PdfFile. -
-
Constructor Detail
-
PdfFile.Builder
PdfFile.Builder()
Create a new Builder.
-
-
Method Detail
-
url
PdfFile.Builder url(URI url)
Set the url of the PDF document.
- Parameters:
url
- the url of the PDF document.- Returns:
this
-
url
PdfFile.Builder url(String url)
Set the url of the PDF document.
- Parameters:
url
- the url of the PDF document.- Returns:
this
-
base64Data
PdfFile.Builder base64Data(String base64Data)
Set the base64 data of the PDF document.
- Parameters:
base64Data
- the base64 data of the PDF document.- Returns:
this
-
-
-
-