It is plain text output
just output to a file uci export > /tmp/uci_export.txt
then use a text to pdf conveter after you copy it to your pc ( or just cut and paste)
You could also just use your favourite word-processor and save as pdf
This is a small piece from the flat format (UCI)
There is a particularly large number of array based values in dhcp, so it gives a false impression of how useful your system is. Arrays aren't used at all in for instance Adblock, so you will just get a header line and a single data line with 164 columns. Making a special case for arrays is also a bit of a hack, and the code for encoding and decoding it wouldn't be very nice. I actually thought about writing it just to prove my point, but it's too messy and not very useful. Sorry.
While CSV is a common interchange format for spreadsheets, I don't know that it can represent hierarchical data in a reasonable way. As @per has noted, there are very few flat "arrays" in a typical configuration. Pretty much everything is going to require its own "special" table, making readability and parsability poor, in my opinion.
If you're looking for a good way to communicate the configuration, the configuration files themselves are well suited for that, especially as that is what drives the run-time configuration.
If you're looking for an interchange format to convert between various renderings, something that represents hierarchical data would be much more appropriate than CSV. JSON is one example of such a format, as would be XML.
You'are both right, but what I need in the first is only the DHCP and hosts lists, like in the luci web app, but in a printable way...
Because the luci web app do not show the all information in a browser, and because they are not copy/pastable...