@shznet/pdf-sign-angular 0.2.2 → 0.2.3
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/README.md +2 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -126,13 +126,13 @@ await this.pdfComponent.setViewMode('single');
|
|
|
126
126
|
const mode = this.pdfComponent.getViewMode();
|
|
127
127
|
|
|
128
128
|
// Page Dimensions
|
|
129
|
-
const dims = await this.pdfComponent.getPageDimensions(
|
|
129
|
+
const dims = await this.pdfComponent.getPageDimensions(1); // Page 1 (1-based)
|
|
130
130
|
console.log(`Page size: ${dims?.width} x ${dims?.height} points`);
|
|
131
131
|
|
|
132
132
|
// Field Management
|
|
133
133
|
this.pdfComponent.addField({
|
|
134
134
|
id: 'sig1',
|
|
135
|
-
|
|
135
|
+
pageNumber: 1,
|
|
136
136
|
rect: { x: 100, y: 100, width: 200, height: 80 },
|
|
137
137
|
type: 'signature',
|
|
138
138
|
content: '<svg>...</svg>',
|