See https://github.com/atgp/factur-x See also samples of PDF in https://github.com/dolicloud/dolimods/htdocs/facturxutil/doc