PDF viewer changed to use postMessage so it works in widget context as
well