Fixed ParagraphPdfDocumentReader example

This commit is contained in:
David Caudill
2024-06-06 14:19:20 +02:00
committed by Christian Tzolov
parent 462025de75
commit 1b0903e29f

View File

@@ -162,7 +162,7 @@ public class MyPagePdfDocumentReader {
List<Document> getDocsFromPdfwithCatalog() {
new ParagraphPdfDocumentReader("classpath:/sample1.pdf",
ParagraphPdfDocumentReader pdfReader = new ParagraphPdfDocumentReader("classpath:/sample1.pdf",
PdfDocumentReaderConfig.builder()
.withPageTopMargin(0)
.withPageExtractedTextFormatter(ExtractedTextFormatter.builder()
@@ -171,7 +171,7 @@ public class MyPagePdfDocumentReader {
.withPagesPerDocument(1)
.build());
return pdfReader.read();
return pdfReader.read();
}
}
----