Merged document viewing function.