Two grids exported at the same time


I have this master/detail form which once they’re edited I want to create a grid with the master and detail in two grids (header and detail) in the same page.
Then export this two into one PDF,

My question is, is it possible?

Thanks in advance!