Support for macro resolving in PDF exports