How to capture full-screen webview


I have a webview wich have offscreen content and I want to capture the whole page.
When a make a capturePage page I only have a truncated page with the visible part. Even if I specify a larger rectangle I have the same screenshot.
Is it possible with capturePage to capture offscreen elements or there is another solution to capture these?