Skip to content

Commit

Permalink
Update PDFLoader.swift
Browse files Browse the repository at this point in the history
  • Loading branch information
buhe committed Nov 26, 2023
1 parent 29f2b74 commit 8daf652
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/LangChain/document_loaders/PDFLoader.swift
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ public class PDFLoader: BaseLoader {
for pageIndex in 0 ..< pdfDocument.pageCount {
if let pdfPage = pdfDocument.page(at: pageIndex) {
if let pageInfo = pdfPage.string {
extractedText += pageInfo
extractedText += " \(pageInfo)"
}

}
Expand Down

0 comments on commit 8daf652

Please sign in to comment.