generating pdf template in custom module

Hi @mikebeck, the link you provided is awesome.
But i’m still not able to insert variables from related modules.

Use case: i’m building the PDF functionality for Meetings module
where i have a relationship 1:1 with a custom module: LS_Rapporti

The relationship name is: meetings_ls_rapporti_1

Values of all fields coming from that relationship, like: $meetings_ls_rapporti_1_name_description
are not printed: Result is empty.

Did anyone succeded with printing related modules variables?