- Blog/
Creating pdf tables from data files with groff
·51 words·1 min
Given a comma separated file with two columns named test.csv, groff can lay this out with the following code:
.TS
allbox, tab(,);
lb rb
l r.
.so test.csv
.TE
To make this work, remember to use the -s
flag like so:
groff -s -t test.txt -T pdf | save test.pdf -f