I followed the code from this site. But I had to remove the caching part and was able to make it work.
When I viewed the generated PDF file, it only contains the login page. Does it mean that iText can't identify the current session? Note that I placed the 'create pdf' link in the page where it contains the layout that needs to be converted, and that page is indeed secured by acegi.
I'm using acegi 0.5.2, iText 2.0.8.
Hope someone can enlighten me. Thanks.