File replacement within document