Fix add_url() with local files.
Add PDF test and fix page number.