@embedpdf/engines 2.5.0 → 2.6.0
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.
- package/dist/{browser-qfUHZxQ6.js → browser-BISJ9naB.js} +3 -3
- package/dist/{browser-qfUHZxQ6.js.map → browser-BISJ9naB.js.map} +1 -1
- package/dist/{direct-engine-D8HGqcIt.js → direct-engine-CvfzIn2D.js} +463 -79
- package/dist/direct-engine-CvfzIn2D.js.map +1 -0
- package/dist/direct-engine-DITdlET4.cjs +2 -0
- package/dist/direct-engine-DITdlET4.cjs.map +1 -0
- package/dist/index.cjs +1 -1
- package/dist/index.js +10 -10
- package/dist/lib/converters/index.js +3 -3
- package/dist/lib/pdfium/engine.d.ts +76 -1
- package/dist/lib/pdfium/index.cjs +1 -1
- package/dist/lib/pdfium/index.js +10 -10
- package/dist/lib/pdfium/web/direct-engine.cjs +1 -1
- package/dist/lib/pdfium/web/direct-engine.js +3 -3
- package/dist/lib/pdfium/web/worker-engine.cjs +1 -1
- package/dist/lib/pdfium/web/worker-engine.js +2 -2
- package/dist/lib/webworker/engine.js +1 -1
- package/dist/preact/index.cjs +1 -1
- package/dist/preact/index.js +1 -1
- package/dist/react/index.cjs +1 -1
- package/dist/react/index.js +1 -1
- package/dist/svelte/index.cjs +1 -1
- package/dist/svelte/index.js +1 -1
- package/dist/vue/index.cjs +1 -1
- package/dist/vue/index.js +1 -1
- package/package.json +6 -6
- package/dist/direct-engine-BtiOvMLP.cjs +0 -2
- package/dist/direct-engine-BtiOvMLP.cjs.map +0 -1
- package/dist/direct-engine-D8HGqcIt.js.map +0 -1
package/dist/index.cjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./lib/pdfium/index.cjs"),r=require("./lib/webworker/engine.cjs"),t=require("@embedpdf/models"),a=require("./direct-engine-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./lib/pdfium/index.cjs"),r=require("./lib/webworker/engine.cjs"),t=require("@embedpdf/models"),a=require("./direct-engine-DITdlET4.cjs"),o=require("./browser-13mzox-R.cjs"),s=require("./pdf-engine-BmrecQLq.cjs"),n=require("./lib/pdfium/web/worker-engine.cjs"),c="WebWorkerEngineRunner",i="Engine";exports.DEFAULT_PDFIUM_WASM_URL=e.DEFAULT_PDFIUM_WASM_URL,exports.FONT_CDN_URLS=e.FONT_CDN_URLS,exports.cdnFontConfig=e.cdnFontConfig,exports.createCdnFontConfig=e.createCdnFontConfig,exports.WebWorkerEngine=r.WebWorkerEngine,exports.WorkerTask=r.WorkerTask,Object.defineProperty(exports,"FontCharset",{enumerable:!0,get:()=>t.FontCharset}),exports.BitmapFormat=a.BitmapFormat,exports.FontFallbackManager=a.FontFallbackManager,exports.PdfiumErrorCode=a.PdfiumErrorCode,exports.PdfiumNative=a.PdfiumNative,exports.RenderFlag=a.RenderFlag,exports.computeFormDrawParams=a.computeFormDrawParams,exports.createNodeFontLoader=a.createNodeFontLoader,exports.createPdfiumDirectEngine=a.createPdfiumEngine,exports.isValidCustomKey=a.isValidCustomKey,exports.readArrayBuffer=a.readArrayBuffer,exports.readString=a.readString,exports.ImageConverterError=o.ImageConverterError,exports.browserImageDataToBlobConverter=o.browserImageDataToBlobConverter,exports.createHybridImageConverter=o.createHybridImageConverter,exports.createWorkerPoolImageConverter=o.createWorkerPoolImageConverter,exports.PdfEngine=s.PdfEngine,exports.createPdfiumWorkerEngine=n.createPdfiumEngine,exports.EngineRunner=class{constructor(e=new t.NoopLogger){this.logger=e,this.execute=async e=>{if(this.logger.debug(c,i,"runner start exeucte request"),!this.engine){const r={type:"reject",reason:{code:t.PdfErrorCode.NotReady,message:"engine has not started yet"}},a={id:e.id,type:"ExecuteResponse",data:{type:"error",value:r}};return void this.respond(a)}const r=this.engine,{name:a,args:o}=e.data;if(!r[a]){const r={type:"reject",reason:{code:t.PdfErrorCode.NotSupport,message:`engine method ${a} is not supported yet`}},o={id:e.id,type:"ExecuteResponse",data:{type:"error",value:r}};return void this.respond(o)}let s;switch(a){case"isSupport":s=r.isSupport(...o);break;case"destroy":s=r.destroy(...o);break;case"openDocumentUrl":s=r.openDocumentUrl(...o);break;case"openDocumentBuffer":s=r.openDocumentBuffer(...o);break;case"getDocPermissions":s=r.getDocPermissions(...o);break;case"getDocUserPermissions":s=r.getDocUserPermissions(...o);break;case"getMetadata":s=r.getMetadata(...o);break;case"setMetadata":s=r.setMetadata(...o);break;case"getBookmarks":s=r.getBookmarks(...o);break;case"setBookmarks":s=r.setBookmarks(...o);break;case"deleteBookmarks":s=r.deleteBookmarks(...o);break;case"getSignatures":s=r.getSignatures(...o);break;case"renderPage":s=r.renderPage(...o);break;case"renderPageRect":s=r.renderPageRect(...o);break;case"renderPageAnnotation":s=r.renderPageAnnotation(...o);break;case"renderThumbnail":s=r.renderThumbnail(...o);break;case"getAllAnnotations":s=r.getAllAnnotations(...o);break;case"getPageAnnotations":s=r.getPageAnnotations(...o);break;case"createPageAnnotation":s=r.createPageAnnotation(...o);break;case"updatePageAnnotation":s=r.updatePageAnnotation(...o);break;case"removePageAnnotation":s=r.removePageAnnotation(...o);break;case"getPageTextRects":s=r.getPageTextRects(...o);break;case"searchAllPages":s=r.searchAllPages(...o);break;case"closeDocument":s=r.closeDocument(...o);break;case"closeAllDocuments":s=r.closeAllDocuments(...o);break;case"saveAsCopy":s=r.saveAsCopy(...o);break;case"getAttachments":s=r.getAttachments(...o);break;case"addAttachment":s=r.addAttachment(...o);break;case"removeAttachment":s=r.removeAttachment(...o);break;case"readAttachmentContent":s=r.readAttachmentContent(...o);break;case"setFormFieldValue":s=r.setFormFieldValue(...o);break;case"flattenPage":s=r.flattenPage(...o);break;case"extractPages":s=r.extractPages(...o);break;case"extractText":s=r.extractText(...o);break;case"redactTextInRects":s=r.redactTextInRects(...o);break;case"applyRedaction":s=r.applyRedaction(...o);break;case"applyAllRedactions":s=r.applyAllRedactions(...o);break;case"flattenAnnotation":s=r.flattenAnnotation(...o);break;case"getTextSlices":s=r.getTextSlices(...o);break;case"getPageGlyphs":s=r.getPageGlyphs(...o);break;case"getPageGeometry":s=r.getPageGeometry(...o);break;case"merge":s=r.merge(...o);break;case"mergePages":s=r.mergePages(...o);break;case"preparePrintDocument":s=r.preparePrintDocument(...o);break;case"setDocumentEncryption":s=r.setDocumentEncryption(...o);break;case"removeEncryption":s=r.removeEncryption(...o);break;case"unlockOwnerPermissions":s=r.unlockOwnerPermissions(...o);break;case"isEncrypted":s=r.isEncrypted(...o);break;case"isOwnerUnlocked":s=r.isOwnerUnlocked(...o);break;default:const n={type:"reject",reason:{code:t.PdfErrorCode.NotSupport,message:`engine method ${a} is not supported`}},c={id:e.id,type:"ExecuteResponse",data:{type:"error",value:n}};return void this.respond(c)}s.onProgress(r=>{const t={id:e.id,type:"ExecuteProgress",data:r};this.respond(t)}),s.wait(r=>{const t={id:e.id,type:"ExecuteResponse",data:{type:"result",value:r}};this.respond(t)},r=>{const t={id:e.id,type:"ExecuteResponse",data:{type:"error",value:r}};this.respond(t)})}}listen(){self.onmessage=e=>this.handle(e)}handle(e){this.logger.debug(c,i,"webworker receive message event: ",e.data);try{const r=e.data;if("ExecuteRequest"===r.type)this.execute(r)}catch(r){this.logger.info(c,i,"webworker met error when processing message event:",r)}}ready(){this.listen(),this.respond({id:"0",type:"ReadyResponse"}),this.logger.debug(c,i,"runner is ready")}respond(e){this.logger.debug(c,i,"runner respond: ",e),self.postMessage(e)}};
|
|
2
2
|
//# sourceMappingURL=index.cjs.map
|
package/dist/index.js
CHANGED
|
@@ -2,10 +2,10 @@ import { DEFAULT_PDFIUM_WASM_URL, FONT_CDN_URLS, cdnFontConfig, createCdnFontCon
|
|
|
2
2
|
import { WebWorkerEngine, WorkerTask } from "./lib/webworker/engine.js";
|
|
3
3
|
import { NoopLogger, PdfErrorCode } from "@embedpdf/models";
|
|
4
4
|
import { FontCharset } from "@embedpdf/models";
|
|
5
|
-
import { B, F, P, a, R,
|
|
6
|
-
import {
|
|
7
|
-
import { I, b as b2, a as a2, c as c2 } from "./browser-qfUHZxQ6.js";
|
|
5
|
+
import { B, F, P, a, R, c, b, d, i, r, e } from "./direct-engine-CvfzIn2D.js";
|
|
6
|
+
import { I, b as b2, c as c2, a as a2 } from "./browser-BISJ9naB.js";
|
|
8
7
|
import { P as P2 } from "./pdf-engine-aJNoNMbt.js";
|
|
8
|
+
import { createPdfiumEngine } from "./lib/pdfium/web/worker-engine.js";
|
|
9
9
|
const LOG_SOURCE = "WebWorkerEngineRunner";
|
|
10
10
|
const LOG_CATEGORY = "Engine";
|
|
11
11
|
class EngineRunner {
|
|
@@ -329,15 +329,15 @@ export {
|
|
|
329
329
|
WorkerTask,
|
|
330
330
|
b2 as browserImageDataToBlobConverter,
|
|
331
331
|
cdnFontConfig,
|
|
332
|
-
|
|
332
|
+
c as computeFormDrawParams,
|
|
333
333
|
createCdnFontConfig,
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
334
|
+
c2 as createHybridImageConverter,
|
|
335
|
+
b as createNodeFontLoader,
|
|
336
|
+
d as createPdfiumDirectEngine,
|
|
337
337
|
createPdfiumEngine as createPdfiumWorkerEngine,
|
|
338
|
-
|
|
338
|
+
a2 as createWorkerPoolImageConverter,
|
|
339
339
|
i as isValidCustomKey,
|
|
340
|
-
|
|
341
|
-
|
|
340
|
+
r as readArrayBuffer,
|
|
341
|
+
e as readString
|
|
342
342
|
};
|
|
343
343
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { I, b,
|
|
1
|
+
import { I, b, c, a } from "../../browser-BISJ9naB.js";
|
|
2
2
|
function toArrayBuffer(view) {
|
|
3
3
|
const { buffer, byteOffset, byteLength } = view;
|
|
4
4
|
if (buffer instanceof ArrayBuffer) {
|
|
@@ -83,9 +83,9 @@ export {
|
|
|
83
83
|
b as browserImageDataToBlobConverter,
|
|
84
84
|
createCustomImageDataToBlobConverter,
|
|
85
85
|
createCustomImageDataToBufferConverter,
|
|
86
|
-
|
|
86
|
+
c as createHybridImageConverter,
|
|
87
87
|
createNodeCanvasImageDataToBlobConverter,
|
|
88
88
|
createNodeImageDataToBufferConverter,
|
|
89
|
-
|
|
89
|
+
a as createWorkerPoolImageConverter
|
|
90
90
|
};
|
|
91
91
|
//# sourceMappingURL=index.js.map
|
|
@@ -418,7 +418,7 @@ export declare class PdfiumNative implements IPdfiumExecutor {
|
|
|
418
418
|
*
|
|
419
419
|
* @private
|
|
420
420
|
*/
|
|
421
|
-
addShapeContent(page: PdfPageObject, pagePtr: number, annotationPtr: number, annotation: PdfCircleAnnoObject | PdfSquareAnnoObject): boolean;
|
|
421
|
+
addShapeContent(doc: PdfDocumentObject, page: PdfPageObject, pagePtr: number, annotationPtr: number, annotation: PdfCircleAnnoObject | PdfSquareAnnoObject): boolean;
|
|
422
422
|
/**
|
|
423
423
|
* Add highlight content to annotation
|
|
424
424
|
* @param page - page info
|
|
@@ -666,6 +666,12 @@ export declare class PdfiumNative implements IPdfiumExecutor {
|
|
|
666
666
|
* @private
|
|
667
667
|
*/
|
|
668
668
|
private readPageAnnotation;
|
|
669
|
+
/**
|
|
670
|
+
* On load, if a vertex-type annotation has rotation metadata in EPDFCustom,
|
|
671
|
+
* reverse-rotate the PDF's physically rotated vertices by -rotation to recover
|
|
672
|
+
* the unrotated vertices for runtime editing.
|
|
673
|
+
*/
|
|
674
|
+
private reverseRotateAnnotationOnLoad;
|
|
669
675
|
/**
|
|
670
676
|
* Return the colour stored directly in the annotation dictionary's `/C` entry.
|
|
671
677
|
*
|
|
@@ -720,6 +726,61 @@ export declare class PdfiumNative implements IPdfiumExecutor {
|
|
|
720
726
|
* @private
|
|
721
727
|
*/
|
|
722
728
|
private setAnnotationOpacity;
|
|
729
|
+
/**
|
|
730
|
+
* Get the rotation angle (in degrees) from the annotation's /Rotate entry.
|
|
731
|
+
* Returns 0 if no rotation is set or on error.
|
|
732
|
+
*
|
|
733
|
+
* @param annotationPtr - pointer to the annotation
|
|
734
|
+
* @returns rotation in degrees (0 if not set)
|
|
735
|
+
*/
|
|
736
|
+
private getAnnotationRotation;
|
|
737
|
+
/**
|
|
738
|
+
* Set the rotation angle (in degrees) on the annotation's /Rotate entry.
|
|
739
|
+
* A value of 0 removes the /Rotate key.
|
|
740
|
+
*
|
|
741
|
+
* @param annotationPtr - pointer to the annotation
|
|
742
|
+
* @param rotation - rotation in degrees (clockwise)
|
|
743
|
+
* @returns true on success
|
|
744
|
+
*/
|
|
745
|
+
private setAnnotationRotation;
|
|
746
|
+
/**
|
|
747
|
+
* Get the EmbedPDF extended rotation (in degrees) from the annotation's
|
|
748
|
+
* /EPDFRotate entry. Returns 0 if not set or on error.
|
|
749
|
+
*
|
|
750
|
+
* @param annotationPtr - pointer to the annotation
|
|
751
|
+
* @returns rotation in degrees (0 if not set)
|
|
752
|
+
*/
|
|
753
|
+
private getAnnotExtendedRotation;
|
|
754
|
+
/**
|
|
755
|
+
* Set the EmbedPDF extended rotation (in degrees) on the annotation's
|
|
756
|
+
* /EPDFRotate entry. A value of 0 removes the key.
|
|
757
|
+
*
|
|
758
|
+
* @param annotationPtr - pointer to the annotation
|
|
759
|
+
* @param rotation - rotation in degrees
|
|
760
|
+
* @returns true on success
|
|
761
|
+
*/
|
|
762
|
+
private setAnnotExtendedRotation;
|
|
763
|
+
/**
|
|
764
|
+
* Read the EmbedPDF unrotated rect from the annotation's /EPDFUnrotatedRect
|
|
765
|
+
* entry. Returns the raw page-space rect (same format as `readPageAnnoRect`)
|
|
766
|
+
* or null if not set.
|
|
767
|
+
*
|
|
768
|
+
* @param annotationPtr - pointer to the annotation
|
|
769
|
+
* @returns raw `{ left, top, right, bottom }` in page coords, or null
|
|
770
|
+
*/
|
|
771
|
+
private readAnnotUnrotatedRect;
|
|
772
|
+
/**
|
|
773
|
+
* Write the EmbedPDF unrotated rect (/EPDFUnrotatedRect) for an annotation.
|
|
774
|
+
* Accepts a device-space `Rect` and converts to page coordinates internally,
|
|
775
|
+
* following the same pattern as `setPageAnnoRect`.
|
|
776
|
+
*
|
|
777
|
+
* @param doc - pdf document object
|
|
778
|
+
* @param page - pdf page object
|
|
779
|
+
* @param annotPtr - pointer to the annotation
|
|
780
|
+
* @param rect - device-space rect to store as the unrotated rect
|
|
781
|
+
* @returns true on success
|
|
782
|
+
*/
|
|
783
|
+
private setAnnotUnrotatedRect;
|
|
723
784
|
/**
|
|
724
785
|
* Fetch the `/Q` text-alignment value from a **FreeText** annotation.
|
|
725
786
|
*
|
|
@@ -1348,6 +1409,18 @@ export declare class PdfiumNative implements IPdfiumExecutor {
|
|
|
1348
1409
|
* @returns `true` on success
|
|
1349
1410
|
*/
|
|
1350
1411
|
private setInReplyToId;
|
|
1412
|
+
/**
|
|
1413
|
+
* Rotate a point around a center by the given angle in degrees.
|
|
1414
|
+
* Used to rotate vertices for PDF storage.
|
|
1415
|
+
*/
|
|
1416
|
+
private rotatePointForSave;
|
|
1417
|
+
/**
|
|
1418
|
+
* Prepare an annotation for saving to PDF.
|
|
1419
|
+
* For vertex types (ink, line, polygon, polyline) with rotation,
|
|
1420
|
+
* physically rotates the vertices by +rotation so that other PDF viewers
|
|
1421
|
+
* see the correct visual result. Our viewer reverse-rotates on load.
|
|
1422
|
+
*/
|
|
1423
|
+
private prepareAnnotationForSave;
|
|
1351
1424
|
/**
|
|
1352
1425
|
* Apply all base annotation properties from PdfAnnotationObjectBase.
|
|
1353
1426
|
* The setInReplyToId and setReplyType functions handle clearing when undefined.
|
|
@@ -1362,6 +1435,8 @@ export declare class PdfiumNative implements IPdfiumExecutor {
|
|
|
1362
1435
|
* Read all base annotation properties from PdfAnnotationObjectBase.
|
|
1363
1436
|
* Returns an object that can be spread into the annotation return value.
|
|
1364
1437
|
*
|
|
1438
|
+
* @param doc - pdf document object
|
|
1439
|
+
* @param page - pdf page object
|
|
1365
1440
|
* @param annotationPtr - pointer to annotation object
|
|
1366
1441
|
* @returns object with base annotation properties
|
|
1367
1442
|
*/
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../../direct-engine-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../../direct-engine-DITdlET4.cjs"),t=require("../../browser-13mzox-R.cjs"),r=require("../../pdf-engine-BmrecQLq.cjs"),n=require("@embedpdf/models"),o=require("@embedpdf/fonts-jp"),s=require("@embedpdf/fonts-kr"),a=require("@embedpdf/fonts-sc"),d=require("@embedpdf/fonts-tc"),i=require("@embedpdf/fonts-arabic"),f=require("@embedpdf/fonts-hebrew"),p=require("@embedpdf/fonts-latin"),m=require("./web/worker-engine.cjs");function c(e="latest"){return{jp:`https://cdn.jsdelivr.net/npm/@embedpdf/fonts-jp@${e}/fonts`,kr:`https://cdn.jsdelivr.net/npm/@embedpdf/fonts-kr@${e}/fonts`,sc:`https://cdn.jsdelivr.net/npm/@embedpdf/fonts-sc@${e}/fonts`,tc:`https://cdn.jsdelivr.net/npm/@embedpdf/fonts-tc@${e}/fonts`,arabic:`https://cdn.jsdelivr.net/npm/@embedpdf/fonts-arabic@${e}/fonts`,hebrew:`https://cdn.jsdelivr.net/npm/@embedpdf/fonts-hebrew@${e}/fonts`,latin:`https://cdn.jsdelivr.net/npm/@embedpdf/fonts-latin@${e}/fonts`}}function u(e,t){return e.map(e=>({url:`${t}/${e.file}`,weight:e.weight,italic:e.italic}))}function b(e){return{fonts:{[n.FontCharset.SHIFTJIS]:u(o.fonts,e.jp),[n.FontCharset.HANGEUL]:u(s.fonts,e.kr),[n.FontCharset.GB2312]:u(a.fonts,e.sc),[n.FontCharset.CHINESEBIG5]:u(d.fonts,e.tc),[n.FontCharset.ARABIC]:u(i.fonts,e.arabic),[n.FontCharset.HEBREW]:u(f.fonts,e.hebrew),[n.FontCharset.CYRILLIC]:u(p.fonts,e.latin),[n.FontCharset.GREEK]:u(p.fonts,e.latin),[n.FontCharset.VIETNAMESE]:u(p.fonts,e.latin)}}}const l=c("latest"),C=b(l);exports.BitmapFormat=e.BitmapFormat,exports.FontFallbackManager=e.FontFallbackManager,exports.PdfiumErrorCode=e.PdfiumErrorCode,exports.PdfiumNative=e.PdfiumNative,exports.RenderFlag=e.RenderFlag,exports.computeFormDrawParams=e.computeFormDrawParams,exports.createNodeFontLoader=e.createNodeFontLoader,exports.createPdfiumDirectEngine=e.createPdfiumEngine,exports.isValidCustomKey=e.isValidCustomKey,exports.readArrayBuffer=e.readArrayBuffer,exports.readString=e.readString,exports.ImageConverterError=t.ImageConverterError,exports.browserImageDataToBlobConverter=t.browserImageDataToBlobConverter,exports.createHybridImageConverter=t.createHybridImageConverter,exports.createWorkerPoolImageConverter=t.createWorkerPoolImageConverter,exports.PdfEngine=r.PdfEngine,Object.defineProperty(exports,"FontCharset",{enumerable:!0,get:()=>n.FontCharset}),exports.createPdfiumWorkerEngine=m.createPdfiumEngine,exports.DEFAULT_PDFIUM_WASM_URL="https://cdn.jsdelivr.net/npm/@embedpdf/pdfium@2.6.0/dist/pdfium.wasm",exports.FONT_CDN_URLS=l,exports.cdnFontConfig=C,exports.createCdnFontConfig=function(e="latest"){return b(c(e))};
|
|
2
2
|
//# sourceMappingURL=index.cjs.map
|
package/dist/lib/pdfium/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { B, F, P, a, R,
|
|
2
|
-
import { I, b as b2,
|
|
1
|
+
import { B, F, P, a, R, c, b, d, i, r, e } from "../../direct-engine-CvfzIn2D.js";
|
|
2
|
+
import { I, b as b2, c as c2, a as a2 } from "../../browser-BISJ9naB.js";
|
|
3
3
|
import { P as P2 } from "../../pdf-engine-aJNoNMbt.js";
|
|
4
4
|
import { FontCharset } from "@embedpdf/models";
|
|
5
5
|
import { FontCharset as FontCharset2 } from "@embedpdf/models";
|
|
@@ -49,7 +49,7 @@ const cdnFontConfig = buildCdnFontConfig(FONT_CDN_URLS);
|
|
|
49
49
|
function createCdnFontConfig(version = "latest") {
|
|
50
50
|
return buildCdnFontConfig(buildCdnUrls(version));
|
|
51
51
|
}
|
|
52
|
-
const DEFAULT_PDFIUM_WASM_URL = "https://cdn.jsdelivr.net/npm/@embedpdf/pdfium@2.
|
|
52
|
+
const DEFAULT_PDFIUM_WASM_URL = "https://cdn.jsdelivr.net/npm/@embedpdf/pdfium@2.6.0/dist/pdfium.wasm";
|
|
53
53
|
export {
|
|
54
54
|
B as BitmapFormat,
|
|
55
55
|
DEFAULT_PDFIUM_WASM_URL,
|
|
@@ -63,15 +63,15 @@ export {
|
|
|
63
63
|
R as RenderFlag,
|
|
64
64
|
b2 as browserImageDataToBlobConverter,
|
|
65
65
|
cdnFontConfig,
|
|
66
|
-
|
|
66
|
+
c as computeFormDrawParams,
|
|
67
67
|
createCdnFontConfig,
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
68
|
+
c2 as createHybridImageConverter,
|
|
69
|
+
b as createNodeFontLoader,
|
|
70
|
+
d as createPdfiumDirectEngine,
|
|
71
71
|
createPdfiumEngine as createPdfiumWorkerEngine,
|
|
72
|
-
|
|
72
|
+
a2 as createWorkerPoolImageConverter,
|
|
73
73
|
i as isValidCustomKey,
|
|
74
|
-
|
|
75
|
-
|
|
74
|
+
r as readArrayBuffer,
|
|
75
|
+
e as readString
|
|
76
76
|
};
|
|
77
77
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"}),require("@embedpdf/pdfium");const e=require("../../../direct-engine-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"}),require("@embedpdf/pdfium");const e=require("../../../direct-engine-DITdlET4.cjs");require("../../../pdf-engine-BmrecQLq.cjs"),require("../../../browser-13mzox-R.cjs"),exports.createPdfiumEngine=e.createPdfiumEngine;
|
|
2
2
|
//# sourceMappingURL=direct-engine.cjs.map
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import "@embedpdf/pdfium";
|
|
2
|
-
import {
|
|
2
|
+
import { d } from "../../../direct-engine-CvfzIn2D.js";
|
|
3
3
|
import "../../../pdf-engine-aJNoNMbt.js";
|
|
4
|
-
import "../../../browser-
|
|
4
|
+
import "../../../browser-BISJ9naB.js";
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
d as createPdfiumEngine
|
|
7
7
|
};
|
|
8
8
|
//# sourceMappingURL=direct-engine.js.map
|