SDoc2Pdf is a Scala library that makes it easy to create complex PDFs from Odt or Docx template