AdvGridPDFIO in multiple grids

Ok.
Is there some example code on how to produce almost the same PDF output as TAdvGridPDFIO does?