Edit File by line

Deprecated: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in /home/sportsfever/public_html/filemanger/function.php on line 93

Warning: Undefined array key "page_file_edit_line" in /home/sportsfever/public_html/filemanger/edit_text_line.php on line 32
/home/sportsfe.../httpdocs/clone/wp-conte.../plugins/embedpre.../assets/pdf/build
File: script.js
src = {
[15500] Fix | Delete
data: src
[15501] Fix | Delete
};
[15502] Fix | Delete
}
[15503] Fix | Delete
if (typeof src !== "object") {
[15504] Fix | Delete
throw new Error("Invalid parameter in getDocument, need parameter object.");
[15505] Fix | Delete
}
[15506] Fix | Delete
if (!src.url && !src.data && !src.range) {
[15507] Fix | Delete
throw new Error("Invalid parameter object: need either .data, .range or .url");
[15508] Fix | Delete
}
[15509] Fix | Delete
const task = new PDFDocumentLoadingTask();
[15510] Fix | Delete
const {
[15511] Fix | Delete
docId
[15512] Fix | Delete
} = task;
[15513] Fix | Delete
const url = src.url ? getUrlProp(src.url) : null;
[15514] Fix | Delete
const data = src.data ? getDataProp(src.data) : null;
[15515] Fix | Delete
const httpHeaders = src.httpHeaders || null;
[15516] Fix | Delete
const withCredentials = src.withCredentials === true;
[15517] Fix | Delete
const password = src.password ?? null;
[15518] Fix | Delete
const rangeTransport = src.range instanceof PDFDataRangeTransport ? src.range : null;
[15519] Fix | Delete
const rangeChunkSize = Number.isInteger(src.rangeChunkSize) && src.rangeChunkSize > 0 ? src.rangeChunkSize : DEFAULT_RANGE_CHUNK_SIZE;
[15520] Fix | Delete
let worker = src.worker instanceof PDFWorker ? src.worker : null;
[15521] Fix | Delete
const verbosity = src.verbosity;
[15522] Fix | Delete
const docBaseUrl = typeof src.docBaseUrl === "string" && !isDataScheme(src.docBaseUrl) ? src.docBaseUrl : null;
[15523] Fix | Delete
const cMapUrl = typeof src.cMapUrl === "string" ? src.cMapUrl : null;
[15524] Fix | Delete
const cMapPacked = src.cMapPacked !== false;
[15525] Fix | Delete
const CMapReaderFactory = src.CMapReaderFactory || DefaultCMapReaderFactory;
[15526] Fix | Delete
const standardFontDataUrl = typeof src.standardFontDataUrl === "string" ? src.standardFontDataUrl : null;
[15527] Fix | Delete
const StandardFontDataFactory = src.StandardFontDataFactory || DefaultStandardFontDataFactory;
[15528] Fix | Delete
const ignoreErrors = src.stopAtErrors !== true;
[15529] Fix | Delete
const maxImageSize = Number.isInteger(src.maxImageSize) && src.maxImageSize > -1 ? src.maxImageSize : -1;
[15530] Fix | Delete
const isEvalSupported = src.isEvalSupported !== false;
[15531] Fix | Delete
const isOffscreenCanvasSupported = typeof src.isOffscreenCanvasSupported === "boolean" ? src.isOffscreenCanvasSupported : !isNodeJS;
[15532] Fix | Delete
const canvasMaxAreaInBytes = Number.isInteger(src.canvasMaxAreaInBytes) ? src.canvasMaxAreaInBytes : -1;
[15533] Fix | Delete
const disableFontFace = typeof src.disableFontFace === "boolean" ? src.disableFontFace : isNodeJS;
[15534] Fix | Delete
const fontExtraProperties = src.fontExtraProperties === true;
[15535] Fix | Delete
const enableXfa = src.enableXfa === true;
[15536] Fix | Delete
const ownerDocument = src.ownerDocument || globalThis.document;
[15537] Fix | Delete
const disableRange = src.disableRange === true;
[15538] Fix | Delete
const disableStream = src.disableStream === true;
[15539] Fix | Delete
const disableAutoFetch = src.disableAutoFetch === true;
[15540] Fix | Delete
const pdfBug = src.pdfBug === true;
[15541] Fix | Delete
const length = rangeTransport ? rangeTransport.length : src.length ?? NaN;
[15542] Fix | Delete
const useSystemFonts = typeof src.useSystemFonts === "boolean" ? src.useSystemFonts : !isNodeJS && !disableFontFace;
[15543] Fix | Delete
const useWorkerFetch = typeof src.useWorkerFetch === "boolean" ? src.useWorkerFetch : CMapReaderFactory === DOMCMapReaderFactory && StandardFontDataFactory === DOMStandardFontDataFactory && cMapUrl && standardFontDataUrl && isValidFetchUrl(cMapUrl, document.baseURI) && isValidFetchUrl(standardFontDataUrl, document.baseURI);
[15544] Fix | Delete
const canvasFactory = src.canvasFactory || new DefaultCanvasFactory({
[15545] Fix | Delete
ownerDocument
[15546] Fix | Delete
});
[15547] Fix | Delete
const filterFactory = src.filterFactory || new DefaultFilterFactory({
[15548] Fix | Delete
docId,
[15549] Fix | Delete
ownerDocument
[15550] Fix | Delete
});
[15551] Fix | Delete
const styleElement = null;
[15552] Fix | Delete
setVerbosityLevel(verbosity);
[15553] Fix | Delete
const transportFactory = {
[15554] Fix | Delete
canvasFactory,
[15555] Fix | Delete
filterFactory
[15556] Fix | Delete
};
[15557] Fix | Delete
if (!useWorkerFetch) {
[15558] Fix | Delete
transportFactory.cMapReaderFactory = new CMapReaderFactory({
[15559] Fix | Delete
baseUrl: cMapUrl,
[15560] Fix | Delete
isCompressed: cMapPacked
[15561] Fix | Delete
});
[15562] Fix | Delete
transportFactory.standardFontDataFactory = new StandardFontDataFactory({
[15563] Fix | Delete
baseUrl: standardFontDataUrl
[15564] Fix | Delete
});
[15565] Fix | Delete
}
[15566] Fix | Delete
if (!worker) {
[15567] Fix | Delete
const workerParams = {
[15568] Fix | Delete
verbosity,
[15569] Fix | Delete
port: GlobalWorkerOptions.workerPort
[15570] Fix | Delete
};
[15571] Fix | Delete
worker = workerParams.port ? PDFWorker.fromPort(workerParams) : new PDFWorker(workerParams);
[15572] Fix | Delete
task._worker = worker;
[15573] Fix | Delete
}
[15574] Fix | Delete
const docParams = {
[15575] Fix | Delete
docId,
[15576] Fix | Delete
apiVersion: "4.3.136",
[15577] Fix | Delete
data,
[15578] Fix | Delete
password,
[15579] Fix | Delete
disableAutoFetch,
[15580] Fix | Delete
rangeChunkSize,
[15581] Fix | Delete
length,
[15582] Fix | Delete
docBaseUrl,
[15583] Fix | Delete
enableXfa,
[15584] Fix | Delete
evaluatorOptions: {
[15585] Fix | Delete
maxImageSize,
[15586] Fix | Delete
disableFontFace,
[15587] Fix | Delete
ignoreErrors,
[15588] Fix | Delete
isEvalSupported,
[15589] Fix | Delete
isOffscreenCanvasSupported,
[15590] Fix | Delete
canvasMaxAreaInBytes,
[15591] Fix | Delete
fontExtraProperties,
[15592] Fix | Delete
useSystemFonts,
[15593] Fix | Delete
cMapUrl: useWorkerFetch ? cMapUrl : null,
[15594] Fix | Delete
standardFontDataUrl: useWorkerFetch ? standardFontDataUrl : null
[15595] Fix | Delete
}
[15596] Fix | Delete
};
[15597] Fix | Delete
const transportParams = {
[15598] Fix | Delete
disableFontFace,
[15599] Fix | Delete
fontExtraProperties,
[15600] Fix | Delete
ownerDocument,
[15601] Fix | Delete
pdfBug,
[15602] Fix | Delete
styleElement,
[15603] Fix | Delete
loadingParams: {
[15604] Fix | Delete
disableAutoFetch,
[15605] Fix | Delete
enableXfa
[15606] Fix | Delete
}
[15607] Fix | Delete
};
[15608] Fix | Delete
worker.promise.then(function () {
[15609] Fix | Delete
if (task.destroyed) {
[15610] Fix | Delete
throw new Error("Loading aborted");
[15611] Fix | Delete
}
[15612] Fix | Delete
if (worker.destroyed) {
[15613] Fix | Delete
throw new Error("Worker was destroyed");
[15614] Fix | Delete
}
[15615] Fix | Delete
const workerIdPromise = worker.messageHandler.sendWithPromise("GetDocRequest", docParams, data ? [data.buffer] : null);
[15616] Fix | Delete
let networkStream;
[15617] Fix | Delete
if (rangeTransport) {
[15618] Fix | Delete
networkStream = new PDFDataTransportStream(rangeTransport, {
[15619] Fix | Delete
disableRange,
[15620] Fix | Delete
disableStream
[15621] Fix | Delete
});
[15622] Fix | Delete
} else if (!data) {
[15623] Fix | Delete
const createPDFNetworkStream = params => {
[15624] Fix | Delete
if (isNodeJS) {
[15625] Fix | Delete
const isFetchSupported = function () {
[15626] Fix | Delete
return typeof fetch !== "undefined" && typeof Response !== "undefined" && "body" in Response.prototype;
[15627] Fix | Delete
};
[15628] Fix | Delete
return isFetchSupported() && isValidFetchUrl(params.url) ? new PDFFetchStream(params) : new PDFNodeStream(params);
[15629] Fix | Delete
}
[15630] Fix | Delete
return isValidFetchUrl(params.url) ? new PDFFetchStream(params) : new PDFNetworkStream(params);
[15631] Fix | Delete
};
[15632] Fix | Delete
networkStream = createPDFNetworkStream({
[15633] Fix | Delete
url,
[15634] Fix | Delete
length,
[15635] Fix | Delete
httpHeaders,
[15636] Fix | Delete
withCredentials,
[15637] Fix | Delete
rangeChunkSize,
[15638] Fix | Delete
disableRange,
[15639] Fix | Delete
disableStream
[15640] Fix | Delete
});
[15641] Fix | Delete
}
[15642] Fix | Delete
return workerIdPromise.then(workerId => {
[15643] Fix | Delete
if (task.destroyed) {
[15644] Fix | Delete
throw new Error("Loading aborted");
[15645] Fix | Delete
}
[15646] Fix | Delete
if (worker.destroyed) {
[15647] Fix | Delete
throw new Error("Worker was destroyed");
[15648] Fix | Delete
}
[15649] Fix | Delete
const messageHandler = new MessageHandler(docId, workerId, worker.port);
[15650] Fix | Delete
const transport = new WorkerTransport(messageHandler, task, networkStream, transportParams, transportFactory);
[15651] Fix | Delete
task._transport = transport;
[15652] Fix | Delete
messageHandler.send("Ready", null);
[15653] Fix | Delete
});
[15654] Fix | Delete
}).catch(task._capability.reject);
[15655] Fix | Delete
return task;
[15656] Fix | Delete
}
[15657] Fix | Delete
function getUrlProp(val) {
[15658] Fix | Delete
if (val instanceof URL) {
[15659] Fix | Delete
return val.href;
[15660] Fix | Delete
}
[15661] Fix | Delete
try {
[15662] Fix | Delete
return new URL(val, window.location).href;
[15663] Fix | Delete
} catch {
[15664] Fix | Delete
if (isNodeJS && typeof val === "string") {
[15665] Fix | Delete
return val;
[15666] Fix | Delete
}
[15667] Fix | Delete
}
[15668] Fix | Delete
throw new Error("Invalid PDF url data: " + "either string or URL-object is expected in the url property.");
[15669] Fix | Delete
}
[15670] Fix | Delete
function getDataProp(val) {
[15671] Fix | Delete
if (isNodeJS && typeof Buffer !== "undefined" && val instanceof Buffer) {
[15672] Fix | Delete
throw new Error("Please provide binary data as `Uint8Array`, rather than `Buffer`.");
[15673] Fix | Delete
}
[15674] Fix | Delete
if (val instanceof Uint8Array && val.byteLength === val.buffer.byteLength) {
[15675] Fix | Delete
return val;
[15676] Fix | Delete
}
[15677] Fix | Delete
if (typeof val === "string") {
[15678] Fix | Delete
return stringToBytes(val);
[15679] Fix | Delete
}
[15680] Fix | Delete
if (val instanceof ArrayBuffer || ArrayBuffer.isView(val) || typeof val === "object" && !isNaN(val?.length)) {
[15681] Fix | Delete
return new Uint8Array(val);
[15682] Fix | Delete
}
[15683] Fix | Delete
throw new Error("Invalid PDF binary data: either TypedArray, " + "string, or array-like object is expected in the data property.");
[15684] Fix | Delete
}
[15685] Fix | Delete
function isRefProxy(ref) {
[15686] Fix | Delete
return typeof ref === "object" && Number.isInteger(ref?.num) && ref.num >= 0 && Number.isInteger(ref?.gen) && ref.gen >= 0;
[15687] Fix | Delete
}
[15688] Fix | Delete
class PDFDocumentLoadingTask {
[15689] Fix | Delete
static #docId = 0;
[15690] Fix | Delete
constructor() {
[15691] Fix | Delete
this._capability = Promise.withResolvers();
[15692] Fix | Delete
this._transport = null;
[15693] Fix | Delete
this._worker = null;
[15694] Fix | Delete
this.docId = `d${PDFDocumentLoadingTask.#docId++}`;
[15695] Fix | Delete
this.destroyed = false;
[15696] Fix | Delete
this.onPassword = null;
[15697] Fix | Delete
this.onProgress = null;
[15698] Fix | Delete
}
[15699] Fix | Delete
get promise() {
[15700] Fix | Delete
return this._capability.promise;
[15701] Fix | Delete
}
[15702] Fix | Delete
async destroy() {
[15703] Fix | Delete
this.destroyed = true;
[15704] Fix | Delete
try {
[15705] Fix | Delete
if (this._worker?.port) {
[15706] Fix | Delete
this._worker._pendingDestroy = true;
[15707] Fix | Delete
}
[15708] Fix | Delete
await this._transport?.destroy();
[15709] Fix | Delete
} catch (ex) {
[15710] Fix | Delete
if (this._worker?.port) {
[15711] Fix | Delete
delete this._worker._pendingDestroy;
[15712] Fix | Delete
}
[15713] Fix | Delete
throw ex;
[15714] Fix | Delete
}
[15715] Fix | Delete
this._transport = null;
[15716] Fix | Delete
if (this._worker) {
[15717] Fix | Delete
this._worker.destroy();
[15718] Fix | Delete
this._worker = null;
[15719] Fix | Delete
}
[15720] Fix | Delete
}
[15721] Fix | Delete
}
[15722] Fix | Delete
class PDFDataRangeTransport {
[15723] Fix | Delete
constructor(length, initialData, progressiveDone = false, contentDispositionFilename = null) {
[15724] Fix | Delete
this.length = length;
[15725] Fix | Delete
this.initialData = initialData;
[15726] Fix | Delete
this.progressiveDone = progressiveDone;
[15727] Fix | Delete
this.contentDispositionFilename = contentDispositionFilename;
[15728] Fix | Delete
this._rangeListeners = [];
[15729] Fix | Delete
this._progressListeners = [];
[15730] Fix | Delete
this._progressiveReadListeners = [];
[15731] Fix | Delete
this._progressiveDoneListeners = [];
[15732] Fix | Delete
this._readyCapability = Promise.withResolvers();
[15733] Fix | Delete
}
[15734] Fix | Delete
addRangeListener(listener) {
[15735] Fix | Delete
this._rangeListeners.push(listener);
[15736] Fix | Delete
}
[15737] Fix | Delete
addProgressListener(listener) {
[15738] Fix | Delete
this._progressListeners.push(listener);
[15739] Fix | Delete
}
[15740] Fix | Delete
addProgressiveReadListener(listener) {
[15741] Fix | Delete
this._progressiveReadListeners.push(listener);
[15742] Fix | Delete
}
[15743] Fix | Delete
addProgressiveDoneListener(listener) {
[15744] Fix | Delete
this._progressiveDoneListeners.push(listener);
[15745] Fix | Delete
}
[15746] Fix | Delete
onDataRange(begin, chunk) {
[15747] Fix | Delete
for (const listener of this._rangeListeners) {
[15748] Fix | Delete
listener(begin, chunk);
[15749] Fix | Delete
}
[15750] Fix | Delete
}
[15751] Fix | Delete
onDataProgress(loaded, total) {
[15752] Fix | Delete
this._readyCapability.promise.then(() => {
[15753] Fix | Delete
for (const listener of this._progressListeners) {
[15754] Fix | Delete
listener(loaded, total);
[15755] Fix | Delete
}
[15756] Fix | Delete
});
[15757] Fix | Delete
}
[15758] Fix | Delete
onDataProgressiveRead(chunk) {
[15759] Fix | Delete
this._readyCapability.promise.then(() => {
[15760] Fix | Delete
for (const listener of this._progressiveReadListeners) {
[15761] Fix | Delete
listener(chunk);
[15762] Fix | Delete
}
[15763] Fix | Delete
});
[15764] Fix | Delete
}
[15765] Fix | Delete
onDataProgressiveDone() {
[15766] Fix | Delete
this._readyCapability.promise.then(() => {
[15767] Fix | Delete
for (const listener of this._progressiveDoneListeners) {
[15768] Fix | Delete
listener();
[15769] Fix | Delete
}
[15770] Fix | Delete
});
[15771] Fix | Delete
}
[15772] Fix | Delete
transportReady() {
[15773] Fix | Delete
this._readyCapability.resolve();
[15774] Fix | Delete
}
[15775] Fix | Delete
requestDataRange(begin, end) {
[15776] Fix | Delete
unreachable("Abstract method PDFDataRangeTransport.requestDataRange");
[15777] Fix | Delete
}
[15778] Fix | Delete
abort() {}
[15779] Fix | Delete
}
[15780] Fix | Delete
class PDFDocumentProxy {
[15781] Fix | Delete
constructor(pdfInfo, transport) {
[15782] Fix | Delete
this._pdfInfo = pdfInfo;
[15783] Fix | Delete
this._transport = transport;
[15784] Fix | Delete
}
[15785] Fix | Delete
get annotationStorage() {
[15786] Fix | Delete
return this._transport.annotationStorage;
[15787] Fix | Delete
}
[15788] Fix | Delete
get filterFactory() {
[15789] Fix | Delete
return this._transport.filterFactory;
[15790] Fix | Delete
}
[15791] Fix | Delete
get numPages() {
[15792] Fix | Delete
return this._pdfInfo.numPages;
[15793] Fix | Delete
}
[15794] Fix | Delete
get fingerprints() {
[15795] Fix | Delete
return this._pdfInfo.fingerprints;
[15796] Fix | Delete
}
[15797] Fix | Delete
get isPureXfa() {
[15798] Fix | Delete
return shadow(this, "isPureXfa", !!this._transport._htmlForXfa);
[15799] Fix | Delete
}
[15800] Fix | Delete
get allXfaHtml() {
[15801] Fix | Delete
return this._transport._htmlForXfa;
[15802] Fix | Delete
}
[15803] Fix | Delete
getPage(pageNumber) {
[15804] Fix | Delete
return this._transport.getPage(pageNumber);
[15805] Fix | Delete
}
[15806] Fix | Delete
getPageIndex(ref) {
[15807] Fix | Delete
return this._transport.getPageIndex(ref);
[15808] Fix | Delete
}
[15809] Fix | Delete
getDestinations() {
[15810] Fix | Delete
return this._transport.getDestinations();
[15811] Fix | Delete
}
[15812] Fix | Delete
getDestination(id) {
[15813] Fix | Delete
return this._transport.getDestination(id);
[15814] Fix | Delete
}
[15815] Fix | Delete
getPageLabels() {
[15816] Fix | Delete
return this._transport.getPageLabels();
[15817] Fix | Delete
}
[15818] Fix | Delete
getPageLayout() {
[15819] Fix | Delete
return this._transport.getPageLayout();
[15820] Fix | Delete
}
[15821] Fix | Delete
getPageMode() {
[15822] Fix | Delete
return this._transport.getPageMode();
[15823] Fix | Delete
}
[15824] Fix | Delete
getViewerPreferences() {
[15825] Fix | Delete
return this._transport.getViewerPreferences();
[15826] Fix | Delete
}
[15827] Fix | Delete
getOpenAction() {
[15828] Fix | Delete
return this._transport.getOpenAction();
[15829] Fix | Delete
}
[15830] Fix | Delete
getAttachments() {
[15831] Fix | Delete
return this._transport.getAttachments();
[15832] Fix | Delete
}
[15833] Fix | Delete
getJSActions() {
[15834] Fix | Delete
return this._transport.getDocJSActions();
[15835] Fix | Delete
}
[15836] Fix | Delete
getOutline() {
[15837] Fix | Delete
return this._transport.getOutline();
[15838] Fix | Delete
}
[15839] Fix | Delete
getOptionalContentConfig({
[15840] Fix | Delete
intent = "display"
[15841] Fix | Delete
} = {}) {
[15842] Fix | Delete
const {
[15843] Fix | Delete
renderingIntent
[15844] Fix | Delete
} = this._transport.getRenderingIntent(intent);
[15845] Fix | Delete
return this._transport.getOptionalContentConfig(renderingIntent);
[15846] Fix | Delete
}
[15847] Fix | Delete
getPermissions() {
[15848] Fix | Delete
return this._transport.getPermissions();
[15849] Fix | Delete
}
[15850] Fix | Delete
getMetadata() {
[15851] Fix | Delete
return this._transport.getMetadata();
[15852] Fix | Delete
}
[15853] Fix | Delete
getMarkInfo() {
[15854] Fix | Delete
return this._transport.getMarkInfo();
[15855] Fix | Delete
}
[15856] Fix | Delete
getData() {
[15857] Fix | Delete
return this._transport.getData();
[15858] Fix | Delete
}
[15859] Fix | Delete
saveDocument() {
[15860] Fix | Delete
return this._transport.saveDocument();
[15861] Fix | Delete
}
[15862] Fix | Delete
getDownloadInfo() {
[15863] Fix | Delete
return this._transport.downloadInfoCapability.promise;
[15864] Fix | Delete
}
[15865] Fix | Delete
cleanup(keepLoadedFonts = false) {
[15866] Fix | Delete
return this._transport.startCleanup(keepLoadedFonts || this.isPureXfa);
[15867] Fix | Delete
}
[15868] Fix | Delete
destroy() {
[15869] Fix | Delete
return this.loadingTask.destroy();
[15870] Fix | Delete
}
[15871] Fix | Delete
cachedPageNumber(ref) {
[15872] Fix | Delete
return this._transport.cachedPageNumber(ref);
[15873] Fix | Delete
}
[15874] Fix | Delete
get loadingParams() {
[15875] Fix | Delete
return this._transport.loadingParams;
[15876] Fix | Delete
}
[15877] Fix | Delete
get loadingTask() {
[15878] Fix | Delete
return this._transport.loadingTask;
[15879] Fix | Delete
}
[15880] Fix | Delete
getFieldObjects() {
[15881] Fix | Delete
return this._transport.getFieldObjects();
[15882] Fix | Delete
}
[15883] Fix | Delete
hasJSActions() {
[15884] Fix | Delete
return this._transport.hasJSActions();
[15885] Fix | Delete
}
[15886] Fix | Delete
getCalculationOrderIds() {
[15887] Fix | Delete
return this._transport.getCalculationOrderIds();
[15888] Fix | Delete
}
[15889] Fix | Delete
}
[15890] Fix | Delete
class PDFPageProxy {
[15891] Fix | Delete
#delayedCleanupTimeout = null;
[15892] Fix | Delete
#pendingCleanup = false;
[15893] Fix | Delete
constructor(pageIndex, pageInfo, transport, pdfBug = false) {
[15894] Fix | Delete
this._pageIndex = pageIndex;
[15895] Fix | Delete
this._pageInfo = pageInfo;
[15896] Fix | Delete
this._transport = transport;
[15897] Fix | Delete
this._stats = pdfBug ? new StatTimer() : null;
[15898] Fix | Delete
this._pdfBug = pdfBug;
[15899] Fix | Delete
this.commonObjs = transport.commonObjs;
[15900] Fix | Delete
this.objs = new PDFObjects();
[15901] Fix | Delete
this._maybeCleanupAfterRender = false;
[15902] Fix | Delete
this._intentStates = new Map();
[15903] Fix | Delete
this.destroyed = false;
[15904] Fix | Delete
}
[15905] Fix | Delete
get pageNumber() {
[15906] Fix | Delete
return this._pageIndex + 1;
[15907] Fix | Delete
}
[15908] Fix | Delete
get rotate() {
[15909] Fix | Delete
return this._pageInfo.rotate;
[15910] Fix | Delete
}
[15911] Fix | Delete
get ref() {
[15912] Fix | Delete
return this._pageInfo.ref;
[15913] Fix | Delete
}
[15914] Fix | Delete
get userUnit() {
[15915] Fix | Delete
return this._pageInfo.userUnit;
[15916] Fix | Delete
}
[15917] Fix | Delete
get view() {
[15918] Fix | Delete
return this._pageInfo.view;
[15919] Fix | Delete
}
[15920] Fix | Delete
getViewport({
[15921] Fix | Delete
scale,
[15922] Fix | Delete
rotation = this.rotate,
[15923] Fix | Delete
offsetX = 0,
[15924] Fix | Delete
offsetY = 0,
[15925] Fix | Delete
dontFlip = false
[15926] Fix | Delete
} = {}) {
[15927] Fix | Delete
return new PageViewport({
[15928] Fix | Delete
viewBox: this.view,
[15929] Fix | Delete
scale,
[15930] Fix | Delete
rotation,
[15931] Fix | Delete
offsetX,
[15932] Fix | Delete
offsetY,
[15933] Fix | Delete
dontFlip
[15934] Fix | Delete
});
[15935] Fix | Delete
}
[15936] Fix | Delete
getAnnotations({
[15937] Fix | Delete
intent = "display"
[15938] Fix | Delete
} = {}) {
[15939] Fix | Delete
const {
[15940] Fix | Delete
renderingIntent
[15941] Fix | Delete
} = this._transport.getRenderingIntent(intent);
[15942] Fix | Delete
return this._transport.getAnnotations(this._pageIndex, renderingIntent);
[15943] Fix | Delete
}
[15944] Fix | Delete
getJSActions() {
[15945] Fix | Delete
return this._transport.getPageJSActions(this._pageIndex);
[15946] Fix | Delete
}
[15947] Fix | Delete
get filterFactory() {
[15948] Fix | Delete
return this._transport.filterFactory;
[15949] Fix | Delete
}
[15950] Fix | Delete
get isPureXfa() {
[15951] Fix | Delete
return shadow(this, "isPureXfa", !!this._transport._htmlForXfa);
[15952] Fix | Delete
}
[15953] Fix | Delete
async getXfa() {
[15954] Fix | Delete
return this._transport._htmlForXfa?.children[this._pageIndex] || null;
[15955] Fix | Delete
}
[15956] Fix | Delete
render({
[15957] Fix | Delete
canvasContext,
[15958] Fix | Delete
viewport,
[15959] Fix | Delete
intent = "display",
[15960] Fix | Delete
annotationMode = AnnotationMode.ENABLE,
[15961] Fix | Delete
transform = null,
[15962] Fix | Delete
background = null,
[15963] Fix | Delete
optionalContentConfigPromise = null,
[15964] Fix | Delete
annotationCanvasMap = null,
[15965] Fix | Delete
pageColors = null,
[15966] Fix | Delete
printAnnotationStorage = null
[15967] Fix | Delete
}) {
[15968] Fix | Delete
this._stats?.time("Overall");
[15969] Fix | Delete
const intentArgs = this._transport.getRenderingIntent(intent, annotationMode, printAnnotationStorage);
[15970] Fix | Delete
const {
[15971] Fix | Delete
renderingIntent,
[15972] Fix | Delete
cacheKey
[15973] Fix | Delete
} = intentArgs;
[15974] Fix | Delete
this.#pendingCleanup = false;
[15975] Fix | Delete
this.#abortDelayedCleanup();
[15976] Fix | Delete
optionalContentConfigPromise ||= this._transport.getOptionalContentConfig(renderingIntent);
[15977] Fix | Delete
let intentState = this._intentStates.get(cacheKey);
[15978] Fix | Delete
if (!intentState) {
[15979] Fix | Delete
intentState = Object.create(null);
[15980] Fix | Delete
this._intentStates.set(cacheKey, intentState);
[15981] Fix | Delete
}
[15982] Fix | Delete
if (intentState.streamReaderCancelTimeout) {
[15983] Fix | Delete
clearTimeout(intentState.streamReaderCancelTimeout);
[15984] Fix | Delete
intentState.streamReaderCancelTimeout = null;
[15985] Fix | Delete
}
[15986] Fix | Delete
const intentPrint = !!(renderingIntent & RenderingIntentFlag.PRINT);
[15987] Fix | Delete
if (!intentState.displayReadyCapability) {
[15988] Fix | Delete
intentState.displayReadyCapability = Promise.withResolvers();
[15989] Fix | Delete
intentState.operatorList = {
[15990] Fix | Delete
fnArray: [],
[15991] Fix | Delete
argsArray: [],
[15992] Fix | Delete
lastChunk: false,
[15993] Fix | Delete
separateAnnots: null
[15994] Fix | Delete
};
[15995] Fix | Delete
this._stats?.time("Page Request");
[15996] Fix | Delete
this._pumpOperatorList(intentArgs);
[15997] Fix | Delete
}
[15998] Fix | Delete
const complete = error => {
[15999] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function