automatic pdf link detection