Runs PDFium's FPDFPage_GenerateContent on page, persisting
every page-object / annotation / form-field mutation that has
accumulated since the page was loaded into the page's content
stream. The render paths (pdf_render_page(),
pdf_render_page_with_matrix()) and pdf_save() all flush
automatically; calling pdf_page_flush() explicitly is useful
when a downstream tool peeks at the in-memory PDF (e.g. via
pdf_save_to_raw() with intermediate inspection) and you want
the latest edits to be visible without round-tripping through
disk.
Arguments
- page
A
pdfium_pagefrompdf_page_load().
Details
The function is idempotent: calling it on a clean page is a no-op. After the flush the page is removed from the document's dirty-pages set, so subsequent renders won't redundantly re-flush.