Refactored PDF Link handler.