if the custom record is on the invoice you should ...
# advancedpdf
c
if the custom record is on the invoice you should be able to get to the data on it