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