@embedpdf/models 2.7.0 → 2.8.0
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/color.d.ts +5 -0
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +10 -0
- package/dist/index.js.map +1 -1
- package/dist/pdf.d.ts +37 -5
- package/package.json +1 -1
package/dist/pdf.d.ts
CHANGED
|
@@ -893,6 +893,18 @@ export declare enum PdfAnnotationReplyType {
|
|
|
893
893
|
*/
|
|
894
894
|
Group = 2
|
|
895
895
|
}
|
|
896
|
+
/**
|
|
897
|
+
* Rectangle differences (/RD) defining the inset between an annotation's
|
|
898
|
+
* /Rect and the actual drawn appearance.
|
|
899
|
+
*
|
|
900
|
+
* @public
|
|
901
|
+
*/
|
|
902
|
+
export interface PdfRectDifferences {
|
|
903
|
+
left: number;
|
|
904
|
+
top: number;
|
|
905
|
+
right: number;
|
|
906
|
+
bottom: number;
|
|
907
|
+
}
|
|
896
908
|
/**
|
|
897
909
|
* Basic information of pdf annotation
|
|
898
910
|
*
|
|
@@ -1032,7 +1044,11 @@ export interface PdfTextAnnoObject extends PdfAnnotationObjectBase {
|
|
|
1032
1044
|
*/
|
|
1033
1045
|
contents: string;
|
|
1034
1046
|
/**
|
|
1035
|
-
*
|
|
1047
|
+
* Color of the text annotation (preferred over deprecated `color`)
|
|
1048
|
+
*/
|
|
1049
|
+
strokeColor?: string;
|
|
1050
|
+
/**
|
|
1051
|
+
* @deprecated Use strokeColor instead. Will be removed in next major version.
|
|
1036
1052
|
*/
|
|
1037
1053
|
color?: string;
|
|
1038
1054
|
/**
|
|
@@ -1362,6 +1378,10 @@ export interface PdfPolygonAnnoObject extends PdfAnnotationObjectBase {
|
|
|
1362
1378
|
* stroke dash array of polygon annotation
|
|
1363
1379
|
*/
|
|
1364
1380
|
strokeDashArray?: number[];
|
|
1381
|
+
/**
|
|
1382
|
+
* Rectangle Differences (/RD) - inset padding from Rect to the drawn area.
|
|
1383
|
+
*/
|
|
1384
|
+
rectangleDifferences?: PdfRectDifferences;
|
|
1365
1385
|
}
|
|
1366
1386
|
/**
|
|
1367
1387
|
* PDF polyline annotation
|
|
@@ -1652,9 +1672,9 @@ export interface PdfCircleAnnoObject extends PdfAnnotationObjectBase {
|
|
|
1652
1672
|
*/
|
|
1653
1673
|
cloudyBorderIntensity?: number;
|
|
1654
1674
|
/**
|
|
1655
|
-
*
|
|
1675
|
+
* Rectangle Differences (/RD) - inset padding from Rect to the drawn area.
|
|
1656
1676
|
*/
|
|
1657
|
-
|
|
1677
|
+
rectangleDifferences?: PdfRectDifferences;
|
|
1658
1678
|
}
|
|
1659
1679
|
/**
|
|
1660
1680
|
* Pdf square annotation
|
|
@@ -1701,9 +1721,9 @@ export interface PdfSquareAnnoObject extends PdfAnnotationObjectBase {
|
|
|
1701
1721
|
*/
|
|
1702
1722
|
cloudyBorderIntensity?: number;
|
|
1703
1723
|
/**
|
|
1704
|
-
*
|
|
1724
|
+
* Rectangle Differences (/RD) - inset padding from Rect to the drawn area.
|
|
1705
1725
|
*/
|
|
1706
|
-
|
|
1726
|
+
rectangleDifferences?: PdfRectDifferences;
|
|
1707
1727
|
}
|
|
1708
1728
|
/**
|
|
1709
1729
|
* Pdf squiggly annotation
|
|
@@ -1800,6 +1820,14 @@ export interface PdfStrikeOutAnnoObject extends PdfAnnotationObjectBase {
|
|
|
1800
1820
|
export interface PdfCaretAnnoObject extends PdfAnnotationObjectBase {
|
|
1801
1821
|
/** {@inheritDoc PdfAnnotationObjectBase.type} */
|
|
1802
1822
|
type: PdfAnnotationSubtype.CARET;
|
|
1823
|
+
/** Stroke color of the caret symbol */
|
|
1824
|
+
strokeColor?: string;
|
|
1825
|
+
/** Opacity (0-1) */
|
|
1826
|
+
opacity?: number;
|
|
1827
|
+
/**
|
|
1828
|
+
* Rectangle Differences (/RD) - inset padding from Rect to the drawn area.
|
|
1829
|
+
*/
|
|
1830
|
+
rectangleDifferences?: PdfRectDifferences;
|
|
1803
1831
|
}
|
|
1804
1832
|
/**
|
|
1805
1833
|
* Pdf free text annotation
|
|
@@ -1853,6 +1881,10 @@ export interface PdfFreeTextAnnoObject extends PdfAnnotationObjectBase {
|
|
|
1853
1881
|
* Rich content of the free text annotation
|
|
1854
1882
|
*/
|
|
1855
1883
|
richContent?: string;
|
|
1884
|
+
/**
|
|
1885
|
+
* Rectangle Differences (/RD) - inset padding from Rect to the drawn area.
|
|
1886
|
+
*/
|
|
1887
|
+
rectangleDifferences?: PdfRectDifferences;
|
|
1856
1888
|
}
|
|
1857
1889
|
/**
|
|
1858
1890
|
* Pdf redact annotation
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@embedpdf/models",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.8.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Shared type definitions, data models, and utility helpers (geometry, tasks, logging, PDF primitives) that underpin every package in the EmbedPDF ecosystem.",
|
|
6
6
|
"type": "module",
|