#BAEL-5880: rename method to getNumberOfPages
This commit is contained in:
parent
ef3f32c405
commit
f17c551fc4
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue