@embedpdf/engines 2.0.0 → 2.0.2
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/direct-engine-B7b7cTsH.cjs +2 -0
- package/dist/direct-engine-B7b7cTsH.cjs.map +1 -0
- package/dist/{direct-engine-DuLFAbiv.js → direct-engine-CHrj3o_a.js} +25 -1
- package/dist/direct-engine-CHrj3o_a.js.map +1 -0
- package/dist/index.cjs +1 -1
- package/dist/index.js +1 -1
- package/dist/lib/pdfium/index.cjs +1 -1
- package/dist/lib/pdfium/index.js +2 -2
- package/dist/lib/pdfium/web/direct-engine.cjs +1 -1
- package/dist/lib/pdfium/web/direct-engine.js +1 -1
- package/dist/lib/pdfium/web/worker-engine.cjs +1 -1
- package/dist/lib/pdfium/web/worker-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.map +1 -1
- package/dist/svelte/index.js.map +1 -1
- package/dist/vue/index.cjs +1 -1
- package/dist/vue/index.js +1 -1
- package/package.json +4 -4
- package/dist/direct-engine-DuLFAbiv.js.map +0 -1
- package/dist/direct-engine-JeNRkc7w.cjs +0 -2
- package/dist/direct-engine-JeNRkc7w.cjs.map +0 -1
|
@@ -2108,6 +2108,9 @@ class PdfiumNative {
|
|
|
2108
2108
|
if (!this.setAnnotString(annotationPtr, "Contents", annotation.contents ?? "")) {
|
|
2109
2109
|
return false;
|
|
2110
2110
|
}
|
|
2111
|
+
if (annotation.custom && !this.setAnnotCustom(annotationPtr, annotation.custom)) {
|
|
2112
|
+
return false;
|
|
2113
|
+
}
|
|
2111
2114
|
if (!this.setAnnotString(annotationPtr, "T", annotation.author || "")) {
|
|
2112
2115
|
return false;
|
|
2113
2116
|
}
|
|
@@ -2148,6 +2151,9 @@ class PdfiumNative {
|
|
|
2148
2151
|
if (annotation.created && !this.setAnnotationDate(annotationPtr, "CreationDate", annotation.created)) {
|
|
2149
2152
|
return false;
|
|
2150
2153
|
}
|
|
2154
|
+
if (annotation.custom && !this.setAnnotCustom(annotationPtr, annotation.custom)) {
|
|
2155
|
+
return false;
|
|
2156
|
+
}
|
|
2151
2157
|
if (annotation.flags && !this.setAnnotationFlags(annotationPtr, annotation.flags)) {
|
|
2152
2158
|
return false;
|
|
2153
2159
|
}
|
|
@@ -2210,6 +2216,9 @@ class PdfiumNative {
|
|
|
2210
2216
|
if (annotation.created && !this.setAnnotationDate(annotationPtr, "CreationDate", annotation.created)) {
|
|
2211
2217
|
return false;
|
|
2212
2218
|
}
|
|
2219
|
+
if (annotation.custom && !this.setAnnotCustom(annotationPtr, annotation.custom)) {
|
|
2220
|
+
return false;
|
|
2221
|
+
}
|
|
2213
2222
|
if (annotation.flags && !this.setAnnotationFlags(annotationPtr, annotation.flags)) {
|
|
2214
2223
|
return false;
|
|
2215
2224
|
}
|
|
@@ -2255,6 +2264,9 @@ class PdfiumNative {
|
|
|
2255
2264
|
if (annotation.created && !this.setAnnotationDate(annotationPtr, "CreationDate", annotation.created)) {
|
|
2256
2265
|
return false;
|
|
2257
2266
|
}
|
|
2267
|
+
if (annotation.custom && !this.setAnnotCustom(annotationPtr, annotation.custom)) {
|
|
2268
|
+
return false;
|
|
2269
|
+
}
|
|
2258
2270
|
if (annotation.flags && !this.setAnnotationFlags(annotationPtr, annotation.flags)) {
|
|
2259
2271
|
return false;
|
|
2260
2272
|
}
|
|
@@ -2329,6 +2341,9 @@ class PdfiumNative {
|
|
|
2329
2341
|
if (annotation.created && !this.setAnnotationDate(annotationPtr, "CreationDate", annotation.created)) {
|
|
2330
2342
|
return false;
|
|
2331
2343
|
}
|
|
2344
|
+
if (annotation.custom && !this.setAnnotCustom(annotationPtr, annotation.custom)) {
|
|
2345
|
+
return false;
|
|
2346
|
+
}
|
|
2332
2347
|
if (annotation.modified && !this.setAnnotationDate(annotationPtr, "M", annotation.modified)) {
|
|
2333
2348
|
return false;
|
|
2334
2349
|
}
|
|
@@ -2397,6 +2412,9 @@ class PdfiumNative {
|
|
|
2397
2412
|
if (annotation.created && !this.setAnnotationDate(annotationPtr, "CreationDate", annotation.created)) {
|
|
2398
2413
|
return false;
|
|
2399
2414
|
}
|
|
2415
|
+
if (annotation.custom && !this.setAnnotCustom(annotationPtr, annotation.custom)) {
|
|
2416
|
+
return false;
|
|
2417
|
+
}
|
|
2400
2418
|
if (annotation.modified && !this.setAnnotationDate(annotationPtr, "M", annotation.modified)) {
|
|
2401
2419
|
return false;
|
|
2402
2420
|
}
|
|
@@ -2497,6 +2515,9 @@ class PdfiumNative {
|
|
|
2497
2515
|
if (annotation.created && !this.setAnnotationDate(annotationPtr, "CreationDate", annotation.created)) {
|
|
2498
2516
|
return false;
|
|
2499
2517
|
}
|
|
2518
|
+
if (annotation.custom && !this.setAnnotCustom(annotationPtr, annotation.custom)) {
|
|
2519
|
+
return false;
|
|
2520
|
+
}
|
|
2500
2521
|
if (annotation.flags && !this.setAnnotationFlags(annotationPtr, annotation.flags)) {
|
|
2501
2522
|
return false;
|
|
2502
2523
|
}
|
|
@@ -2506,6 +2527,9 @@ class PdfiumNative {
|
|
|
2506
2527
|
if (annotation.icon && !this.setAnnotationIcon(annotationPtr, annotation.icon)) {
|
|
2507
2528
|
return false;
|
|
2508
2529
|
}
|
|
2530
|
+
if (!this.setAnnotString(annotationPtr, "T", annotation.author || "")) {
|
|
2531
|
+
return false;
|
|
2532
|
+
}
|
|
2509
2533
|
if (annotation.subject && !this.setAnnotString(annotationPtr, "Subj", annotation.subject)) {
|
|
2510
2534
|
return false;
|
|
2511
2535
|
}
|
|
@@ -6781,4 +6805,4 @@ export {
|
|
|
6781
6805
|
isValidCustomKey as i,
|
|
6782
6806
|
readString as r
|
|
6783
6807
|
};
|
|
6784
|
-
//# sourceMappingURL=direct-engine-
|
|
6808
|
+
//# sourceMappingURL=direct-engine-CHrj3o_a.js.map
|