Support in functions for PDF references.
This gives support for Issue #3