瀏覽代碼

tabula: added alt format example

also made ordering of arguments consistent
Hayden Schiff 9 年之前
父節點
當前提交
5a9da6c4d6
共有 1 個文件被更改,包括 8 次插入4 次删除
  1. 8 4
      pages/common/tabula.md

+ 8 - 4
pages/common/tabula.md

@@ -4,7 +4,11 @@
 
 - Extract all tables from a PDF to a CSV file:
 
-`tabula {{file.pdf}} -o {{file.csv}}`
+`tabula -o {{file.csv}} {{file.pdf}}`
+
+- Extract all tables from a PDF to a JSON file:
+
+`tabula --format JSON -o {{file.json}} {{file.pdf}}`
 
 - Extract tables from pages 1, 2, 3, and 6 of a PDF:
 
@@ -12,12 +16,12 @@
 
 - Extract tables from page 1 of a PDF, guessing which portion of the page to examine:
 
-`tabula {{file.pdf}} --guess --pages {{1}}`
+`tabula --guess --pages {{1}} {{file.pdf}}`
 
 - Extract all tables from a PDF, using ruling lines to determine cell boundaries:
 
-`tabula {{file.pdf}} --spreadsheet`
+`tabula --spreadsheet {{file.pdf}}`
 
 - Extract all tables from a PDF, using blank space to determine cell boundaries:
 
-`tabula {{file.pdf}} --no-spreadsheet`
+`tabula --no-spreadsheet {{file.pdf}}`