@embedpdf/engine-core 3.0.0-next.10 → 3.0.0-next.12
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/{AnnotationListSnapshot-DDxHpJQU.d.cts → AnnotationListSnapshot-x6tKulNV.d.cts} +461 -114
- package/dist/{AnnotationListSnapshot-DDxHpJQU.d.ts → AnnotationListSnapshot-x6tKulNV.d.ts} +461 -114
- package/dist/{DocumentSecurityService-o9aeTHwT.d.ts → DocumentSecurityService-9MawYxP-.d.ts} +2 -2
- package/dist/{DocumentSecurityService-BV4_YXkU.d.cts → DocumentSecurityService-CK0pejAK.d.cts} +2 -2
- package/dist/{Engine-DOoVem7_.d.ts → Engine--0XF0UAK.d.cts} +68 -3
- package/dist/{Engine-D9je6GdU.d.cts → Engine-Ds0ytbl6.d.ts} +68 -3
- package/dist/{builders-Cp_rlGob.cjs → builders-8Hl1AYNU.cjs} +44 -8
- package/dist/builders-8Hl1AYNU.cjs.map +1 -0
- package/dist/{builders-B_KufGJ9.js → builders-DOjcKDWQ.js} +39 -9
- package/dist/builders-DOjcKDWQ.js.map +1 -0
- package/dist/conformance.cjs +769 -101
- package/dist/conformance.cjs.map +1 -1
- package/dist/conformance.d.cts +56 -3
- package/dist/conformance.d.ts +56 -3
- package/dist/conformance.js +767 -102
- package/dist/conformance.js.map +1 -1
- package/dist/index.cjs +3 -2
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +3 -3
- package/dist/{resolver-DiPMTfcy.js → resolver-CHG4waXL.js} +2 -1
- package/dist/resolver-CHG4waXL.js.map +1 -0
- package/dist/{resolver-DAZWVoJL.cjs → resolver-D-jumvgM.cjs} +2 -1
- package/dist/resolver-D-jumvgM.cjs.map +1 -0
- package/dist/runtime.cjs +3 -2
- package/dist/runtime.d.cts +66 -5
- package/dist/runtime.d.ts +66 -5
- package/dist/runtime.js +3 -3
- package/dist/{schemas-DAnu8tuW.js → schemas-DOyVEPk7.js} +206 -84
- package/dist/schemas-DOyVEPk7.js.map +1 -0
- package/dist/{schemas-D1pxEv3t.cjs → schemas-RChsAMWw.cjs} +259 -83
- package/dist/schemas-RChsAMWw.cjs.map +1 -0
- package/dist/wire.cjs +65 -2
- package/dist/wire.cjs.map +1 -1
- package/dist/wire.d.cts +210 -8
- package/dist/wire.d.ts +210 -8
- package/dist/wire.js +54 -3
- package/dist/wire.js.map +1 -1
- package/package.json +1 -1
- package/dist/builders-B_KufGJ9.js.map +0 -1
- package/dist/builders-Cp_rlGob.cjs.map +0 -1
- package/dist/resolver-DAZWVoJL.cjs.map +0 -1
- package/dist/resolver-DiPMTfcy.js.map +0 -1
- package/dist/schemas-D1pxEv3t.cjs.map +0 -1
- package/dist/schemas-DAnu8tuW.js.map +0 -1
package/dist/conformance.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { An as HighlightDraft,
|
|
2
|
-
import { t as Engine } from "./Engine
|
|
1
|
+
import { An as HighlightDraft, Bl as DocumentMetadata, Ps as CharMapAnchor, _l as LinePoints, bl as PdfRect, hl as InkList, n as AnnotationListSnapshotAllPages, t as AnnotationListPageSnapshot, vl as PdfPoint } from "./AnnotationListSnapshot-x6tKulNV.cjs";
|
|
2
|
+
import { t as Engine } from "./Engine--0XF0UAK.cjs";
|
|
3
3
|
//#region src/conformance/runMetadataConformance.d.ts
|
|
4
4
|
interface ConformanceTestRunner {
|
|
5
5
|
describe(name: string, fn: () => void): void;
|
|
@@ -16,6 +16,7 @@ interface ConformanceExpect {
|
|
|
16
16
|
toHaveLength(expected: number): void;
|
|
17
17
|
toMatch(re: RegExp): void;
|
|
18
18
|
toMatchObject(shape: Record<string, unknown>): void;
|
|
19
|
+
toContain(expected: unknown): void;
|
|
19
20
|
toBeInstanceOf(ctor: Function): void;
|
|
20
21
|
toBeTruthy(): void;
|
|
21
22
|
rejects: {
|
|
@@ -101,6 +102,11 @@ interface ActionsConformanceFixtures {
|
|
|
101
102
|
page: ConformanceFixture;
|
|
102
103
|
annotation: ConformanceFixture;
|
|
103
104
|
field: ConformanceFixture;
|
|
105
|
+
/** `action_payloads.pdf` — every executable payload shape on one page of
|
|
106
|
+
* /NM-keyed links. REQUIRED on both flavours: payload parity is a gate. */
|
|
107
|
+
payloads: ConformanceFixture;
|
|
108
|
+
/** `open_action_dest.pdf` — a destination-form catalog `/OpenAction`. */
|
|
109
|
+
openDestination: ConformanceFixture;
|
|
104
110
|
/** A page whose only annotation is a Link with a `/S /JavaScript` action.
|
|
105
111
|
* Optional: the javascript-link classification test skips without it. */
|
|
106
112
|
javascriptLink?: ConformanceFixture;
|
|
@@ -350,6 +356,53 @@ declare function runPageRotateConformance(runner: ConformanceTestRunner, opts: C
|
|
|
350
356
|
*/
|
|
351
357
|
declare function runPageDeleteConformance(runner: ConformanceTestRunner, opts: ConformanceOptions): void;
|
|
352
358
|
//#endregion
|
|
359
|
+
//#region src/conformance/runNamedPagesConformance.d.ts
|
|
360
|
+
/**
|
|
361
|
+
* Named-pages conformance: the catalog's `/Names /Pages` registry as LAYOUT
|
|
362
|
+
* data. Locks the invariants both engines must share — do not loosen
|
|
363
|
+
* without re-reading `NamedPageEntry` and `PageNameResult`:
|
|
364
|
+
*
|
|
365
|
+
* 1. `pages.list().namedPages` is present (possibly empty) and every
|
|
366
|
+
* registration resolves to a page in `pages`, a template, or is
|
|
367
|
+
* reported dangling — never silently dropped.
|
|
368
|
+
* 2. `pages.setName()` creates or replaces by decoded key (idempotent),
|
|
369
|
+
* `replace` renames in one job, and the result IS the new layout.
|
|
370
|
+
* 3. `pages.removeName()` drops the registration and nothing else.
|
|
371
|
+
* 4. Deleting a page removes every registration pointing at it — inside
|
|
372
|
+
* the delete, with no plugin in the loop.
|
|
373
|
+
* 5. Non-ASCII keys round-trip unchanged (Acrobat writes UTF-16 + BOM).
|
|
374
|
+
*
|
|
375
|
+
* Skips cleanly when the engine does not implement the optional members.
|
|
376
|
+
*/
|
|
377
|
+
declare function runNamedPagesConformance(runner: ConformanceTestRunner, opts: ConformanceOptions): void;
|
|
378
|
+
//#endregion
|
|
379
|
+
//#region src/conformance/runAnnotationFlattenConformance.d.ts
|
|
380
|
+
/**
|
|
381
|
+
* Selective annotation flatten: `page(pon).annotations.flatten(refs)` is
|
|
382
|
+
* `pages.flatten` for a chosen set. Locks, on every engine:
|
|
383
|
+
* 1. only the given refs are painted and removed; the rest of the page's
|
|
384
|
+
* annotations are untouched;
|
|
385
|
+
* 2. per-ref status (`applied` / `skipped`), one `annotations.flattened`
|
|
386
|
+
* event, a `meta` with that page's new pins, layout unchanged;
|
|
387
|
+
* 3. a hidden ref is `skipped`; a ref on another page rejects `InvalidArg`
|
|
388
|
+
* with nothing mutated.
|
|
389
|
+
* Skips cleanly when the engine does not implement the optional member.
|
|
390
|
+
*/
|
|
391
|
+
declare function runAnnotationFlattenConformance(runner: ConformanceTestRunner, opts: ConformanceOptions): void;
|
|
392
|
+
//#endregion
|
|
393
|
+
//#region src/conformance/runAnnotationAppearanceExportConformance.d.ts
|
|
394
|
+
/**
|
|
395
|
+
* `page(pon).annotations.exportAppearance(refs)`: the chosen annotations'
|
|
396
|
+
* appearances as ONE single-page PDF sized to their union /Rect. Locks:
|
|
397
|
+
* 1. bytes are a PDF; the source page is untouched (no mutation, no
|
|
398
|
+
* revision bump);
|
|
399
|
+
* 2. re-opened (local engines), the page is exactly the union size and the
|
|
400
|
+
* requested count of annotations is gone — they are content now;
|
|
401
|
+
* 3. a ref on another page rejects `InvalidArg`; an empty list rejects.
|
|
402
|
+
* Skips cleanly when the engine does not implement the optional member.
|
|
403
|
+
*/
|
|
404
|
+
declare function runAnnotationAppearanceExportConformance(runner: ConformanceTestRunner, opts: ConformanceOptions): void;
|
|
405
|
+
//#endregion
|
|
353
406
|
//#region src/conformance/runPageFlattenConformance.d.ts
|
|
354
407
|
/** Transport-neutral coverage for the content + annotation flatten rail. */
|
|
355
408
|
declare function runPageFlattenConformance(runner: ConformanceTestRunner, opts: ConformanceOptions): void;
|
|
@@ -644,5 +697,5 @@ declare function runSearchConformance(runner: ConformanceTestRunner, opts: Searc
|
|
|
644
697
|
declare function diffAnnotationListSnapshot(a: AnnotationListPageSnapshot, b: AnnotationListPageSnapshot): string[];
|
|
645
698
|
declare function diffAnnotationListSnapshotAll(a: AnnotationListSnapshotAllPages, b: AnnotationListSnapshotAllPages): string[];
|
|
646
699
|
//#endregion
|
|
647
|
-
export { type ActionsConformanceFixtures, type ActionsConformanceOptions, type AnnotationAppearanceConformanceFixture, type AnnotationAppearanceConformanceOptions, type AnnotationConformanceOptions, type AnnotationMutationConformanceFixture, type AnnotationMutationConformanceOptions, type AnnotationReadConformanceFixture, type ConformanceExpect, type ConformanceFixture, type ConformanceOptions, type ConformanceTestRunner, type FormConformanceFixtures, type FormConformanceOptions, type PageGeometryOrientationFixture, type PageGeometryOrientationOptions, type PageReorderConformanceFixture, type PageReorderConformanceOptions, type PageTextConformanceFixture, type PageTextConformanceOptions, type SearchConformanceFixture, type SearchConformanceOptions, TEXT_DIVERGENCE_CASES, type TextDivergenceCase, type TextDivergenceConformanceFixture, type TextDivergenceConformanceOptions, diffAnnotationListSnapshot, diffAnnotationListSnapshotAll, runActionsConformance, runAnnotationAppearanceConformance, runAnnotationMutationConformance, runAnnotationReadConformance, runAttachmentConformance, runDocumentEventsConformance, runFormConformance, runMetadataConformance, runPageDeleteConformance, runPageExtractConformance, runPageFlattenConformance, runPageGeometryOrientationConformance, runPageInsertBlankConformance, runPageInsertConformance, runPageReorderConformance, runPageRotateConformance, runPageTextConformance, runPieceInfoConformance, runRedactionApplyConformance, runSearchConformance, runTextDivergenceConformance };
|
|
700
|
+
export { type ActionsConformanceFixtures, type ActionsConformanceOptions, type AnnotationAppearanceConformanceFixture, type AnnotationAppearanceConformanceOptions, type AnnotationConformanceOptions, type AnnotationMutationConformanceFixture, type AnnotationMutationConformanceOptions, type AnnotationReadConformanceFixture, type ConformanceExpect, type ConformanceFixture, type ConformanceOptions, type ConformanceTestRunner, type FormConformanceFixtures, type FormConformanceOptions, type PageGeometryOrientationFixture, type PageGeometryOrientationOptions, type PageReorderConformanceFixture, type PageReorderConformanceOptions, type PageTextConformanceFixture, type PageTextConformanceOptions, type SearchConformanceFixture, type SearchConformanceOptions, TEXT_DIVERGENCE_CASES, type TextDivergenceCase, type TextDivergenceConformanceFixture, type TextDivergenceConformanceOptions, diffAnnotationListSnapshot, diffAnnotationListSnapshotAll, runActionsConformance, runAnnotationAppearanceConformance, runAnnotationAppearanceExportConformance, runAnnotationFlattenConformance, runAnnotationMutationConformance, runAnnotationReadConformance, runAttachmentConformance, runDocumentEventsConformance, runFormConformance, runMetadataConformance, runNamedPagesConformance, runPageDeleteConformance, runPageExtractConformance, runPageFlattenConformance, runPageGeometryOrientationConformance, runPageInsertBlankConformance, runPageInsertConformance, runPageReorderConformance, runPageRotateConformance, runPageTextConformance, runPieceInfoConformance, runRedactionApplyConformance, runSearchConformance, runTextDivergenceConformance };
|
|
648
701
|
//# sourceMappingURL=conformance.d.cts.map
|
package/dist/conformance.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { An as HighlightDraft,
|
|
2
|
-
import { t as Engine } from "./Engine-
|
|
1
|
+
import { An as HighlightDraft, Bl as DocumentMetadata, Ps as CharMapAnchor, _l as LinePoints, bl as PdfRect, hl as InkList, n as AnnotationListSnapshotAllPages, t as AnnotationListPageSnapshot, vl as PdfPoint } from "./AnnotationListSnapshot-x6tKulNV.js";
|
|
2
|
+
import { t as Engine } from "./Engine-Ds0ytbl6.js";
|
|
3
3
|
//#region src/conformance/runMetadataConformance.d.ts
|
|
4
4
|
interface ConformanceTestRunner {
|
|
5
5
|
describe(name: string, fn: () => void): void;
|
|
@@ -16,6 +16,7 @@ interface ConformanceExpect {
|
|
|
16
16
|
toHaveLength(expected: number): void;
|
|
17
17
|
toMatch(re: RegExp): void;
|
|
18
18
|
toMatchObject(shape: Record<string, unknown>): void;
|
|
19
|
+
toContain(expected: unknown): void;
|
|
19
20
|
toBeInstanceOf(ctor: Function): void;
|
|
20
21
|
toBeTruthy(): void;
|
|
21
22
|
rejects: {
|
|
@@ -101,6 +102,11 @@ interface ActionsConformanceFixtures {
|
|
|
101
102
|
page: ConformanceFixture;
|
|
102
103
|
annotation: ConformanceFixture;
|
|
103
104
|
field: ConformanceFixture;
|
|
105
|
+
/** `action_payloads.pdf` — every executable payload shape on one page of
|
|
106
|
+
* /NM-keyed links. REQUIRED on both flavours: payload parity is a gate. */
|
|
107
|
+
payloads: ConformanceFixture;
|
|
108
|
+
/** `open_action_dest.pdf` — a destination-form catalog `/OpenAction`. */
|
|
109
|
+
openDestination: ConformanceFixture;
|
|
104
110
|
/** A page whose only annotation is a Link with a `/S /JavaScript` action.
|
|
105
111
|
* Optional: the javascript-link classification test skips without it. */
|
|
106
112
|
javascriptLink?: ConformanceFixture;
|
|
@@ -350,6 +356,53 @@ declare function runPageRotateConformance(runner: ConformanceTestRunner, opts: C
|
|
|
350
356
|
*/
|
|
351
357
|
declare function runPageDeleteConformance(runner: ConformanceTestRunner, opts: ConformanceOptions): void;
|
|
352
358
|
//#endregion
|
|
359
|
+
//#region src/conformance/runNamedPagesConformance.d.ts
|
|
360
|
+
/**
|
|
361
|
+
* Named-pages conformance: the catalog's `/Names /Pages` registry as LAYOUT
|
|
362
|
+
* data. Locks the invariants both engines must share — do not loosen
|
|
363
|
+
* without re-reading `NamedPageEntry` and `PageNameResult`:
|
|
364
|
+
*
|
|
365
|
+
* 1. `pages.list().namedPages` is present (possibly empty) and every
|
|
366
|
+
* registration resolves to a page in `pages`, a template, or is
|
|
367
|
+
* reported dangling — never silently dropped.
|
|
368
|
+
* 2. `pages.setName()` creates or replaces by decoded key (idempotent),
|
|
369
|
+
* `replace` renames in one job, and the result IS the new layout.
|
|
370
|
+
* 3. `pages.removeName()` drops the registration and nothing else.
|
|
371
|
+
* 4. Deleting a page removes every registration pointing at it — inside
|
|
372
|
+
* the delete, with no plugin in the loop.
|
|
373
|
+
* 5. Non-ASCII keys round-trip unchanged (Acrobat writes UTF-16 + BOM).
|
|
374
|
+
*
|
|
375
|
+
* Skips cleanly when the engine does not implement the optional members.
|
|
376
|
+
*/
|
|
377
|
+
declare function runNamedPagesConformance(runner: ConformanceTestRunner, opts: ConformanceOptions): void;
|
|
378
|
+
//#endregion
|
|
379
|
+
//#region src/conformance/runAnnotationFlattenConformance.d.ts
|
|
380
|
+
/**
|
|
381
|
+
* Selective annotation flatten: `page(pon).annotations.flatten(refs)` is
|
|
382
|
+
* `pages.flatten` for a chosen set. Locks, on every engine:
|
|
383
|
+
* 1. only the given refs are painted and removed; the rest of the page's
|
|
384
|
+
* annotations are untouched;
|
|
385
|
+
* 2. per-ref status (`applied` / `skipped`), one `annotations.flattened`
|
|
386
|
+
* event, a `meta` with that page's new pins, layout unchanged;
|
|
387
|
+
* 3. a hidden ref is `skipped`; a ref on another page rejects `InvalidArg`
|
|
388
|
+
* with nothing mutated.
|
|
389
|
+
* Skips cleanly when the engine does not implement the optional member.
|
|
390
|
+
*/
|
|
391
|
+
declare function runAnnotationFlattenConformance(runner: ConformanceTestRunner, opts: ConformanceOptions): void;
|
|
392
|
+
//#endregion
|
|
393
|
+
//#region src/conformance/runAnnotationAppearanceExportConformance.d.ts
|
|
394
|
+
/**
|
|
395
|
+
* `page(pon).annotations.exportAppearance(refs)`: the chosen annotations'
|
|
396
|
+
* appearances as ONE single-page PDF sized to their union /Rect. Locks:
|
|
397
|
+
* 1. bytes are a PDF; the source page is untouched (no mutation, no
|
|
398
|
+
* revision bump);
|
|
399
|
+
* 2. re-opened (local engines), the page is exactly the union size and the
|
|
400
|
+
* requested count of annotations is gone — they are content now;
|
|
401
|
+
* 3. a ref on another page rejects `InvalidArg`; an empty list rejects.
|
|
402
|
+
* Skips cleanly when the engine does not implement the optional member.
|
|
403
|
+
*/
|
|
404
|
+
declare function runAnnotationAppearanceExportConformance(runner: ConformanceTestRunner, opts: ConformanceOptions): void;
|
|
405
|
+
//#endregion
|
|
353
406
|
//#region src/conformance/runPageFlattenConformance.d.ts
|
|
354
407
|
/** Transport-neutral coverage for the content + annotation flatten rail. */
|
|
355
408
|
declare function runPageFlattenConformance(runner: ConformanceTestRunner, opts: ConformanceOptions): void;
|
|
@@ -644,5 +697,5 @@ declare function runSearchConformance(runner: ConformanceTestRunner, opts: Searc
|
|
|
644
697
|
declare function diffAnnotationListSnapshot(a: AnnotationListPageSnapshot, b: AnnotationListPageSnapshot): string[];
|
|
645
698
|
declare function diffAnnotationListSnapshotAll(a: AnnotationListSnapshotAllPages, b: AnnotationListSnapshotAllPages): string[];
|
|
646
699
|
//#endregion
|
|
647
|
-
export { type ActionsConformanceFixtures, type ActionsConformanceOptions, type AnnotationAppearanceConformanceFixture, type AnnotationAppearanceConformanceOptions, type AnnotationConformanceOptions, type AnnotationMutationConformanceFixture, type AnnotationMutationConformanceOptions, type AnnotationReadConformanceFixture, type ConformanceExpect, type ConformanceFixture, type ConformanceOptions, type ConformanceTestRunner, type FormConformanceFixtures, type FormConformanceOptions, type PageGeometryOrientationFixture, type PageGeometryOrientationOptions, type PageReorderConformanceFixture, type PageReorderConformanceOptions, type PageTextConformanceFixture, type PageTextConformanceOptions, type SearchConformanceFixture, type SearchConformanceOptions, TEXT_DIVERGENCE_CASES, type TextDivergenceCase, type TextDivergenceConformanceFixture, type TextDivergenceConformanceOptions, diffAnnotationListSnapshot, diffAnnotationListSnapshotAll, runActionsConformance, runAnnotationAppearanceConformance, runAnnotationMutationConformance, runAnnotationReadConformance, runAttachmentConformance, runDocumentEventsConformance, runFormConformance, runMetadataConformance, runPageDeleteConformance, runPageExtractConformance, runPageFlattenConformance, runPageGeometryOrientationConformance, runPageInsertBlankConformance, runPageInsertConformance, runPageReorderConformance, runPageRotateConformance, runPageTextConformance, runPieceInfoConformance, runRedactionApplyConformance, runSearchConformance, runTextDivergenceConformance };
|
|
700
|
+
export { type ActionsConformanceFixtures, type ActionsConformanceOptions, type AnnotationAppearanceConformanceFixture, type AnnotationAppearanceConformanceOptions, type AnnotationConformanceOptions, type AnnotationMutationConformanceFixture, type AnnotationMutationConformanceOptions, type AnnotationReadConformanceFixture, type ConformanceExpect, type ConformanceFixture, type ConformanceOptions, type ConformanceTestRunner, type FormConformanceFixtures, type FormConformanceOptions, type PageGeometryOrientationFixture, type PageGeometryOrientationOptions, type PageReorderConformanceFixture, type PageReorderConformanceOptions, type PageTextConformanceFixture, type PageTextConformanceOptions, type SearchConformanceFixture, type SearchConformanceOptions, TEXT_DIVERGENCE_CASES, type TextDivergenceCase, type TextDivergenceConformanceFixture, type TextDivergenceConformanceOptions, diffAnnotationListSnapshot, diffAnnotationListSnapshotAll, runActionsConformance, runAnnotationAppearanceConformance, runAnnotationAppearanceExportConformance, runAnnotationFlattenConformance, runAnnotationMutationConformance, runAnnotationReadConformance, runAttachmentConformance, runDocumentEventsConformance, runFormConformance, runMetadataConformance, runNamedPagesConformance, runPageDeleteConformance, runPageExtractConformance, runPageFlattenConformance, runPageGeometryOrientationConformance, runPageInsertBlankConformance, runPageInsertConformance, runPageReorderConformance, runPageRotateConformance, runPageTextConformance, runPieceInfoConformance, runRedactionApplyConformance, runSearchConformance, runTextDivergenceConformance };
|
|
648
701
|
//# sourceMappingURL=conformance.d.ts.map
|