Basic pdf generator code there, but problems with permissions - get return code 77 from soffice - don't know why...