Skip to content

Commit 8b571bf

Browse files
committed
[SPARKNLP-1158] Formatting PdfToText
1 parent 9d50edb commit 8b571bf

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

src/main/scala/com/johnsnowlabs/reader/PdfToText.scala

+1-8
Original file line numberDiff line numberDiff line change
@@ -235,14 +235,7 @@ trait PdfToTextTrait extends Logging with PdfUtils {
235235
sort,
236236
textStripper)
237237
} else {
238-
Range(1, numPages + 1).map( pageNum =>
239-
("",
240-
1,
241-
1,
242-
null,
243-
null,
244-
pageNum
245-
))
238+
Range(1, numPages + 1).map(pageNum => ("", 1, 1, null, null, pageNum))
246239
}
247240
pdfDoc.close()
248241
log.info("Close pdf")

0 commit comments

Comments
 (0)