So I am currently trying to print a pdf that I have loaded into a WebView in a Cocoa application, which is sized to where if you want to see the whole thing you have to scroll. The problem is that whenever it prints, it only prints what is currently displayed in the WebView and not the entirety of the page, with code like this:

```
    [[[[WebView mainFrame] frameView] documentView] print:sender];

```

I'm not sure if I am just trying to print the wrong part of it, or just need to go about this in another way, and would greatly appreciate some help.