Download using a URL (usually from the web). This source uses URL#openConnection() to access the PDF resource.
URL#openConnection()