@chialab/pdfjs-lib 1.0.0-alpha.16 → 1.0.0-alpha.17

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -25868,7 +25868,9 @@ PDFPageProxy.prototype.getAnnotations = async function(params) {
25868
25868
 
25869
25869
  // src/lib/WasmFactory.ts
25870
25870
  var WasmFactory = class {
25871
- async fetch({ filename }) {
25871
+ async fetch({
25872
+ filename
25873
+ }) {
25872
25874
  switch (filename) {
25873
25875
  case "openjpeg.wasm":
25874
25876
  return import("./openjpeg-K2XBCFFN.js").then(
@@ -25894,7 +25896,9 @@ var StandardFontDataFactory = class extends BaseStandardFontDataFactory {
25894
25896
  * Fetch the corresponding standard font data.
25895
25897
  * We need to use specific dynamic imports for each font file for the bundler to include them.
25896
25898
  */
25897
- async fetch({ filename }) {
25899
+ async fetch({
25900
+ filename
25901
+ }) {
25898
25902
  switch (filename) {
25899
25903
  case "FoxitDingbats.pfb":
25900
25904
  return import("./FoxitDingbats-SB6TO3S5.js").then((module) => module.default);
@@ -123,7 +123,7 @@ export interface FileAttachmentAnnotationData extends TextAnnotationData {
123
123
  subtype: 'FileAttachment';
124
124
  file: {
125
125
  filename: string;
126
- content?: Uint8Array | null;
126
+ content?: Uint8Array<ArrayBuffer> | null;
127
127
  };
128
128
  }
129
129
  export interface SoundAnnotationData extends TextAnnotationData {
@@ -8,7 +8,7 @@ export declare class StandardFontDataFactory extends BaseStandardFontDataFactory
8
8
  * Fetch the corresponding standard font data.
9
9
  * We need to use specific dynamic imports for each font file for the bundler to include them.
10
10
  */
11
- fetch({ filename }: {
11
+ fetch({ filename, }: {
12
12
  filename: string;
13
- }): Promise<Uint8Array>;
13
+ }): Promise<Uint8Array<ArrayBuffer>>;
14
14
  }
@@ -1,5 +1,5 @@
1
1
  export declare class WasmFactory {
2
- fetch({ filename }: {
2
+ fetch({ filename, }: {
3
3
  filename: string;
4
- }): Promise<Uint8Array>;
4
+ }): Promise<Uint8Array<ArrayBuffer>>;
5
5
  }
@@ -4,7 +4,7 @@ import type { Canvas } from '@napi-rs/canvas';
4
4
  * @param canvas The canvas to convert.
5
5
  * @returns A promise that resolves to the buffer.
6
6
  */
7
- export declare function canvasToData(canvas: HTMLCanvasElement | Canvas): Promise<Uint8Array>;
7
+ export declare function canvasToData(canvas: HTMLCanvasElement | Canvas): Promise<Uint8Array<ArrayBuffer>>;
8
8
  /**
9
9
  * Convert a buffer to a data url.
10
10
  * @param data The buffer to convert.
@@ -26475,7 +26475,9 @@ PDFPageProxy.prototype.getAnnotations = async function(params) {
26475
26475
 
26476
26476
  // src/lib/WasmFactory.ts
26477
26477
  var WasmFactory = class {
26478
- async fetch({ filename }) {
26478
+ async fetch({
26479
+ filename
26480
+ }) {
26479
26481
  switch (filename) {
26480
26482
  case "openjpeg.wasm":
26481
26483
  return import("./openjpeg-B2WN24QZ.js").then(
@@ -26501,7 +26503,9 @@ var StandardFontDataFactory = class extends BaseStandardFontDataFactory {
26501
26503
  * Fetch the corresponding standard font data.
26502
26504
  * We need to use specific dynamic imports for each font file for the bundler to include them.
26503
26505
  */
26504
- async fetch({ filename }) {
26506
+ async fetch({
26507
+ filename
26508
+ }) {
26505
26509
  switch (filename) {
26506
26510
  case "FoxitDingbats.pfb":
26507
26511
  return import("./FoxitDingbats-65AZ2Z2V.js").then((module) => module.default);
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@chialab/pdfjs-lib",
3
3
  "description": "A custom Mozilla's PDF.js build with better Node support and extras.",
4
- "version": "1.0.0-alpha.16",
4
+ "version": "1.0.0-alpha.17",
5
5
  "type": "module",
6
6
  "author": "Chialab <dev@chialab.it>",
7
7
  "license": "MIT",