1
0
Fork 0
mirror of https://github.com/mozilla/pdf.js.git synced 2025-04-25 09:38:06 +02:00

Merge pull request #14764 from apeltop/correct-typos

Correct typos
This commit is contained in:
Tim van der Meij 2022-04-10 14:55:08 +02:00 committed by GitHub
commit cdb3481d6c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
11 changed files with 11 additions and 11 deletions

View file

@ -3161,7 +3161,7 @@ class HighlightAnnotation extends MarkupAnnotation {
// Workaround for cases where there's no /ExtGState-entry directly
// available, e.g. when the appearance stream contains a /XObject of
// 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.");
}
// Default color is yellow in Acrobat Reader

View file

@ -29,7 +29,7 @@ import {
} from "./charsets.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;
/**

View file

@ -436,7 +436,7 @@ class PartialEvaluator {
if (!data) {
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).
this.standardFontDataCache.set(name, data);

View file

@ -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.
* @returns {Object}
*/

View file

@ -172,7 +172,7 @@ class WorkerMessageHandler {
// Check that at least the first page can be successfully loaded,
// since otherwise the XRef table is definitely not valid.
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.
await pdfManager.ensureDoc("checkLastPage", [recoveryMode]);

View file

@ -80,7 +80,7 @@ const TOKEN = {
string: 22,
this: 23,
times: 24,
identifier: 25, // in main statments too
identifier: 25, // in main statements too
/* Main statements */
break: 26,

View file

@ -68,7 +68,7 @@ function parseIndex(index) {
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.
// TODO: implement that stuff and the remove the noExpr param.
function parseExpression(expr, dotDotAllowed, noExpr = true) {

View file

@ -440,7 +440,7 @@ class XFAObject {
/**
* 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()) {
for (const child of this[_children]) {