I found out what caused the exception, when I generate the pdf, I use generatePDFOutput and I didn't have the property "render at client" set to "Yes".When I changed it to "Yes", it worked.Now everything seems ok, but my numPages is always 1. Can someone tell me why this isn't the real number of pag...