Package dev.langchain4j.data.pdf
Class PdfFile.Builder
-
- All Implemented Interfaces:
public class PdfFile.BuilderBuilder for PdfFile.
-
-
Constructor Summary
Constructors Constructor Description PdfFile.Builder()Create a new Builder.
-
Method Summary
Modifier and Type Method Description PdfFile.Builderurl(URI url)Set the url of the PDF document. PdfFile.Builderurl(String url)Set the url of the PDF document. PdfFile.Builderbase64Data(String base64Data)Set the base64 data of the PDF document. PdfFilebuild()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
-
-
-
-