Log.debug theRender just before you call renderAsP...
# general
a
Log.debug theRender just before you call renderAsPdf?