You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: pdf/pdf.d.ts
+112
Original file line number
Diff line number
Diff line change
@@ -306,11 +306,123 @@ interface PDFJSStatic {
306
306
**/
307
307
maxImageSize: number;
308
308
309
+
/**
310
+
* The url of where the predefined Adobe CMaps are located. Include trailing
311
+
* slash.
312
+
*/
313
+
cMapUrl: string;
314
+
315
+
/**
316
+
* Specifies if CMaps are binary packed.
317
+
*/
318
+
cMapPacked: boolean;
319
+
309
320
/**
310
321
* By default fonts are converted to OpenType fonts and loaded via font face rules. If disabled, the font will be rendered using a built in font renderer that constructs the glyphs with primitive path commands.
311
322
**/
312
323
disableFontFace: boolean;
313
324
325
+
/**
326
+
* Path for image resources, mainly for annotation icons. Include trailing
327
+
* slash.
328
+
*/
329
+
imageResourcesPath: string;
330
+
331
+
/**
332
+
* Disable the web worker and run all code on the main thread. This will happen
333
+
* automatically if the browser doesn't support workers or sending typed arrays
334
+
* to workers.
335
+
*/
336
+
disableWorker: boolean;
337
+
338
+
/**
339
+
* Path and filename of the worker file. Required when the worker is enabled in
340
+
* development mode. If unspecified in the production build, the worker will be
341
+
* loaded based on the location of the pdf.js file.
342
+
*/
343
+
workerSrc: string;
344
+
345
+
/**
346
+
* Disable range request loading of PDF files. When enabled and if the server
347
+
* supports partial content requests then the PDF will be fetched in chunks.
348
+
* Enabled (false) by default.
349
+
*/
350
+
disableRange: boolean;
351
+
352
+
/**
353
+
* Disable streaming of PDF file data. By default PDF.js attempts to load PDF
354
+
* in chunks. This default behavior can be disabled.
355
+
*/
356
+
disableStream: boolean;
357
+
358
+
/**
359
+
* Disable pre-fetching of PDF file data. When range requests are enabled PDF.js
360
+
* will automatically keep fetching more data even if it isn't needed to display
361
+
* the current page. This default behavior can be disabled.
362
+
*
363
+
* NOTE: It is also necessary to disable streaming, see above,
364
+
* in order for disabling of pre-fetching to work correctly.
365
+
*/
366
+
disableAutoFetch: boolean;
367
+
368
+
/**
369
+
* Enables special hooks for debugging PDF.js.
370
+
*/
371
+
pdfBug: boolean;
372
+
373
+
/**
374
+
* Enables transfer usage in postMessage for ArrayBuffers.
375
+
*/
376
+
postMessageTransfers: boolean;
377
+
378
+
/**
379
+
* Disables URL.createObjectURL usage.
380
+
*/
381
+
disableCreateObjectURL: boolean;
382
+
383
+
/**
384
+
* Disables WebGL usage.
385
+
*/
386
+
disableWebGL: boolean;
387
+
388
+
/**
389
+
* Disables fullscreen support, and by extension Presentation Mode,
390
+
* in browsers which support the fullscreen API.
391
+
*/
392
+
disableFullscreen: boolean;
393
+
394
+
/**
395
+
* Enables CSS only zooming.
396
+
*/
397
+
useOnlyCssZoom: boolean;
398
+
399
+
/**
400
+
* Controls the logging level.
401
+
* The constants from PDFJS.VERBOSITY_LEVELS should be used:
402
+
* - errors
403
+
* - warnings [default]
404
+
* - infos
405
+
*/
406
+
verbosity: number;
407
+
408
+
/**
409
+
* The maximum supported canvas size in total pixels e.g. width * height.
410
+
* The default value is 4096 * 4096. Use -1 for no limit.
411
+
*/
412
+
maxCanvasPixels: number;
413
+
414
+
/**
415
+
* Opens external links in a new window if enabled. The default behavior opens
416
+
* external links in the PDF.js window.
417
+
*/
418
+
openExternalLinksInNewWindow: boolean;
419
+
420
+
/**
421
+
* Determines if we can eval strings as JS. Primarily used to improve
422
+
* performance for font rendering.
423
+
*/
424
+
isEvalSupported: boolean;
425
+
314
426
/**
315
427
* This is the main entry point for loading a PDF and interacting with it.
316
428
* NOTE: If a URL is used to fetch the PDF data a standard XMLHttpRequest(XHR)
0 commit comments