Replace all insert tags when exporting a page as PDF (see #5990)