#BAEL-5880: rename method to getNumberOfPages

This commit is contained in:
h_sharifi
2022-11-09 11:54:28 +03:30
parent 90bc44b0dc
commit 06cec0604b

View File

@@ -10,7 +10,7 @@ import java.io.IOException;
public class PdfInfoPdfBox {
public static int getNumberOfPage(final String pdfFile) throws IOException {
public static int getNumberOfPages(final String pdfFile) throws IOException {
File file = new File(pdfFile);
PDDocument document = Loader.loadPDF(file);
int pages = document.getNumberOfPages();