**Link to PDF file (or attach file here):**
[tocheckFile.pdf](https://github.com/mozilla/pdf.js/files/240714/tocheckFile.pdf)

**Configuration:**
- Web browser and its version: FF45.0.2, Chrome Version 50.0.2661.86 (64-bit) 
- Operating system and its version: Mac OSX El Capitan

**\- PDF.js version:**
PDFJS.version = '1.1.215';
PDFJS.build = 'c9a7498';

**Steps to reproduce the problem:**
1. Use the lib to generate a PDF preview.

**What is the expected behavior? (add screenshot)**
PDF preview should have rendered completely. (frog head should be complete)

**What went wrong? (add screenshot)**
<img width="952" alt="imagesnotrenderinginpreview" src="https://cloud.githubusercontent.com/assets/10231850/14889265/cecb2d64-0d66-11e6-98e1-da2d39728552.png">

See attached screenshot in regards to the pdf file

Link to a viewer (if hosted on a site other than mozilla.github.io/pdf.js or as Firefox/Chrome extension):

* See the License for the specific language governing permissions and
 * limitations under the License.
 */
import {
  FONT_IDENTITY_MATRIX,
  IDENTITY_MATRIX,
  ImageKind,
  info,
  IsLittleEndianCached,
  isNum,
  OPS,
  shadow,
  TextRenderingMode,
  unreachable,
  Util,
  warn,
} from "../shared/util.js";
import { getShadingPattern, TilingPattern } from "./pattern_helper.js";
import { PixelsPerInch } from "./display_utils.js";
const MIN_FONT_SIZE = 16;
const MAX_FONT_SIZE = 100;
const MAX_GROUP_SIZE = 4096;
const MAX_CACHED_CANVAS_PATTERNS = 2;
const EXECUTION_TIME = 15; 
const EXECUTION_STEPS = 10;
const COMPILE_TYPE3_GLYPHS = true;
const MAX_SIZE_TO_COMPILE = 1000;
const FULL_CHUNK_HEIGHT = 16;
const LINEWIDTH_SCALE_FACTOR = 1.000001;
function addContextCurrentTransform(ctx) {