Skip to content

Commit

Permalink
rename spreadsheet/no-spreadsheet to lattice/stream to match web UI i…
Browse files Browse the repository at this point in the history
…n CLI arguments and names of extraction algorithms
  • Loading branch information
jeremybmerrill committed Nov 19, 2016
1 parent 6cea699 commit 6e1b540
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
6 changes: 4 additions & 2 deletions src/main/java/technology/tabula/CommandLineApp.java
Original file line number Diff line number Diff line change
Expand Up @@ -248,8 +248,10 @@ public static Options buildOptions() {
o.addOption("h", "help", false, "Print this help text.");
o.addOption("g", "guess", false, "Guess the portion of the page to analyze per page.");
o.addOption("d", "debug", false, "Print detected table areas instead of processing");
o.addOption("r", "spreadsheet", false, "Force PDF to be extracted using spreadsheet-style extraction (if there are ruling lines separating each cell, as in a PDF of an Excel spreadsheet)");
o.addOption("n", "no-spreadsheet", false, "Force PDF not to be extracted using spreadsheet-style extraction (if there are ruling lines separating each cell, as in a PDF of an Excel spreadsheet)");
o.addOption("r", "spreadsheet", false, "[Deprecated in favor of -l/--lattice] Force PDF to be extracted using spreadsheet-style extraction (if there are ruling lines separating each cell, as in a PDF of an Excel spreadsheet)");
o.addOption("n", "no-spreadsheet", false, "[Deprecated in favor of -t/--stream] Force PDF not to be extracted using spreadsheet-style extraction (if there are no ruling lines separating each cell)");
o.addOption("l", "lattice", false, "Force PDF to be extracted using lattice-mode extraction (if there are ruling lines separating each cell, as in a PDF of an Excel spreadsheet)");
o.addOption("t", "stream", false, "Force PDF to be extracted using stream-mode extraction (if there are no ruling lines separating each cell)");
o.addOption("i", "silent", false, "Suppress all stderr output.");
o.addOption("u", "use-line-returns", false, "Use embedded line returns in cells. (Only in spreadsheet mode.)");
o.addOption("d", "debug", false, "Print detected table areas instead of processing.");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ public int compare(TextChunk o1, TextChunk o2) {

@Override
public String toString() {
return "basic";
return "stream";
}


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -336,7 +336,7 @@ public static List<Rectangle> findSpreadsheetsFromCells(List<? extends Rectangle

@Override
public String toString() {
return "spreadsheet";
return "lattice";
}

private enum Direction {
Expand Down

0 comments on commit 6e1b540

Please sign in to comment.