Document generator library