It might be because of larger size of PDF.
Try with giving pageRange parameter with devtools.send();
Example : Optional.of("1-3")