Hi there,
For the method addProperties the key "company" must start with uppercase letter "Company", otherwise it won't work. This caused quite a confusing problem since the name of the company may as well be taken from the document template.
It took a while to notice that your code sample used the different start case than is mentioned in the documentation.
Please, correct this.
Best Regards, JH