Hey, Vaishnavi! You could try to disable the Chrome PDF plugin and download the promt window with desired capabilities. Something like this:
DesiredCapabilities cap = DesiredCapabilities.chrome();
cap.setCapability("plugins.plugins_disabled","Chrome PDF Viewer");
WebDriver driver = new ChromeDriver(cap);
Or you can add the options.AddArgument("---printing"); to automatically click the print button.
This is working for me. For further understanding, you can refer to the Selenium Course.
Hope this was helpful