Skip to content
This repository was archived by the owner on Jan 7, 2024. It is now read-only.

Commit fe50ff1

Browse files
committed
closes tabulapdf#18
1 parent bfb40ae commit fe50ff1

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/main/java/technology/tabula/CommandLineApp.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,8 @@ static void extractTables(CommandLine line) throws ParseException {
108108
verticalRulingPositions = parseFloatList(line.getOptionValue('c'));
109109
}
110110

111-
List<Integer> pages = Utils.parsePagesOption(line.getOptionValue('p'));
111+
String pagesOption = line.hasOption('p') ? line.getOptionValue('p') : "1";
112+
List<Integer> pages = Utils.parsePagesOption(pagesOption);
112113
ExtractionMethod method = whichExtractionMethod(line);
113114
boolean useLineReturns = line.hasOption('u');
114115

0 commit comments

Comments
 (0)