@embedpdf/models 2.5.0 → 2.6.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/pdf.d.ts CHANGED
@@ -913,6 +913,17 @@ export interface PdfAnnotationObjectBase {
913
913
  * Rectangle of the annotation
914
914
  */
915
915
  rect: Rect;
916
+ /**
917
+ * Rotation angle in degrees (clockwise).
918
+ * When set, the annotation is visually rotated around its center.
919
+ * The rect becomes the axis-aligned bounding box after rotation.
920
+ */
921
+ rotation?: number;
922
+ /**
923
+ * The original unrotated rectangle of the annotation.
924
+ * This is stored when rotation is applied, allowing accurate editing.
925
+ */
926
+ unrotatedRect?: Rect;
916
927
  /**
917
928
  * Custom data of the annotation
918
929
  */
@@ -1824,11 +1835,11 @@ export interface PdfRedactAnnoObject extends PdfAnnotationObjectBase {
1824
1835
  */
1825
1836
  segmentRects: Rect[];
1826
1837
  /**
1827
- * Interior color - the preview color shown BEFORE redaction is applied
1838
+ * Interior color (IC) - the fill color used to paint the redacted area after redaction is applied
1828
1839
  */
1829
1840
  color?: string;
1830
1841
  /**
1831
- * Overlay color - the fill color shown AFTER redaction is applied
1842
+ * Overlay text color - the color of the overlay text displayed on the redacted area
1832
1843
  */
1833
1844
  overlayColor?: string;
1834
1845
  /**
@@ -2463,6 +2474,12 @@ export interface PdfRenderPageAnnotationOptions extends PdfRenderOptions {
2463
2474
  * Appearance mode normal down or rollover
2464
2475
  */
2465
2476
  mode?: AppearanceMode;
2477
+ /**
2478
+ * When true and annotation.unrotatedRect is present, render using the
2479
+ * unrotated path (ignores AP Matrix rotation). Falls back to normal
2480
+ * rendering if unrotatedRect is not available on the annotation.
2481
+ */
2482
+ unrotated?: boolean;
2466
2483
  }
2467
2484
  export interface PdfRenderThumbnailOptions extends PdfRenderOptions {
2468
2485
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@embedpdf/models",
3
- "version": "2.5.0",
3
+ "version": "2.6.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",