I'm using the LCES2 OutputClient to render a flat pdf (or a PDF/A) out of xdp plus xml data. Beside the rendered PDF the call returns a nice statusDoc with several details about the rendering. But what I'm missing is the number of pages of the produced PDF. Can it be retrieved somewhere else out of the OutputResult?
When rendering interactive forms using the FormsServiceClient the resulting object offers the function getPageCount(). But unfortunateley this api does not support rendering of flat PDFs.