We are running into an intermittent and puzzling error when trying to call ‘setFitMode(FitMode.FitWidth)’. About 5 - 10% of the time, this function call will squish all of the pages contents to the left of the viewer area, instead of actually fitting it to the page like it normally does and is expected to.
This appears to be consistent across any PDFs we load. I think it is best explained by looking at the comparison images:
A fix or workaround for this fix would be much appreciated, as I have no idea why it pops up once every 20 loads or so. The intermittent aspect has made it very difficult to debug.