@embedpdf/engine-core 3.0.0-next.11 → 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-C1U3XUxP.d.cts → AnnotationListSnapshot-x6tKulNV.d.cts} +153 -28
- package/dist/{AnnotationListSnapshot-C1U3XUxP.d.ts → AnnotationListSnapshot-x6tKulNV.d.ts} +153 -28
- package/dist/{DocumentSecurityService-7nL9aY75.d.ts → DocumentSecurityService-9MawYxP-.d.ts} +2 -2
- package/dist/{DocumentSecurityService-6rhztZlz.d.cts → DocumentSecurityService-CK0pejAK.d.cts} +2 -2
- package/dist/{Engine-D3868xIU.d.cts → Engine--0XF0UAK.d.cts} +56 -3
- package/dist/{Engine-CWnAKccD.d.ts → Engine-Ds0ytbl6.d.ts} +56 -3
- package/dist/{builders-Do6_4KnS.cjs → builders-8Hl1AYNU.cjs} +14 -8
- package/dist/builders-8Hl1AYNU.cjs.map +1 -0
- package/dist/{builders-Cdz34nbF.js → builders-DOjcKDWQ.js} +14 -8
- package/dist/builders-DOjcKDWQ.js.map +1 -0
- package/dist/conformance.cjs +552 -95
- package/dist/conformance.cjs.map +1 -1
- package/dist/conformance.d.cts +50 -3
- package/dist/conformance.d.ts +50 -3
- package/dist/conformance.js +550 -96
- package/dist/conformance.js.map +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +1 -1
- package/dist/runtime.cjs +1 -1
- package/dist/runtime.d.cts +66 -5
- package/dist/runtime.d.ts +66 -5
- package/dist/runtime.js +1 -1
- package/dist/{schemas-XGrNVMDd.js → schemas-DOyVEPk7.js} +51 -5
- package/dist/schemas-DOyVEPk7.js.map +1 -0
- package/dist/{schemas-CS5iPpX5.cjs → schemas-RChsAMWw.cjs} +92 -4
- package/dist/schemas-RChsAMWw.cjs.map +1 -0
- package/dist/wire.cjs +23 -1
- package/dist/wire.cjs.map +1 -1
- package/dist/wire.d.cts +32 -3
- package/dist/wire.d.ts +32 -3
- package/dist/wire.js +17 -2
- package/dist/wire.js.map +1 -1
- package/package.json +1 -1
- package/dist/builders-Cdz34nbF.js.map +0 -1
- package/dist/builders-Do6_4KnS.cjs.map +0 -1
- package/dist/schemas-CS5iPpX5.cjs.map +0 -1
- package/dist/schemas-XGrNVMDd.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;
|
|
@@ -356,6 +356,53 @@ declare function runPageRotateConformance(runner: ConformanceTestRunner, opts: C
|
|
|
356
356
|
*/
|
|
357
357
|
declare function runPageDeleteConformance(runner: ConformanceTestRunner, opts: ConformanceOptions): void;
|
|
358
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
|
|
359
406
|
//#region src/conformance/runPageFlattenConformance.d.ts
|
|
360
407
|
/** Transport-neutral coverage for the content + annotation flatten rail. */
|
|
361
408
|
declare function runPageFlattenConformance(runner: ConformanceTestRunner, opts: ConformanceOptions): void;
|
|
@@ -650,5 +697,5 @@ declare function runSearchConformance(runner: ConformanceTestRunner, opts: Searc
|
|
|
650
697
|
declare function diffAnnotationListSnapshot(a: AnnotationListPageSnapshot, b: AnnotationListPageSnapshot): string[];
|
|
651
698
|
declare function diffAnnotationListSnapshotAll(a: AnnotationListSnapshotAllPages, b: AnnotationListSnapshotAllPages): string[];
|
|
652
699
|
//#endregion
|
|
653
|
-
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 };
|
|
654
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;
|
|
@@ -356,6 +356,53 @@ declare function runPageRotateConformance(runner: ConformanceTestRunner, opts: C
|
|
|
356
356
|
*/
|
|
357
357
|
declare function runPageDeleteConformance(runner: ConformanceTestRunner, opts: ConformanceOptions): void;
|
|
358
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
|
|
359
406
|
//#region src/conformance/runPageFlattenConformance.d.ts
|
|
360
407
|
/** Transport-neutral coverage for the content + annotation flatten rail. */
|
|
361
408
|
declare function runPageFlattenConformance(runner: ConformanceTestRunner, opts: ConformanceOptions): void;
|
|
@@ -650,5 +697,5 @@ declare function runSearchConformance(runner: ConformanceTestRunner, opts: Searc
|
|
|
650
697
|
declare function diffAnnotationListSnapshot(a: AnnotationListPageSnapshot, b: AnnotationListPageSnapshot): string[];
|
|
651
698
|
declare function diffAnnotationListSnapshotAll(a: AnnotationListSnapshotAllPages, b: AnnotationListSnapshotAllPages): string[];
|
|
652
699
|
//#endregion
|
|
653
|
-
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 };
|
|
654
701
|
//# sourceMappingURL=conformance.d.ts.map
|