Disabling PDF viewer in public mode

The PDF viewer is currently not able to correctly load a file through
the public API, so disabling it for now in that mode.