function putXObjectsDictCallback() {
    var images = this.internal.collections[namespace + 'images'],
        out = this.internal.write,
        image;

    for (var i in images) {
      image = images[i];
      out('/I' + image['i'], image['n'], '0', 'R');
    }
  }
function putXObjectsDictCallback() {
    var images = this.internal.collections[namespace + 'images'],
        out = this.internal.write,
        image;

    for (var i in images) {
      image = images[i];
      out('/I' + image['i'], image['n'], '0', 'R');
    }
  }
function putXObjectsDictCallback ( ) { var images = this . internal . collections [ namespace + 'images' ] , out = this . internal . write , image ; for ( var i in images ) { image = images [ i ] ; out ( '/I' + image [ 'i' ] , image [ 'n' ] , '0' , 'R' ) ; } }
Image functionality ported from pdf.js
Image functionality ported from pdf . js