import java.io.IOException;
import java.util.concurrent.TimeUnit;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.firefox.FirefoxDriver;
public class PDFreader {
public static void main(String[] args) throws InterruptedException, IOException{
WebDriver driver;
driver=new FirefoxDriver();
driver.get("http://www.ptutorial.com/java-pdf/java-programs-examples-with-output-pdf.pdf");
driver.manage().timeouts().implicitlyWait(10, TimeUnit.SECONDS);
}
}