@embedpdf/engine-core 3.0.0-next.13 → 3.0.0-next.14
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/{AbortError-DHqPBnYc.js → AbortError-DwuHPK_I.js} +2 -2
- package/dist/{AbortError-DHqPBnYc.js.map → AbortError-DwuHPK_I.js.map} +1 -1
- package/dist/{AbortError-Cq2igpZ6.cjs → AbortError-P0RU0Mgg.cjs} +4 -4
- package/dist/{AbortError-Cq2igpZ6.cjs.map → AbortError-P0RU0Mgg.cjs.map} +1 -1
- package/dist/{AnnotationListSnapshot-D3mFut1e.d.cts → AnnotationListSnapshot-D9R5n2Kf.d.cts} +237 -7
- package/dist/{AnnotationListSnapshot-D3mFut1e.d.ts → AnnotationListSnapshot-D9R5n2Kf.d.ts} +237 -7
- package/dist/{DocumentSecurityService-ClTZc0zO.d.cts → DocumentSecurityService-CIx1MT0T.d.cts} +2 -2
- package/dist/{DocumentSecurityService-_JRjqvoI.d.ts → DocumentSecurityService-Ca6EK3-3.d.ts} +2 -2
- package/dist/{Engine-Bx0NOfmd.d.cts → Engine-EWWHhEIi.d.ts} +17 -4
- package/dist/{Engine-DxtpCYcP.d.ts → Engine-FNaAEjfb.d.cts} +17 -4
- package/dist/conformance.cjs +382 -95
- package/dist/conformance.cjs.map +1 -1
- package/dist/conformance.d.cts +7 -3
- package/dist/conformance.d.ts +7 -3
- package/dist/conformance.js +302 -16
- package/dist/conformance.js.map +1 -1
- package/dist/derive-BbsDk_Kz.cjs +880 -0
- package/dist/derive-BbsDk_Kz.cjs.map +1 -0
- package/dist/derive-DAFJolWu.js +647 -0
- package/dist/derive-DAFJolWu.js.map +1 -0
- package/dist/{PageInsertBlankInput-cHq9-i-z.js → format-Bbphf4zR.js} +59 -2
- package/dist/format-Bbphf4zR.js.map +1 -0
- package/dist/{PageInsertBlankInput-CqXBmFhN.cjs → format-D_epWlob.cjs} +70 -1
- package/dist/format-D_epWlob.cjs.map +1 -0
- package/dist/index.cjs +127 -107
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +4 -4
- package/dist/runtime.cjs +137 -117
- package/dist/runtime.cjs.map +1 -1
- package/dist/runtime.d.cts +29 -5
- package/dist/runtime.d.ts +29 -5
- package/dist/runtime.js +5 -5
- package/dist/{schemas-BLARNCgx.js → schemas-CFQGvWiu.js} +134 -4
- package/dist/schemas-CFQGvWiu.js.map +1 -0
- package/dist/{schemas-DIqFMmrC.cjs → schemas-D0g6tKa9.cjs} +250 -24
- package/dist/schemas-D0g6tKa9.cjs.map +1 -0
- package/dist/{builders-Bqm8yTpi.cjs → viewport-BWeNHZmb.cjs} +71 -132
- package/dist/viewport-BWeNHZmb.cjs.map +1 -0
- package/dist/{builders-Dqo2X-dt.js → viewport-CvMcadfQ.js} +39 -88
- package/dist/viewport-CvMcadfQ.js.map +1 -0
- package/dist/wire.cjs +25 -2
- package/dist/wire.cjs.map +1 -1
- package/dist/wire.d.cts +2739 -8
- package/dist/wire.d.ts +2739 -8
- package/dist/wire.js +10 -3
- package/dist/wire.js.map +1 -1
- package/package.json +1 -1
- package/dist/PageInsertBlankInput-CqXBmFhN.cjs.map +0 -1
- package/dist/PageInsertBlankInput-cHq9-i-z.js.map +0 -1
- package/dist/builders-Bqm8yTpi.cjs.map +0 -1
- package/dist/builders-Dqo2X-dt.js.map +0 -1
- package/dist/fold-2V29cxCV.cjs +0 -447
- package/dist/fold-2V29cxCV.cjs.map +0 -1
- package/dist/fold-CdEJTBTn.js +0 -334
- package/dist/fold-CdEJTBTn.js.map +0 -1
- package/dist/schemas-BLARNCgx.js.map +0 -1
- package/dist/schemas-DIqFMmrC.cjs.map +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const
|
|
1
|
+
const require_format = require("./format-D_epWlob.cjs");
|
|
2
2
|
let zod = require("zod");
|
|
3
3
|
//#region src/geometry/schemas.ts
|
|
4
4
|
/**
|
|
@@ -519,7 +519,7 @@ const CaretPatchSchema = zod.z.object({
|
|
|
519
519
|
//#region src/annotation/kinds/caret/index.ts
|
|
520
520
|
const CaretKind = {
|
|
521
521
|
subtype: "caret",
|
|
522
|
-
pdfSubtypeCode:
|
|
522
|
+
pdfSubtypeCode: require_format.PdfAnnotationSubtypeCode.CARET,
|
|
523
523
|
dtoSchema: CaretDTOSchema,
|
|
524
524
|
draftSchema: CaretDraftSchema,
|
|
525
525
|
patchSchema: CaretPatchSchema
|
|
@@ -570,7 +570,7 @@ const CirclePatchSchema = zod.z.object({
|
|
|
570
570
|
//#region src/annotation/kinds/circle/index.ts
|
|
571
571
|
const CircleKind = {
|
|
572
572
|
subtype: "circle",
|
|
573
|
-
pdfSubtypeCode:
|
|
573
|
+
pdfSubtypeCode: require_format.PdfAnnotationSubtypeCode.CIRCLE,
|
|
574
574
|
dtoSchema: CircleDTOSchema,
|
|
575
575
|
draftSchema: CircleDraftSchema,
|
|
576
576
|
patchSchema: CirclePatchSchema
|
|
@@ -654,7 +654,7 @@ const FileAttachmentPatchSchema = zod.z.object({
|
|
|
654
654
|
*/
|
|
655
655
|
const FileAttachmentKind = {
|
|
656
656
|
subtype: "file-attachment",
|
|
657
|
-
pdfSubtypeCode:
|
|
657
|
+
pdfSubtypeCode: require_format.PdfAnnotationSubtypeCode.FILEATTACHMENT,
|
|
658
658
|
dtoSchema: FileAttachmentDTOSchema,
|
|
659
659
|
draftSchema: FileAttachmentWireDraftSchema,
|
|
660
660
|
patchSchema: FileAttachmentPatchSchema
|
|
@@ -799,7 +799,7 @@ const FreeTextPatchSchema = zod.z.object({
|
|
|
799
799
|
//#region src/annotation/kinds/free-text/index.ts
|
|
800
800
|
const FreeTextKind = {
|
|
801
801
|
subtype: "free-text",
|
|
802
|
-
pdfSubtypeCode:
|
|
802
|
+
pdfSubtypeCode: require_format.PdfAnnotationSubtypeCode.FREETEXT,
|
|
803
803
|
dtoSchema: FreeTextDTOSchema,
|
|
804
804
|
draftSchema: FreeTextDraftSchema,
|
|
805
805
|
patchSchema: FreeTextPatchSchema
|
|
@@ -839,7 +839,7 @@ const HighlightPatchSchema = zod.z.object({
|
|
|
839
839
|
//#region src/annotation/kinds/highlight/index.ts
|
|
840
840
|
const HighlightKind = {
|
|
841
841
|
subtype: "highlight",
|
|
842
|
-
pdfSubtypeCode:
|
|
842
|
+
pdfSubtypeCode: require_format.PdfAnnotationSubtypeCode.HIGHLIGHT,
|
|
843
843
|
dtoSchema: HighlightDTOSchema,
|
|
844
844
|
draftSchema: HighlightDraftSchema,
|
|
845
845
|
patchSchema: HighlightPatchSchema
|
|
@@ -876,14 +876,113 @@ const InkPatchSchema = zod.z.object({
|
|
|
876
876
|
//#region src/annotation/kinds/ink/index.ts
|
|
877
877
|
const InkKind = {
|
|
878
878
|
subtype: "ink",
|
|
879
|
-
pdfSubtypeCode:
|
|
879
|
+
pdfSubtypeCode: require_format.PdfAnnotationSubtypeCode.INK,
|
|
880
880
|
dtoSchema: InkDTOSchema,
|
|
881
881
|
draftSchema: InkDraftSchema,
|
|
882
882
|
patchSchema: InkPatchSchema
|
|
883
883
|
};
|
|
884
884
|
//#endregion
|
|
885
|
+
//#region src/dto/Measure.schema.ts
|
|
886
|
+
const float = zod.z.number().finite().refine((n) => Number.isFinite(Math.fround(n)), "Outside PDF float range");
|
|
887
|
+
const point = zod.z.object({
|
|
888
|
+
x: float,
|
|
889
|
+
y: float
|
|
890
|
+
}).strict();
|
|
891
|
+
const positive = float.refine((n) => Math.fround(n) > 0, "Must be positive in PDF float precision");
|
|
892
|
+
const PdfNumberFormatSchema = zod.z.object({
|
|
893
|
+
unit: zod.z.string(),
|
|
894
|
+
conversion: float.optional(),
|
|
895
|
+
fraction: zod.z.enum([
|
|
896
|
+
"decimal",
|
|
897
|
+
"fraction",
|
|
898
|
+
"round",
|
|
899
|
+
"truncate"
|
|
900
|
+
]).optional(),
|
|
901
|
+
precision: zod.z.number().int().optional(),
|
|
902
|
+
fixed: zod.z.boolean().optional(),
|
|
903
|
+
thousands: zod.z.string().optional(),
|
|
904
|
+
decimal: zod.z.string().optional(),
|
|
905
|
+
prefixSpacing: zod.z.string().optional(),
|
|
906
|
+
suffixSpacing: zod.z.string().optional(),
|
|
907
|
+
labelPosition: zod.z.enum(["suffix", "prefix"]).optional()
|
|
908
|
+
});
|
|
909
|
+
const PdfMeasureSchema = zod.z.object({
|
|
910
|
+
subtype: zod.z.literal("RL"),
|
|
911
|
+
ratio: zod.z.string().optional(),
|
|
912
|
+
x: zod.z.array(PdfNumberFormatSchema),
|
|
913
|
+
y: zod.z.array(PdfNumberFormatSchema).optional(),
|
|
914
|
+
distance: zod.z.array(PdfNumberFormatSchema),
|
|
915
|
+
area: zod.z.array(PdfNumberFormatSchema),
|
|
916
|
+
angle: zod.z.array(PdfNumberFormatSchema).optional(),
|
|
917
|
+
slope: zod.z.array(PdfNumberFormatSchema).optional(),
|
|
918
|
+
origin: point.optional(),
|
|
919
|
+
cyx: float.optional()
|
|
920
|
+
});
|
|
921
|
+
const writableFormat = PdfNumberFormatSchema.extend({
|
|
922
|
+
conversion: positive,
|
|
923
|
+
precision: zod.z.number().int().min(1).max(2147483647).optional()
|
|
924
|
+
}).refine(require_format.validNumberFormat, "Invalid number format precision");
|
|
925
|
+
const PdfMeasureWriteSchema = PdfMeasureSchema.extend({
|
|
926
|
+
x: zod.z.array(writableFormat),
|
|
927
|
+
y: zod.z.array(writableFormat).optional(),
|
|
928
|
+
distance: zod.z.array(writableFormat),
|
|
929
|
+
area: zod.z.array(writableFormat),
|
|
930
|
+
angle: zod.z.array(writableFormat).optional(),
|
|
931
|
+
slope: zod.z.array(writableFormat).optional(),
|
|
932
|
+
cyx: positive.optional()
|
|
933
|
+
});
|
|
934
|
+
const geoMeasure = zod.z.object({ subtype: zod.z.literal("GEO") });
|
|
935
|
+
const unknownMeasure = zod.z.object({ subtype: zod.z.literal("unknown") });
|
|
936
|
+
const PdfForeignMeasureSchema = zod.z.union([geoMeasure, unknownMeasure]);
|
|
937
|
+
const PageScaleInputSchema = zod.z.object({ measure: PdfMeasureWriteSchema.nullable() });
|
|
938
|
+
const PdfMeasurementSchema = zod.z.discriminatedUnion("subtype", [
|
|
939
|
+
PdfMeasureSchema,
|
|
940
|
+
geoMeasure,
|
|
941
|
+
unknownMeasure
|
|
942
|
+
]);
|
|
943
|
+
const PageMeasurementViewportSchema = zod.z.object({
|
|
944
|
+
bbox: PdfRectSchema,
|
|
945
|
+
name: zod.z.string().optional(),
|
|
946
|
+
measure: PdfMeasurementSchema.optional(),
|
|
947
|
+
owned: zod.z.boolean()
|
|
948
|
+
});
|
|
949
|
+
const LineIntentSchema = zod.z.enum(["LineArrow", "LineDimension"]);
|
|
950
|
+
const PolygonIntentSchema = zod.z.enum(["PolygonCloud", "PolygonDimension"]);
|
|
951
|
+
const PolylineIntentSchema = zod.z.literal("PolyLineDimension");
|
|
952
|
+
const offset = zod.z.object({
|
|
953
|
+
along: float,
|
|
954
|
+
perpendicular: float
|
|
955
|
+
}).strict();
|
|
956
|
+
const LineDimensionCaptionSchema = zod.z.object({
|
|
957
|
+
enabled: zod.z.boolean(),
|
|
958
|
+
position: zod.z.enum(["inline", "top"]).optional(),
|
|
959
|
+
offset: offset.optional()
|
|
960
|
+
}).strict();
|
|
961
|
+
const ShapeDimensionCaptionSchema = zod.z.object({
|
|
962
|
+
enabled: zod.z.boolean(),
|
|
963
|
+
center: point.optional()
|
|
964
|
+
}).strict();
|
|
965
|
+
const LineCaptionPatchSchema = zod.z.object({
|
|
966
|
+
enabled: zod.z.boolean().optional(),
|
|
967
|
+
position: zod.z.enum(["inline", "top"]).nullable().optional(),
|
|
968
|
+
offset: offset.nullable().optional()
|
|
969
|
+
}).strict();
|
|
970
|
+
const ShapeCaptionPatchSchema = zod.z.object({
|
|
971
|
+
enabled: zod.z.boolean().optional(),
|
|
972
|
+
center: point.nullable().optional()
|
|
973
|
+
}).strict();
|
|
974
|
+
const LineLeaderSchema = zod.z.object({
|
|
975
|
+
length: float,
|
|
976
|
+
extension: float.refine((n) => n >= 0).optional(),
|
|
977
|
+
offset: float.refine((n) => n >= 0).optional()
|
|
978
|
+
}).strict();
|
|
979
|
+
//#endregion
|
|
885
980
|
//#region src/annotation/kinds/line/schema.ts
|
|
886
981
|
const LineDTOSchema = zod.z.object({
|
|
982
|
+
intent: LineIntentSchema.optional(),
|
|
983
|
+
measure: PdfMeasurementSchema.optional(),
|
|
984
|
+
caption: LineDimensionCaptionSchema.optional(),
|
|
985
|
+
leader: LineLeaderSchema.optional(),
|
|
887
986
|
...AnnotationBaseShape,
|
|
888
987
|
...FilledStyleDTOShape,
|
|
889
988
|
linePoints: LinePointsSchema,
|
|
@@ -892,6 +991,10 @@ const LineDTOSchema = zod.z.object({
|
|
|
892
991
|
subtype: zod.z.literal("line")
|
|
893
992
|
});
|
|
894
993
|
const LineDraftSchema = zod.z.object({
|
|
994
|
+
intent: LineIntentSchema.nullable().optional(),
|
|
995
|
+
measure: PdfMeasureWriteSchema.nullable().optional(),
|
|
996
|
+
caption: LineDimensionCaptionSchema.nullable().optional(),
|
|
997
|
+
leader: LineLeaderSchema.nullable().optional(),
|
|
895
998
|
...FilledStyleDraftShape,
|
|
896
999
|
...AnnotationDraftBaseShape,
|
|
897
1000
|
linePoints: LinePointsSchema,
|
|
@@ -901,6 +1004,10 @@ const LineDraftSchema = zod.z.object({
|
|
|
901
1004
|
subtype: zod.z.literal("line")
|
|
902
1005
|
});
|
|
903
1006
|
const LinePatchSchema = zod.z.object({
|
|
1007
|
+
intent: LineIntentSchema.nullable().optional(),
|
|
1008
|
+
measure: PdfMeasureWriteSchema.nullable().optional(),
|
|
1009
|
+
caption: LineCaptionPatchSchema.nullable().optional(),
|
|
1010
|
+
leader: LineLeaderSchema.nullable().optional(),
|
|
904
1011
|
...FilledStylePatchShape,
|
|
905
1012
|
...AnnotationPatchBaseShape,
|
|
906
1013
|
linePoints: LinePointsSchema.optional(),
|
|
@@ -913,7 +1020,7 @@ const LinePatchSchema = zod.z.object({
|
|
|
913
1020
|
//#region src/annotation/kinds/line/index.ts
|
|
914
1021
|
const LineKind = {
|
|
915
1022
|
subtype: "line",
|
|
916
|
-
pdfSubtypeCode:
|
|
1023
|
+
pdfSubtypeCode: require_format.PdfAnnotationSubtypeCode.LINE,
|
|
917
1024
|
dtoSchema: LineDTOSchema,
|
|
918
1025
|
draftSchema: LineDraftSchema,
|
|
919
1026
|
patchSchema: LinePatchSchema
|
|
@@ -969,7 +1076,7 @@ const LinkPatchSchema = zod.z.object({
|
|
|
969
1076
|
//#region src/annotation/kinds/link/index.ts
|
|
970
1077
|
const LinkKind = {
|
|
971
1078
|
subtype: "link",
|
|
972
|
-
pdfSubtypeCode:
|
|
1079
|
+
pdfSubtypeCode: require_format.PdfAnnotationSubtypeCode.LINK,
|
|
973
1080
|
dtoSchema: LinkDTOSchema,
|
|
974
1081
|
draftSchema: LinkDraftSchema,
|
|
975
1082
|
patchSchema: LinkPatchSchema
|
|
@@ -997,12 +1104,18 @@ const VertexPatchShape = {
|
|
|
997
1104
|
//#endregion
|
|
998
1105
|
//#region src/annotation/kinds/polygon/schema.ts
|
|
999
1106
|
const PolygonDTOSchema = zod.z.object({
|
|
1107
|
+
intent: PolygonIntentSchema.optional(),
|
|
1108
|
+
measure: PdfMeasurementSchema.optional(),
|
|
1109
|
+
caption: ShapeDimensionCaptionSchema.optional(),
|
|
1000
1110
|
...VertexDTOShape,
|
|
1001
1111
|
vertices: zod.z.array(PdfPointSchema).min(3),
|
|
1002
1112
|
cloudyIntensity: zod.z.number().positive().nullable(),
|
|
1003
1113
|
subtype: zod.z.literal("polygon")
|
|
1004
1114
|
});
|
|
1005
1115
|
const PolygonDraftSchema = zod.z.object({
|
|
1116
|
+
intent: PolygonIntentSchema.nullable().optional(),
|
|
1117
|
+
measure: PdfMeasureWriteSchema.nullable().optional(),
|
|
1118
|
+
caption: ShapeDimensionCaptionSchema.nullable().optional(),
|
|
1006
1119
|
...VertexDraftShape,
|
|
1007
1120
|
...AnnotationDraftBaseShape,
|
|
1008
1121
|
vertices: zod.z.array(PdfPointSchema).min(3),
|
|
@@ -1010,6 +1123,9 @@ const PolygonDraftSchema = zod.z.object({
|
|
|
1010
1123
|
subtype: zod.z.literal("polygon")
|
|
1011
1124
|
});
|
|
1012
1125
|
const PolygonPatchSchema = zod.z.object({
|
|
1126
|
+
intent: PolygonIntentSchema.nullable().optional(),
|
|
1127
|
+
measure: PdfMeasureWriteSchema.nullable().optional(),
|
|
1128
|
+
caption: ShapeCaptionPatchSchema.nullable().optional(),
|
|
1013
1129
|
...VertexPatchShape,
|
|
1014
1130
|
...AnnotationPatchBaseShape,
|
|
1015
1131
|
vertices: zod.z.array(PdfPointSchema).min(3).optional(),
|
|
@@ -1020,7 +1136,7 @@ const PolygonPatchSchema = zod.z.object({
|
|
|
1020
1136
|
//#region src/annotation/kinds/polygon/index.ts
|
|
1021
1137
|
const PolygonKind = {
|
|
1022
1138
|
subtype: "polygon",
|
|
1023
|
-
pdfSubtypeCode:
|
|
1139
|
+
pdfSubtypeCode: require_format.PdfAnnotationSubtypeCode.POLYGON,
|
|
1024
1140
|
dtoSchema: PolygonDTOSchema,
|
|
1025
1141
|
draftSchema: PolygonDraftSchema,
|
|
1026
1142
|
patchSchema: PolygonPatchSchema
|
|
@@ -1028,12 +1144,18 @@ const PolygonKind = {
|
|
|
1028
1144
|
//#endregion
|
|
1029
1145
|
//#region src/annotation/kinds/polyline/schema.ts
|
|
1030
1146
|
const PolylineDTOSchema = zod.z.object({
|
|
1147
|
+
intent: PolylineIntentSchema.optional(),
|
|
1148
|
+
measure: PdfMeasurementSchema.optional(),
|
|
1149
|
+
caption: ShapeDimensionCaptionSchema.optional(),
|
|
1031
1150
|
...VertexDTOShape,
|
|
1032
1151
|
vertices: zod.z.array(PdfPointSchema).min(2),
|
|
1033
1152
|
lineEndings: LineEndingsSchema,
|
|
1034
1153
|
subtype: zod.z.literal("polyline")
|
|
1035
1154
|
});
|
|
1036
1155
|
const PolylineDraftSchema = zod.z.object({
|
|
1156
|
+
intent: PolylineIntentSchema.nullable().optional(),
|
|
1157
|
+
measure: PdfMeasureWriteSchema.nullable().optional(),
|
|
1158
|
+
caption: ShapeDimensionCaptionSchema.nullable().optional(),
|
|
1037
1159
|
...VertexDraftShape,
|
|
1038
1160
|
...AnnotationDraftBaseShape,
|
|
1039
1161
|
vertices: zod.z.array(PdfPointSchema).min(2),
|
|
@@ -1041,6 +1163,9 @@ const PolylineDraftSchema = zod.z.object({
|
|
|
1041
1163
|
subtype: zod.z.literal("polyline")
|
|
1042
1164
|
});
|
|
1043
1165
|
const PolylinePatchSchema = zod.z.object({
|
|
1166
|
+
intent: PolylineIntentSchema.nullable().optional(),
|
|
1167
|
+
measure: PdfMeasureWriteSchema.nullable().optional(),
|
|
1168
|
+
caption: ShapeCaptionPatchSchema.nullable().optional(),
|
|
1044
1169
|
...VertexPatchShape,
|
|
1045
1170
|
...AnnotationPatchBaseShape,
|
|
1046
1171
|
vertices: zod.z.array(PdfPointSchema).min(2).optional(),
|
|
@@ -1051,7 +1176,7 @@ const PolylinePatchSchema = zod.z.object({
|
|
|
1051
1176
|
//#region src/annotation/kinds/polyline/index.ts
|
|
1052
1177
|
const PolylineKind = {
|
|
1053
1178
|
subtype: "polyline",
|
|
1054
|
-
pdfSubtypeCode:
|
|
1179
|
+
pdfSubtypeCode: require_format.PdfAnnotationSubtypeCode.POLYLINE,
|
|
1055
1180
|
dtoSchema: PolylineDTOSchema,
|
|
1056
1181
|
draftSchema: PolylineDraftSchema,
|
|
1057
1182
|
patchSchema: PolylinePatchSchema
|
|
@@ -1114,7 +1239,7 @@ const RedactPatchSchema = zod.z.object({
|
|
|
1114
1239
|
//#region src/annotation/kinds/redact/index.ts
|
|
1115
1240
|
const RedactKind = {
|
|
1116
1241
|
subtype: "redact",
|
|
1117
|
-
pdfSubtypeCode:
|
|
1242
|
+
pdfSubtypeCode: require_format.PdfAnnotationSubtypeCode.REDACT,
|
|
1118
1243
|
dtoSchema: RedactDTOSchema,
|
|
1119
1244
|
draftSchema: RedactDraftSchema,
|
|
1120
1245
|
patchSchema: RedactPatchSchema
|
|
@@ -1139,7 +1264,7 @@ const SquarePatchSchema = zod.z.object({
|
|
|
1139
1264
|
//#region src/annotation/kinds/square/index.ts
|
|
1140
1265
|
const SquareKind = {
|
|
1141
1266
|
subtype: "square",
|
|
1142
|
-
pdfSubtypeCode:
|
|
1267
|
+
pdfSubtypeCode: require_format.PdfAnnotationSubtypeCode.SQUARE,
|
|
1143
1268
|
dtoSchema: SquareDTOSchema,
|
|
1144
1269
|
draftSchema: SquareDraftSchema,
|
|
1145
1270
|
patchSchema: SquarePatchSchema
|
|
@@ -1164,7 +1289,7 @@ const SquigglyPatchSchema = zod.z.object({
|
|
|
1164
1289
|
//#region src/annotation/kinds/squiggly/index.ts
|
|
1165
1290
|
const SquigglyKind = {
|
|
1166
1291
|
subtype: "squiggly",
|
|
1167
|
-
pdfSubtypeCode:
|
|
1292
|
+
pdfSubtypeCode: require_format.PdfAnnotationSubtypeCode.SQUIGGLY,
|
|
1168
1293
|
dtoSchema: SquigglyDTOSchema,
|
|
1169
1294
|
draftSchema: SquigglyDraftSchema,
|
|
1170
1295
|
patchSchema: SquigglyPatchSchema
|
|
@@ -1219,7 +1344,7 @@ const StampWirePatchSchema = zod.z.object({
|
|
|
1219
1344
|
*/
|
|
1220
1345
|
const StampKind = {
|
|
1221
1346
|
subtype: "stamp",
|
|
1222
|
-
pdfSubtypeCode:
|
|
1347
|
+
pdfSubtypeCode: require_format.PdfAnnotationSubtypeCode.STAMP,
|
|
1223
1348
|
dtoSchema: StampDTOSchema,
|
|
1224
1349
|
draftSchema: StampWireDraftSchema,
|
|
1225
1350
|
patchSchema: StampWirePatchSchema
|
|
@@ -1247,7 +1372,7 @@ const StrikeoutPatchSchema = zod.z.object({
|
|
|
1247
1372
|
//#region src/annotation/kinds/strikeout/index.ts
|
|
1248
1373
|
const StrikeoutKind = {
|
|
1249
1374
|
subtype: "strikeout",
|
|
1250
|
-
pdfSubtypeCode:
|
|
1375
|
+
pdfSubtypeCode: require_format.PdfAnnotationSubtypeCode.STRIKEOUT,
|
|
1251
1376
|
dtoSchema: StrikeoutDTOSchema,
|
|
1252
1377
|
draftSchema: StrikeoutDraftSchema,
|
|
1253
1378
|
patchSchema: StrikeoutPatchSchema
|
|
@@ -1293,7 +1418,7 @@ const TextPatchSchema = zod.z.object({
|
|
|
1293
1418
|
//#region src/annotation/kinds/text/index.ts
|
|
1294
1419
|
const TextKind = {
|
|
1295
1420
|
subtype: "text",
|
|
1296
|
-
pdfSubtypeCode:
|
|
1421
|
+
pdfSubtypeCode: require_format.PdfAnnotationSubtypeCode.TEXT,
|
|
1297
1422
|
dtoSchema: TextDTOSchema,
|
|
1298
1423
|
draftSchema: TextDraftSchema,
|
|
1299
1424
|
patchSchema: TextPatchSchema
|
|
@@ -1318,7 +1443,7 @@ const UnderlinePatchSchema = zod.z.object({
|
|
|
1318
1443
|
//#region src/annotation/kinds/underline/index.ts
|
|
1319
1444
|
const UnderlineKind = {
|
|
1320
1445
|
subtype: "underline",
|
|
1321
|
-
pdfSubtypeCode:
|
|
1446
|
+
pdfSubtypeCode: require_format.PdfAnnotationSubtypeCode.UNDERLINE,
|
|
1322
1447
|
dtoSchema: UnderlineDTOSchema,
|
|
1323
1448
|
draftSchema: UnderlineDraftSchema,
|
|
1324
1449
|
patchSchema: UnderlinePatchSchema
|
|
@@ -1337,7 +1462,7 @@ const UnsupportedPatchSchema = zod.z.never();
|
|
|
1337
1462
|
//#region src/annotation/kinds/unsupported/index.ts
|
|
1338
1463
|
const UnsupportedKind = {
|
|
1339
1464
|
subtype: "unsupported",
|
|
1340
|
-
pdfSubtypeCode:
|
|
1465
|
+
pdfSubtypeCode: require_format.PdfAnnotationSubtypeCode.UNKNOWN,
|
|
1341
1466
|
dtoSchema: UnsupportedDTOSchema,
|
|
1342
1467
|
draftSchema: UnsupportedDraftSchema,
|
|
1343
1468
|
patchSchema: UnsupportedPatchSchema
|
|
@@ -1400,7 +1525,7 @@ const WidgetPatchSchema = zod.z.object({
|
|
|
1400
1525
|
//#region src/annotation/kinds/widget/index.ts
|
|
1401
1526
|
const WidgetKind = {
|
|
1402
1527
|
subtype: "widget",
|
|
1403
|
-
pdfSubtypeCode:
|
|
1528
|
+
pdfSubtypeCode: require_format.PdfAnnotationSubtypeCode.WIDGET,
|
|
1404
1529
|
dtoSchema: WidgetDTOSchema,
|
|
1405
1530
|
draftSchema: WidgetDraftSchema,
|
|
1406
1531
|
patchSchema: WidgetPatchSchema
|
|
@@ -2040,7 +2165,7 @@ const AccessResponseSchema = zod.z.object({
|
|
|
2040
2165
|
}).optional()
|
|
2041
2166
|
});
|
|
2042
2167
|
const PdfSaveModeSchema = zod.z.enum(["incremental", "rewrite"]);
|
|
2043
|
-
const engineErrorCodeValues = Object.values(
|
|
2168
|
+
const engineErrorCodeValues = Object.values(require_format.EngineErrorCode);
|
|
2044
2169
|
const EngineErrorPayloadSchema = zod.z.object({
|
|
2045
2170
|
name: zod.z.literal("EngineError"),
|
|
2046
2171
|
code: zod.z.enum(engineErrorCodeValues),
|
|
@@ -2141,7 +2266,7 @@ const PageTextSnapshotSchema = zod.z.object({
|
|
|
2141
2266
|
charCount: zod.z.number().int().nonnegative(),
|
|
2142
2267
|
charMap: zod.z.array(zod.z.tuple([zod.z.number().int().nonnegative(), zod.z.number().int().nonnegative()])).optional()
|
|
2143
2268
|
}).superRefine((snapshot, ctx) => {
|
|
2144
|
-
const violation =
|
|
2269
|
+
const violation = require_format.charMapViolation(snapshot.charCount, snapshot.text.length, snapshot.charMap);
|
|
2145
2270
|
if (violation !== null) ctx.addIssue({
|
|
2146
2271
|
code: zod.z.ZodIssueCode.custom,
|
|
2147
2272
|
path: ["charMap"],
|
|
@@ -2185,7 +2310,8 @@ const SearchQuerySchema = zod.z.object({
|
|
|
2185
2310
|
regex: zod.z.boolean().optional(),
|
|
2186
2311
|
matchCase: zod.z.boolean().optional(),
|
|
2187
2312
|
wholeWord: zod.z.boolean().optional(),
|
|
2188
|
-
matchDiacritics: zod.z.boolean().optional()
|
|
2313
|
+
matchDiacritics: zod.z.boolean().optional(),
|
|
2314
|
+
ignoreWhitespace: zod.z.boolean().optional()
|
|
2189
2315
|
});
|
|
2190
2316
|
const SearchModeSchema = zod.z.enum(["rects", "full"]);
|
|
2191
2317
|
const SearchRequestSchema = zod.z.object({
|
|
@@ -3107,6 +3233,10 @@ const DocumentVersionsSchema = zod.z.object({
|
|
|
3107
3233
|
/** Oldest first. */
|
|
3108
3234
|
versions: zod.z.array(DocumentVersionSchema)
|
|
3109
3235
|
});
|
|
3236
|
+
const PageScaleResultSchema = zod.z.object({
|
|
3237
|
+
pageObjectNumber: zod.z.number().int().positive(),
|
|
3238
|
+
meta: MutationMetaSchema
|
|
3239
|
+
});
|
|
3110
3240
|
//#endregion
|
|
3111
3241
|
Object.defineProperty(exports, "ANNOTATION_KINDS", {
|
|
3112
3242
|
enumerable: true,
|
|
@@ -3714,12 +3844,24 @@ Object.defineProperty(exports, "LayerScopesSchema", {
|
|
|
3714
3844
|
return LayerScopesSchema;
|
|
3715
3845
|
}
|
|
3716
3846
|
});
|
|
3847
|
+
Object.defineProperty(exports, "LineCaptionPatchSchema", {
|
|
3848
|
+
enumerable: true,
|
|
3849
|
+
get: function() {
|
|
3850
|
+
return LineCaptionPatchSchema;
|
|
3851
|
+
}
|
|
3852
|
+
});
|
|
3717
3853
|
Object.defineProperty(exports, "LineDTOSchema", {
|
|
3718
3854
|
enumerable: true,
|
|
3719
3855
|
get: function() {
|
|
3720
3856
|
return LineDTOSchema;
|
|
3721
3857
|
}
|
|
3722
3858
|
});
|
|
3859
|
+
Object.defineProperty(exports, "LineDimensionCaptionSchema", {
|
|
3860
|
+
enumerable: true,
|
|
3861
|
+
get: function() {
|
|
3862
|
+
return LineDimensionCaptionSchema;
|
|
3863
|
+
}
|
|
3864
|
+
});
|
|
3723
3865
|
Object.defineProperty(exports, "LineDraftSchema", {
|
|
3724
3866
|
enumerable: true,
|
|
3725
3867
|
get: function() {
|
|
@@ -3738,6 +3880,18 @@ Object.defineProperty(exports, "LineEndingsSchema", {
|
|
|
3738
3880
|
return LineEndingsSchema;
|
|
3739
3881
|
}
|
|
3740
3882
|
});
|
|
3883
|
+
Object.defineProperty(exports, "LineIntentSchema", {
|
|
3884
|
+
enumerable: true,
|
|
3885
|
+
get: function() {
|
|
3886
|
+
return LineIntentSchema;
|
|
3887
|
+
}
|
|
3888
|
+
});
|
|
3889
|
+
Object.defineProperty(exports, "LineLeaderSchema", {
|
|
3890
|
+
enumerable: true,
|
|
3891
|
+
get: function() {
|
|
3892
|
+
return LineLeaderSchema;
|
|
3893
|
+
}
|
|
3894
|
+
});
|
|
3741
3895
|
Object.defineProperty(exports, "LinePatchSchema", {
|
|
3742
3896
|
enumerable: true,
|
|
3743
3897
|
get: function() {
|
|
@@ -3888,6 +4042,12 @@ Object.defineProperty(exports, "PageListSnapshotSchema", {
|
|
|
3888
4042
|
return PageListSnapshotSchema;
|
|
3889
4043
|
}
|
|
3890
4044
|
});
|
|
4045
|
+
Object.defineProperty(exports, "PageMeasurementViewportSchema", {
|
|
4046
|
+
enumerable: true,
|
|
4047
|
+
get: function() {
|
|
4048
|
+
return PageMeasurementViewportSchema;
|
|
4049
|
+
}
|
|
4050
|
+
});
|
|
3891
4051
|
Object.defineProperty(exports, "PageMoveInputSchema", {
|
|
3892
4052
|
enumerable: true,
|
|
3893
4053
|
get: function() {
|
|
@@ -3948,6 +4108,18 @@ Object.defineProperty(exports, "PageRotateResultSchema", {
|
|
|
3948
4108
|
return PageRotateResultSchema;
|
|
3949
4109
|
}
|
|
3950
4110
|
});
|
|
4111
|
+
Object.defineProperty(exports, "PageScaleInputSchema", {
|
|
4112
|
+
enumerable: true,
|
|
4113
|
+
get: function() {
|
|
4114
|
+
return PageScaleInputSchema;
|
|
4115
|
+
}
|
|
4116
|
+
});
|
|
4117
|
+
Object.defineProperty(exports, "PageScaleResultSchema", {
|
|
4118
|
+
enumerable: true,
|
|
4119
|
+
get: function() {
|
|
4120
|
+
return PageScaleResultSchema;
|
|
4121
|
+
}
|
|
4122
|
+
});
|
|
3951
4123
|
Object.defineProperty(exports, "PageStateSchema", {
|
|
3952
4124
|
enumerable: true,
|
|
3953
4125
|
get: function() {
|
|
@@ -4014,6 +4186,12 @@ Object.defineProperty(exports, "PdfFieldActionsSchema", {
|
|
|
4014
4186
|
return PdfFieldActionsSchema;
|
|
4015
4187
|
}
|
|
4016
4188
|
});
|
|
4189
|
+
Object.defineProperty(exports, "PdfForeignMeasureSchema", {
|
|
4190
|
+
enumerable: true,
|
|
4191
|
+
get: function() {
|
|
4192
|
+
return PdfForeignMeasureSchema;
|
|
4193
|
+
}
|
|
4194
|
+
});
|
|
4017
4195
|
Object.defineProperty(exports, "PdfLinkTargetSchema", {
|
|
4018
4196
|
enumerable: true,
|
|
4019
4197
|
get: function() {
|
|
@@ -4026,6 +4204,30 @@ Object.defineProperty(exports, "PdfLinkTargetWritableSchema", {
|
|
|
4026
4204
|
return PdfLinkTargetWritableSchema;
|
|
4027
4205
|
}
|
|
4028
4206
|
});
|
|
4207
|
+
Object.defineProperty(exports, "PdfMeasureSchema", {
|
|
4208
|
+
enumerable: true,
|
|
4209
|
+
get: function() {
|
|
4210
|
+
return PdfMeasureSchema;
|
|
4211
|
+
}
|
|
4212
|
+
});
|
|
4213
|
+
Object.defineProperty(exports, "PdfMeasureWriteSchema", {
|
|
4214
|
+
enumerable: true,
|
|
4215
|
+
get: function() {
|
|
4216
|
+
return PdfMeasureWriteSchema;
|
|
4217
|
+
}
|
|
4218
|
+
});
|
|
4219
|
+
Object.defineProperty(exports, "PdfMeasurementSchema", {
|
|
4220
|
+
enumerable: true,
|
|
4221
|
+
get: function() {
|
|
4222
|
+
return PdfMeasurementSchema;
|
|
4223
|
+
}
|
|
4224
|
+
});
|
|
4225
|
+
Object.defineProperty(exports, "PdfNumberFormatSchema", {
|
|
4226
|
+
enumerable: true,
|
|
4227
|
+
get: function() {
|
|
4228
|
+
return PdfNumberFormatSchema;
|
|
4229
|
+
}
|
|
4230
|
+
});
|
|
4029
4231
|
Object.defineProperty(exports, "PdfPageActionsSchema", {
|
|
4030
4232
|
enumerable: true,
|
|
4031
4233
|
get: function() {
|
|
@@ -4098,6 +4300,12 @@ Object.defineProperty(exports, "PolygonDraftSchema", {
|
|
|
4098
4300
|
return PolygonDraftSchema;
|
|
4099
4301
|
}
|
|
4100
4302
|
});
|
|
4303
|
+
Object.defineProperty(exports, "PolygonIntentSchema", {
|
|
4304
|
+
enumerable: true,
|
|
4305
|
+
get: function() {
|
|
4306
|
+
return PolygonIntentSchema;
|
|
4307
|
+
}
|
|
4308
|
+
});
|
|
4101
4309
|
Object.defineProperty(exports, "PolygonPatchSchema", {
|
|
4102
4310
|
enumerable: true,
|
|
4103
4311
|
get: function() {
|
|
@@ -4116,6 +4324,12 @@ Object.defineProperty(exports, "PolylineDraftSchema", {
|
|
|
4116
4324
|
return PolylineDraftSchema;
|
|
4117
4325
|
}
|
|
4118
4326
|
});
|
|
4327
|
+
Object.defineProperty(exports, "PolylineIntentSchema", {
|
|
4328
|
+
enumerable: true,
|
|
4329
|
+
get: function() {
|
|
4330
|
+
return PolylineIntentSchema;
|
|
4331
|
+
}
|
|
4332
|
+
});
|
|
4119
4333
|
Object.defineProperty(exports, "PolylinePatchSchema", {
|
|
4120
4334
|
enumerable: true,
|
|
4121
4335
|
get: function() {
|
|
@@ -4194,6 +4408,18 @@ Object.defineProperty(exports, "SearchSnippetSchema", {
|
|
|
4194
4408
|
return SearchSnippetSchema;
|
|
4195
4409
|
}
|
|
4196
4410
|
});
|
|
4411
|
+
Object.defineProperty(exports, "ShapeCaptionPatchSchema", {
|
|
4412
|
+
enumerable: true,
|
|
4413
|
+
get: function() {
|
|
4414
|
+
return ShapeCaptionPatchSchema;
|
|
4415
|
+
}
|
|
4416
|
+
});
|
|
4417
|
+
Object.defineProperty(exports, "ShapeDimensionCaptionSchema", {
|
|
4418
|
+
enumerable: true,
|
|
4419
|
+
get: function() {
|
|
4420
|
+
return ShapeDimensionCaptionSchema;
|
|
4421
|
+
}
|
|
4422
|
+
});
|
|
4197
4423
|
Object.defineProperty(exports, "SignatureAbortResultSchema", {
|
|
4198
4424
|
enumerable: true,
|
|
4199
4425
|
get: function() {
|
|
@@ -4465,4 +4691,4 @@ Object.defineProperty(exports, "toBase64", {
|
|
|
4465
4691
|
}
|
|
4466
4692
|
});
|
|
4467
4693
|
|
|
4468
|
-
//# sourceMappingURL=schemas-
|
|
4694
|
+
//# sourceMappingURL=schemas-D0g6tKa9.cjs.map
|