@embedpdf/models 2.4.0 → 2.5.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
@@ -61,6 +61,11 @@ export interface PdfDocumentObject {
61
61
  * Use PdfPermissionFlag to check individual permissions.
62
62
  */
63
63
  permissions: number;
64
+ /**
65
+ * Whether page rotation was normalized when opening the document.
66
+ * When true, all page coordinates are in 0° space regardless of original rotation.
67
+ */
68
+ normalizedRotation: boolean;
64
69
  }
65
70
  /**
66
71
  * metadata of pdf document
@@ -2370,6 +2375,12 @@ export interface PdfOpenDocumentBufferOptions {
2370
2375
  * Password for the document
2371
2376
  */
2372
2377
  password?: string;
2378
+ /**
2379
+ * When true, normalizes page rotation so all coordinates are in 0° space.
2380
+ * The original rotation is preserved in page.rotation for reference.
2381
+ * @default false
2382
+ */
2383
+ normalizeRotation?: boolean;
2373
2384
  }
2374
2385
  export interface PdfRequestOptions {
2375
2386
  /**
@@ -2398,6 +2409,12 @@ export interface PdfOpenDocumentUrlOptions {
2398
2409
  * HTTP request options for fetching the PDF
2399
2410
  */
2400
2411
  requestOptions?: PdfRequestOptions;
2412
+ /**
2413
+ * When true, normalizes page rotation so all coordinates are in 0° space.
2414
+ * The original rotation is preserved in page.rotation for reference.
2415
+ * @default false
2416
+ */
2417
+ normalizeRotation?: boolean;
2401
2418
  }
2402
2419
  export interface PdfRenderOptions {
2403
2420
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@embedpdf/models",
3
- "version": "2.4.0",
3
+ "version": "2.5.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",