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.

OptionArgumentDefaultDescription
-p, --pagestring"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, --dpiint150PDF rasterization DPI (36–600)
--markdownstring"text"Markdown renderer: text, typeset (direct graphics)
--typesetTypeset Markdown, plain text, source code, and JSON as graphics
--fontstring"readable"Typeset font pair: readable, editorial, technical, compact
--monostringOverride typeset code face: jetbrains
-N, --line-numbersnumber the lines of plain text, source code, JSON and Markdown source (# toggles, : goes to a line)
-S, --chop-long-linescut long lines at the right edge instead of wrapping them, as less -S does (S toggles, arrows scroll sideways)
--colsstringshow only these columns of a table, by header or letter: name,name
--colnstringshow 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