merged document generation with pages dir