A side effect of replacing entire pages with images is that the file size will expand dramatically. Most PDFs only contain a couple of images

It might be feasible to have an intermediate AI call take the generated image and slice it into individual text and image elements that it would then render into the pdf page