OnGetDocument and OnCreateDocument can be overridden in the ASP.NET Web API ReportsController to modify the report documents as explained in the KB Modify exported report document prior to serving it to the viewer client.
In ASP.NET Core this is not possible as OnGetDocument and OnCreateDocument don't exist.