set pdf metadata and add link for TOC