commit
						cdb3481d6c
					
				@ -90,7 +90,7 @@
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
  /**
 | 
					  /**
 | 
				
			||||||
   * If another page rendering in progress, waits until the rendering is
 | 
					   * If another page rendering in progress, waits until the rendering is
 | 
				
			||||||
   * finised. Otherwise, executes rendering immediately.
 | 
					   * finished. Otherwise, executes rendering immediately.
 | 
				
			||||||
   */
 | 
					   */
 | 
				
			||||||
  function queueRenderPage(num) {
 | 
					  function queueRenderPage(num) {
 | 
				
			||||||
    if (pageRendering) {
 | 
					    if (pageRendering) {
 | 
				
			||||||
 | 
				
			|||||||
@ -3161,7 +3161,7 @@ class HighlightAnnotation extends MarkupAnnotation {
 | 
				
			|||||||
          // Workaround for cases where there's no /ExtGState-entry directly
 | 
					          // Workaround for cases where there's no /ExtGState-entry directly
 | 
				
			||||||
          // available, e.g. when the appearance stream contains a /XObject of
 | 
					          // available, e.g. when the appearance stream contains a /XObject of
 | 
				
			||||||
          // the /Form-type, since that causes the highlighting to completely
 | 
					          // the /Form-type, since that causes the highlighting to completely
 | 
				
			||||||
          // obsure the PDF content below it (fixes issue13242.pdf).
 | 
					          // obscure the PDF content below it (fixes issue13242.pdf).
 | 
				
			||||||
          warn("HighlightAnnotation - ignoring built-in appearance stream.");
 | 
					          warn("HighlightAnnotation - ignoring built-in appearance stream.");
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
        // Default color is yellow in Acrobat Reader
 | 
					        // Default color is yellow in Acrobat Reader
 | 
				
			||||||
 | 
				
			|||||||
@ -29,7 +29,7 @@ import {
 | 
				
			|||||||
} from "./charsets.js";
 | 
					} from "./charsets.js";
 | 
				
			||||||
import { ExpertEncoding, StandardEncoding } from "./encodings.js";
 | 
					import { ExpertEncoding, StandardEncoding } from "./encodings.js";
 | 
				
			||||||
 | 
					
 | 
				
			||||||
// Maximum subroutine call depth of type 2 chartrings. Matches OTS.
 | 
					// Maximum subroutine call depth of type 2 charstrings. Matches OTS.
 | 
				
			||||||
const MAX_SUBR_NESTING = 10;
 | 
					const MAX_SUBR_NESTING = 10;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
/**
 | 
					/**
 | 
				
			||||||
 | 
				
			|||||||
@ -436,7 +436,7 @@ class PartialEvaluator {
 | 
				
			|||||||
    if (!data) {
 | 
					    if (!data) {
 | 
				
			||||||
      return null;
 | 
					      return null;
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
    // Cache the "raw" standard font data, to avoid fetching it repeateadly
 | 
					    // Cache the "raw" standard font data, to avoid fetching it repeatedly
 | 
				
			||||||
    // (see e.g. issue 11399).
 | 
					    // (see e.g. issue 11399).
 | 
				
			||||||
    this.standardFontDataCache.set(name, data);
 | 
					    this.standardFontDataCache.set(name, data);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
				
			|||||||
@ -280,7 +280,7 @@ class StructTreePage {
 | 
				
			|||||||
  }
 | 
					  }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  /**
 | 
					  /**
 | 
				
			||||||
   * Convert the tree structure into a simplifed object literal that can
 | 
					   * Convert the tree structure into a simplified object literal that can
 | 
				
			||||||
   * be sent to the main thread.
 | 
					   * be sent to the main thread.
 | 
				
			||||||
   * @returns {Object}
 | 
					   * @returns {Object}
 | 
				
			||||||
   */
 | 
					   */
 | 
				
			||||||
 | 
				
			|||||||
@ -172,7 +172,7 @@ class WorkerMessageHandler {
 | 
				
			|||||||
      // Check that at least the first page can be successfully loaded,
 | 
					      // Check that at least the first page can be successfully loaded,
 | 
				
			||||||
      // since otherwise the XRef table is definitely not valid.
 | 
					      // since otherwise the XRef table is definitely not valid.
 | 
				
			||||||
      await pdfManager.ensureDoc("checkFirstPage", [recoveryMode]);
 | 
					      await pdfManager.ensureDoc("checkFirstPage", [recoveryMode]);
 | 
				
			||||||
      // Check that the last page can be sucessfully loaded, to ensure that
 | 
					      // Check that the last page can be successfully loaded, to ensure that
 | 
				
			||||||
      // `numPages` is correct, and fallback to walking the entire /Pages-tree.
 | 
					      // `numPages` is correct, and fallback to walking the entire /Pages-tree.
 | 
				
			||||||
      await pdfManager.ensureDoc("checkLastPage", [recoveryMode]);
 | 
					      await pdfManager.ensureDoc("checkLastPage", [recoveryMode]);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
				
			|||||||
@ -80,7 +80,7 @@ const TOKEN = {
 | 
				
			|||||||
  string: 22,
 | 
					  string: 22,
 | 
				
			||||||
  this: 23,
 | 
					  this: 23,
 | 
				
			||||||
  times: 24,
 | 
					  times: 24,
 | 
				
			||||||
  identifier: 25, // in main statments too
 | 
					  identifier: 25, // in main statements too
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  /* Main statements */
 | 
					  /* Main statements */
 | 
				
			||||||
  break: 26,
 | 
					  break: 26,
 | 
				
			||||||
 | 
				
			|||||||
@ -68,7 +68,7 @@ function parseIndex(index) {
 | 
				
			|||||||
  return parseInt(index, 10) || 0;
 | 
					  return parseInt(index, 10) || 0;
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
// For now expressions containaing .[...] or .(...) are not
 | 
					// For now expressions containing .[...] or .(...) are not
 | 
				
			||||||
// evaluated so don't parse them.
 | 
					// evaluated so don't parse them.
 | 
				
			||||||
// TODO: implement that stuff and the remove the noExpr param.
 | 
					// TODO: implement that stuff and the remove the noExpr param.
 | 
				
			||||||
function parseExpression(expr, dotDotAllowed, noExpr = true) {
 | 
					function parseExpression(expr, dotDotAllowed, noExpr = true) {
 | 
				
			||||||
 | 
				
			|||||||
@ -440,7 +440,7 @@ class XFAObject {
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
  /**
 | 
					  /**
 | 
				
			||||||
   * Update the node with properties coming from a prototype and apply
 | 
					   * Update the node with properties coming from a prototype and apply
 | 
				
			||||||
   * this function recursivly to all children.
 | 
					   * this function recursively to all children.
 | 
				
			||||||
   */
 | 
					   */
 | 
				
			||||||
  [$resolvePrototypes](ids, ancestors = new Set()) {
 | 
					  [$resolvePrototypes](ids, ancestors = new Set()) {
 | 
				
			||||||
    for (const child of this[_children]) {
 | 
					    for (const child of this[_children]) {
 | 
				
			||||||
 | 
				
			|||||||
@ -43,7 +43,7 @@ const MAX_FONT_SIZE = 100;
 | 
				
			|||||||
const MAX_GROUP_SIZE = 4096;
 | 
					const MAX_GROUP_SIZE = 4096;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
// Defines the time the `executeOperatorList`-method is going to be executing
 | 
					// Defines the time the `executeOperatorList`-method is going to be executing
 | 
				
			||||||
// before it stops and shedules a continue of execution.
 | 
					// before it stops and schedules a continue of execution.
 | 
				
			||||||
const EXECUTION_TIME = 15; // ms
 | 
					const EXECUTION_TIME = 15; // ms
 | 
				
			||||||
// Defines the number of steps before checking the execution time.
 | 
					// Defines the number of steps before checking the execution time.
 | 
				
			||||||
const EXECUTION_STEPS = 10;
 | 
					const EXECUTION_STEPS = 10;
 | 
				
			||||||
 | 
				
			|||||||
@ -563,7 +563,7 @@ class TilingPattern {
 | 
				
			|||||||
    let adjustedY0 = y0;
 | 
					    let adjustedY0 = y0;
 | 
				
			||||||
    let adjustedX1 = x1;
 | 
					    let adjustedX1 = x1;
 | 
				
			||||||
    let adjustedY1 = y1;
 | 
					    let adjustedY1 = y1;
 | 
				
			||||||
    // Some bounding boxes have negative x0/y0 cordinates which will cause the
 | 
					    // Some bounding boxes have negative x0/y0 coordinates which will cause the
 | 
				
			||||||
    // some of the drawing to be off of the canvas. To avoid this shift the
 | 
					    // some of the drawing to be off of the canvas. To avoid this shift the
 | 
				
			||||||
    // bounding box over.
 | 
					    // bounding box over.
 | 
				
			||||||
    if (x0 < 0) {
 | 
					    if (x0 < 0) {
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user