@embedpdf/engine-core 3.0.0-next.2 → 3.0.0-next.4

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.
Files changed (55) hide show
  1. package/dist/{AbortError-ByBflvEl.cjs → AbortError-BFwCIKC6.cjs} +2 -2
  2. package/dist/{AbortError-ByBflvEl.cjs.map → AbortError-BFwCIKC6.cjs.map} +1 -1
  3. package/dist/{AbortError-CjSasIlL.js → AbortError-D0w0N4pJ.js} +2 -2
  4. package/dist/{AbortError-CjSasIlL.js.map → AbortError-D0w0N4pJ.js.map} +1 -1
  5. package/dist/{AnnotationListSnapshot-W0RCsyDE.d.cts → AnnotationListSnapshot-_Z600IzD.d.cts} +216 -20
  6. package/dist/{AnnotationListSnapshot-W0RCsyDE.d.ts → AnnotationListSnapshot-_Z600IzD.d.ts} +216 -20
  7. package/dist/{DocumentSecurityService-B-tULKNY.d.ts → DocumentSecurityService-BR4tesJK.d.ts} +2 -2
  8. package/dist/{DocumentSecurityService-Df79fgpe.d.cts → DocumentSecurityService-CoHQf0Ju.d.cts} +2 -2
  9. package/dist/{Engine-D9loFZc1.d.cts → Engine-LHgbW5z-.d.cts} +4 -4
  10. package/dist/{Engine-B7Oe7f5i.d.ts → Engine-h_6P4pjM.d.ts} +4 -4
  11. package/dist/{builders-C548U47M.js → builders-BWgXkLKd.js} +382 -167
  12. package/dist/builders-BWgXkLKd.js.map +1 -0
  13. package/dist/{builders-BvikWRuO.cjs → builders-CBK8k_cn.cjs} +423 -220
  14. package/dist/builders-CBK8k_cn.cjs.map +1 -0
  15. package/dist/conformance.cjs +303 -135
  16. package/dist/conformance.cjs.map +1 -1
  17. package/dist/conformance.d.cts +37 -3
  18. package/dist/conformance.d.ts +37 -3
  19. package/dist/conformance.js +303 -136
  20. package/dist/conformance.js.map +1 -1
  21. package/dist/{fold-CB4fAOOy.js → fold-D3_ZiKOg.js} +162 -3
  22. package/dist/fold-D3_ZiKOg.js.map +1 -0
  23. package/dist/{fold-IaMph3CO.cjs → fold-M6iEyY8X.cjs} +233 -2
  24. package/dist/fold-M6iEyY8X.cjs.map +1 -0
  25. package/dist/index.cjs +22 -12
  26. package/dist/index.d.cts +2 -2
  27. package/dist/index.d.ts +2 -2
  28. package/dist/index.js +4 -4
  29. package/dist/runtime.cjs +23 -13
  30. package/dist/runtime.d.cts +4 -4
  31. package/dist/runtime.d.ts +4 -4
  32. package/dist/runtime.js +5 -5
  33. package/dist/{schemas-9OpSSeM6.js → schemas-C32v81cE.js} +29 -4
  34. package/dist/schemas-C32v81cE.js.map +1 -0
  35. package/dist/{schemas-B_1VyFsm.cjs → schemas-CLByd6ze.cjs} +29 -4
  36. package/dist/schemas-CLByd6ze.cjs.map +1 -0
  37. package/dist/{subtype-qejjVr6h.cjs → subtype-C4XA7C16.cjs} +9 -1
  38. package/dist/subtype-C4XA7C16.cjs.map +1 -0
  39. package/dist/{subtype-BvAzLCGC.js → subtype-DsxZbJtP.js} +9 -1
  40. package/dist/subtype-DsxZbJtP.js.map +1 -0
  41. package/dist/wire.cjs +14 -1
  42. package/dist/wire.cjs.map +1 -1
  43. package/dist/wire.d.cts +13 -4
  44. package/dist/wire.d.ts +13 -4
  45. package/dist/wire.js +14 -2
  46. package/dist/wire.js.map +1 -1
  47. package/package.json +1 -1
  48. package/dist/builders-BvikWRuO.cjs.map +0 -1
  49. package/dist/builders-C548U47M.js.map +0 -1
  50. package/dist/fold-CB4fAOOy.js.map +0 -1
  51. package/dist/fold-IaMph3CO.cjs.map +0 -1
  52. package/dist/schemas-9OpSSeM6.js.map +0 -1
  53. package/dist/schemas-B_1VyFsm.cjs.map +0 -1
  54. package/dist/subtype-BvAzLCGC.js.map +0 -1
  55. package/dist/subtype-qejjVr6h.cjs.map +0 -1
@@ -1,5 +1,5 @@
1
- import { An as HighlightDraft, Cc as InkList, Ec as PdfPoint, Oc as PdfRect, Tc as LinePoints, Vc as DocumentMetadata, n as AnnotationListSnapshotAllPages, t as AnnotationListPageSnapshot } from "./AnnotationListSnapshot-W0RCsyDE.cjs";
2
- import { t as Engine } from "./Engine-D9loFZc1.cjs";
1
+ import { An as HighlightDraft, Gc as PdfPoint, Hc as InkList, Wc as LinePoints, n as AnnotationListSnapshotAllPages, ol as DocumentMetadata, qc as PdfRect, t as AnnotationListPageSnapshot } from "./AnnotationListSnapshot-_Z600IzD.cjs";
2
+ import { t as Engine } from "./Engine-LHgbW5z-.cjs";
3
3
  //#region src/conformance/runMetadataConformance.d.ts
4
4
  interface ConformanceTestRunner {
5
5
  describe(name: string, fn: () => void): void;
@@ -489,6 +489,40 @@ interface PageTextConformanceOptions extends Omit<ConformanceOptions, 'fixture'>
489
489
  }
490
490
  declare function runPageTextConformance(runner: ConformanceTestRunner, opts: PageTextConformanceOptions): void;
491
491
  //#endregion
492
+ //#region src/conformance/runPageGeometryOrientationConformance.d.ts
493
+ /**
494
+ * Per-fixture expectations for the oriented-text geometry harness. One
495
+ * fixture per call, mirroring the other conformance suites; the fixture
496
+ * declares what its dominant text orientation must read back as.
497
+ */
498
+ interface PageGeometryOrientationFixture extends ConformanceFixture {
499
+ /** PDF indirect object number of the page under test. */
500
+ pageObjectNumber: number;
501
+ expectation: {
502
+ /** Every run is the upright variant; no glyph carries oriented cells. */
503
+ kind: 'upright';
504
+ } | {
505
+ /** The page loads and every glyph is degenerate (zeroed + empty flag). */
506
+ kind: 'empty-only';
507
+ } | {
508
+ kind: 'rotated';
509
+ /** Baseline angles (radians, CCW, PDF y-up) rotated runs may carry. */
510
+ rotations: number[];
511
+ ascentFlip: boolean;
512
+ /**
513
+ * Assert sheared cells: with `rotations` ≈ [0], a non-zero start-edge
514
+ * x-offset proves the parallelogram (an AABB could not express it).
515
+ */
516
+ sheared?: boolean;
517
+ /** Minimum number of rotated runs the page must produce (default 1). */
518
+ minRotatedRuns?: number;
519
+ };
520
+ }
521
+ interface PageGeometryOrientationOptions extends Omit<ConformanceOptions, 'fixture'> {
522
+ fixture: PageGeometryOrientationFixture;
523
+ }
524
+ declare function runPageGeometryOrientationConformance(runner: ConformanceTestRunner, opts: PageGeometryOrientationOptions): void;
525
+ //#endregion
492
526
  //#region src/conformance/runSearchConformance.d.ts
493
527
  /**
494
528
  * Per-fixture expectations for the search harness. Suites supply a
@@ -526,5 +560,5 @@ declare function runSearchConformance(runner: ConformanceTestRunner, opts: Searc
526
560
  declare function diffAnnotationListSnapshot(a: AnnotationListPageSnapshot, b: AnnotationListPageSnapshot): string[];
527
561
  declare function diffAnnotationListSnapshotAll(a: AnnotationListSnapshotAllPages, b: AnnotationListSnapshotAllPages): string[];
528
562
  //#endregion
529
- 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 PageReorderConformanceFixture, type PageReorderConformanceOptions, type PageTextConformanceFixture, type PageTextConformanceOptions, type SearchConformanceFixture, type SearchConformanceOptions, diffAnnotationListSnapshot, diffAnnotationListSnapshotAll, runActionsConformance, runAnnotationAppearanceConformance, runAnnotationMutationConformance, runAnnotationReadConformance, runAttachmentConformance, runDocumentEventsConformance, runFormConformance, runMetadataConformance, runPageDeleteConformance, runPageExtractConformance, runPageFlattenConformance, runPageInsertConformance, runPageReorderConformance, runPageRotateConformance, runPageTextConformance, runPieceInfoConformance, runRedactionApplyConformance, runSearchConformance };
563
+ 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, diffAnnotationListSnapshot, diffAnnotationListSnapshotAll, runActionsConformance, runAnnotationAppearanceConformance, runAnnotationMutationConformance, runAnnotationReadConformance, runAttachmentConformance, runDocumentEventsConformance, runFormConformance, runMetadataConformance, runPageDeleteConformance, runPageExtractConformance, runPageFlattenConformance, runPageGeometryOrientationConformance, runPageInsertConformance, runPageReorderConformance, runPageRotateConformance, runPageTextConformance, runPieceInfoConformance, runRedactionApplyConformance, runSearchConformance };
530
564
  //# sourceMappingURL=conformance.d.cts.map
@@ -1,5 +1,5 @@
1
- import { An as HighlightDraft, Cc as InkList, Ec as PdfPoint, Oc as PdfRect, Tc as LinePoints, Vc as DocumentMetadata, n as AnnotationListSnapshotAllPages, t as AnnotationListPageSnapshot } from "./AnnotationListSnapshot-W0RCsyDE.js";
2
- import { t as Engine } from "./Engine-B7Oe7f5i.js";
1
+ import { An as HighlightDraft, Gc as PdfPoint, Hc as InkList, Wc as LinePoints, n as AnnotationListSnapshotAllPages, ol as DocumentMetadata, qc as PdfRect, t as AnnotationListPageSnapshot } from "./AnnotationListSnapshot-_Z600IzD.js";
2
+ import { t as Engine } from "./Engine-h_6P4pjM.js";
3
3
  //#region src/conformance/runMetadataConformance.d.ts
4
4
  interface ConformanceTestRunner {
5
5
  describe(name: string, fn: () => void): void;
@@ -489,6 +489,40 @@ interface PageTextConformanceOptions extends Omit<ConformanceOptions, 'fixture'>
489
489
  }
490
490
  declare function runPageTextConformance(runner: ConformanceTestRunner, opts: PageTextConformanceOptions): void;
491
491
  //#endregion
492
+ //#region src/conformance/runPageGeometryOrientationConformance.d.ts
493
+ /**
494
+ * Per-fixture expectations for the oriented-text geometry harness. One
495
+ * fixture per call, mirroring the other conformance suites; the fixture
496
+ * declares what its dominant text orientation must read back as.
497
+ */
498
+ interface PageGeometryOrientationFixture extends ConformanceFixture {
499
+ /** PDF indirect object number of the page under test. */
500
+ pageObjectNumber: number;
501
+ expectation: {
502
+ /** Every run is the upright variant; no glyph carries oriented cells. */
503
+ kind: 'upright';
504
+ } | {
505
+ /** The page loads and every glyph is degenerate (zeroed + empty flag). */
506
+ kind: 'empty-only';
507
+ } | {
508
+ kind: 'rotated';
509
+ /** Baseline angles (radians, CCW, PDF y-up) rotated runs may carry. */
510
+ rotations: number[];
511
+ ascentFlip: boolean;
512
+ /**
513
+ * Assert sheared cells: with `rotations` ≈ [0], a non-zero start-edge
514
+ * x-offset proves the parallelogram (an AABB could not express it).
515
+ */
516
+ sheared?: boolean;
517
+ /** Minimum number of rotated runs the page must produce (default 1). */
518
+ minRotatedRuns?: number;
519
+ };
520
+ }
521
+ interface PageGeometryOrientationOptions extends Omit<ConformanceOptions, 'fixture'> {
522
+ fixture: PageGeometryOrientationFixture;
523
+ }
524
+ declare function runPageGeometryOrientationConformance(runner: ConformanceTestRunner, opts: PageGeometryOrientationOptions): void;
525
+ //#endregion
492
526
  //#region src/conformance/runSearchConformance.d.ts
493
527
  /**
494
528
  * Per-fixture expectations for the search harness. Suites supply a
@@ -526,5 +560,5 @@ declare function runSearchConformance(runner: ConformanceTestRunner, opts: Searc
526
560
  declare function diffAnnotationListSnapshot(a: AnnotationListPageSnapshot, b: AnnotationListPageSnapshot): string[];
527
561
  declare function diffAnnotationListSnapshotAll(a: AnnotationListSnapshotAllPages, b: AnnotationListSnapshotAllPages): string[];
528
562
  //#endregion
529
- 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 PageReorderConformanceFixture, type PageReorderConformanceOptions, type PageTextConformanceFixture, type PageTextConformanceOptions, type SearchConformanceFixture, type SearchConformanceOptions, diffAnnotationListSnapshot, diffAnnotationListSnapshotAll, runActionsConformance, runAnnotationAppearanceConformance, runAnnotationMutationConformance, runAnnotationReadConformance, runAttachmentConformance, runDocumentEventsConformance, runFormConformance, runMetadataConformance, runPageDeleteConformance, runPageExtractConformance, runPageFlattenConformance, runPageInsertConformance, runPageReorderConformance, runPageRotateConformance, runPageTextConformance, runPieceInfoConformance, runRedactionApplyConformance, runSearchConformance };
563
+ 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, diffAnnotationListSnapshot, diffAnnotationListSnapshotAll, runActionsConformance, runAnnotationAppearanceConformance, runAnnotationMutationConformance, runAnnotationReadConformance, runAttachmentConformance, runDocumentEventsConformance, runFormConformance, runMetadataConformance, runPageDeleteConformance, runPageExtractConformance, runPageFlattenConformance, runPageGeometryOrientationConformance, runPageInsertConformance, runPageReorderConformance, runPageRotateConformance, runPageTextConformance, runPieceInfoConformance, runRedactionApplyConformance, runSearchConformance };
530
564
  //# sourceMappingURL=conformance.d.ts.map