Documents, pages and tables#
Choosing the page of a PDF or the sheet of a workbook, how finely a PDF is drawn, typesetting text, and which columns of a table to show.
| Option | Argument | Default | Description |
|---|---|---|---|
-p, --page | string | "1" | PDF page or workbook sheet, from 1; for an export or text into a folder, a range such as 2-5, or all |
-d, --dpi | int | 150 | PDF rasterization DPI (36–600) |
--markdown | string | "text" | Markdown renderer: text, typeset (direct graphics) |
--typeset | Typeset Markdown, plain text, source code, and JSON as graphics | ||
--font | string | "readable" | Typeset font pair: readable, editorial, technical, compact |
--mono | string | Override typeset code face: jetbrains | |
-N, --line-numbers | number the lines of plain text, source code, JSON and Markdown source (# toggles, : goes to a line) | ||
-S, --chop-long-lines | cut long lines at the right edge instead of wrapping them, as less -S does (S toggles, arrows scroll sideways) | ||
--cols | string | show only these columns of a table, by header or letter: name,name | |
--coln | string | show only these columns of a table, counted from 1: 2,4-6 |
Examples#
# The third page of a PDF
gloss --page 3 report.pdf
# Sharper pages
gloss --dpi 300 report.pdf
# Only some columns of a sheet, by header or by number
gloss --cols name,total sales.xlsx
gloss --coln 2,4-6 sales.csv