Remove Links/Color Issue in Compile to PDF

The problem is very similar to this one, which doesn’t appear to have ever received a reply.