I'm using this example by Ulrich Krause http://www.eknori.de/2011-10-25/xpages-to-pdf-with-itext/
And it works great but when you have clicked on the button the PDF is returned to the user. Any SSJS clicks is dead on the page for a while. Like a timeout, Any ideas how to I fix it ?