UI: document settings in a box, page size presets. API updates