Adapt to support PDF.js v1.0.907