Fix mediaBox check (regr. of #519)
This commit is contained in:
		
							parent
							
								
									5f83273e44
								
							
						
					
					
						commit
						2ad3a8bd1c
					
				
							
								
								
									
										2
									
								
								pdf.js
									
									
									
									
									
								
							
							
						
						
									
										2
									
								
								pdf.js
									
									
									
									
									
								
							@ -3322,7 +3322,7 @@ var Page = (function pagePage() {
 | 
			
		||||
    get mediaBox() {
 | 
			
		||||
      var obj = this.inheritPageProp('MediaBox');
 | 
			
		||||
      // Reset invalid media box to letter size.
 | 
			
		||||
      if (!IsArray(obj) || obj.length === 4)
 | 
			
		||||
      if (!IsArray(obj) || obj.length !== 4)
 | 
			
		||||
        obj = [0, 0, 612, 792];
 | 
			
		||||
      return shadow(this, 'mediaBox', obj);
 | 
			
		||||
    },
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user