@qrcommunication/gigapdf-lib 0.111.0 → 0.113.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/CHANGELOG.md +42 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +28 -1
- package/dist/index.d.ts +28 -1
- package/dist/index.js.map +1 -1
- package/gigapdf.wasm +0 -0
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -1478,6 +1478,33 @@ interface FieldInfo {
|
|
|
1478
1478
|
bounds?: [number, number, number, number];
|
|
1479
1479
|
value: string;
|
|
1480
1480
|
options: string[];
|
|
1481
|
+
/**
|
|
1482
|
+
* EVERY widget placement of this field — one per on-page widget. A field
|
|
1483
|
+
* repeated on a duplicate page has one entry per page (fill it once, it shows
|
|
1484
|
+
* on both); a radio group has one entry per button. `page`/`bounds` above are
|
|
1485
|
+
* this list's first entry (kept for backward compatibility). A host renders a
|
|
1486
|
+
* field overlay per widget so nothing is missing on a duplicate/second page.
|
|
1487
|
+
*/
|
|
1488
|
+
widgets: WidgetPlacement[];
|
|
1489
|
+
}
|
|
1490
|
+
/**
|
|
1491
|
+
* One on-page placement of a form field — a single widget annotation. See
|
|
1492
|
+
* {@link FieldInfo.widgets}.
|
|
1493
|
+
*/
|
|
1494
|
+
interface WidgetPlacement {
|
|
1495
|
+
/** 1-based page the widget sits on (from its `/P`). */
|
|
1496
|
+
page?: number;
|
|
1497
|
+
/**
|
|
1498
|
+
* Widget rectangle `[x, y, width, height]` in points, **top-left origin**
|
|
1499
|
+
* (already Y-flipped from the PDF's bottom-left `/Rect`).
|
|
1500
|
+
*/
|
|
1501
|
+
bounds?: [number, number, number, number];
|
|
1502
|
+
/**
|
|
1503
|
+
* For a button widget, its on-state export name (the non-`Off` `/AP /N` key)
|
|
1504
|
+
* — which radio button this widget is / the value stored when selected. Absent
|
|
1505
|
+
* for text and choice widgets.
|
|
1506
|
+
*/
|
|
1507
|
+
export?: string;
|
|
1481
1508
|
}
|
|
1482
1509
|
/**
|
|
1483
1510
|
* A view destination (ISO 32000-1 §12.3.2). `page` is 1-based; optional
|
|
@@ -3421,4 +3448,4 @@ declare class GigaPdfDoc {
|
|
|
3421
3448
|
regenerateFieldAppearance(name: string): boolean;
|
|
3422
3449
|
}
|
|
3423
3450
|
|
|
3424
|
-
export { type Action, type AfRelationship, type AnnotationInfo, type Attachment, type AttachmentOptions, type Bookmark, type Box, type CollectionConfig, type CollectionField, type CollectionFieldSubtype, type CollectionItem, type CollectionView, type Color, type DecodedImage, type Destination, type DocumentJavascript, type DocumentLanguage, type Element, type EmbeddedFont, type Exports, type FieldInfo, type FieldKind, type FieldStyle, type FileAttachmentIcon, type FontInfo, type GigaBlock, type GigaBlockAddr, type GigaBlockKind, type GigaBorderStyle, type GigaCellValue, type GigaCharStyle, type GigaDocument, type GigaGeneric, type GigaHeading, type GigaImageRef, type GigaInline, type GigaInlineRun, type GigaLinkTarget, type GigaList, type GigaListItem, type GigaListMarker, type GigaMergeRange, type GigaOutlineNode, type GigaPage, type GigaPageGeometry, type GigaParaPatch, type GigaParagraph, type GigaParagraphStyle, type GigaPathSeg, GigaPdfDoc, GigaPdfEngine, type GigaPlaceholder, type GigaPlaceholderRole, type GigaRect, type GigaRotation, type GigaSection, type GigaShape, type GigaSheet, type GigaSheetBlock, type GigaSheetCell, type GigaSheetRow, type GigaSlide, type GigaSlideBlock, type GigaStylePatch, type GigaTable, type GigaTableCell, type GigaTableRow, type GigaTextBox, type GradientSpec, type GradientStop, type HFAlign, type HFItem, type HFZone, type HeaderFooterAlign, type HeaderFooterSpec, type HtmlFont, type HtmlFontRequest, type HtmlMargins, type HtmlRenderOptions, type HtmlResource, type HtmlResourceNeed, type ImageElementInfo, type InfoFields, type LayerInfo, type LinkInfo, type MergePart, type ModelOp, type NamedDest, type OutlineEntry, PAGE_BOX_KINDS, PAGE_TRANSITION_STYLES, type PageBoxKind, type PageBoxes, type PageInfo, type PageLabelRange, type PageLabelStyle, type PageLayout, type PageMargins, type PageMode, type PageTransition, type PageTransitionDimension, type PageTransitionDirection, type PageTransitionMotion, type PageTransitionStyle, type PathSegment, type PdfPermissions, type PdfVersion, type RadioOption, type RunningHeaderFooter, type SearchHit, type SignLtvOptions, type SignP12Options, type SignTsaOptions, type SignatureInfo, type SignatureReport, type TextElementInfo, type TextLine, type TextRunInfo, type TextSegment, type VectorPathInfo, type ViewerPreferences, type XlsxSheet, defaultCrlGet, defaultOcspPost, defaultTsaPost };
|
|
3451
|
+
export { type Action, type AfRelationship, type AnnotationInfo, type Attachment, type AttachmentOptions, type Bookmark, type Box, type CollectionConfig, type CollectionField, type CollectionFieldSubtype, type CollectionItem, type CollectionView, type Color, type DecodedImage, type Destination, type DocumentJavascript, type DocumentLanguage, type Element, type EmbeddedFont, type Exports, type FieldInfo, type FieldKind, type FieldStyle, type FileAttachmentIcon, type FontInfo, type GigaBlock, type GigaBlockAddr, type GigaBlockKind, type GigaBorderStyle, type GigaCellValue, type GigaCharStyle, type GigaDocument, type GigaGeneric, type GigaHeading, type GigaImageRef, type GigaInline, type GigaInlineRun, type GigaLinkTarget, type GigaList, type GigaListItem, type GigaListMarker, type GigaMergeRange, type GigaOutlineNode, type GigaPage, type GigaPageGeometry, type GigaParaPatch, type GigaParagraph, type GigaParagraphStyle, type GigaPathSeg, GigaPdfDoc, GigaPdfEngine, type GigaPlaceholder, type GigaPlaceholderRole, type GigaRect, type GigaRotation, type GigaSection, type GigaShape, type GigaSheet, type GigaSheetBlock, type GigaSheetCell, type GigaSheetRow, type GigaSlide, type GigaSlideBlock, type GigaStylePatch, type GigaTable, type GigaTableCell, type GigaTableRow, type GigaTextBox, type GradientSpec, type GradientStop, type HFAlign, type HFItem, type HFZone, type HeaderFooterAlign, type HeaderFooterSpec, type HtmlFont, type HtmlFontRequest, type HtmlMargins, type HtmlRenderOptions, type HtmlResource, type HtmlResourceNeed, type ImageElementInfo, type InfoFields, type LayerInfo, type LinkInfo, type MergePart, type ModelOp, type NamedDest, type OutlineEntry, PAGE_BOX_KINDS, PAGE_TRANSITION_STYLES, type PageBoxKind, type PageBoxes, type PageInfo, type PageLabelRange, type PageLabelStyle, type PageLayout, type PageMargins, type PageMode, type PageTransition, type PageTransitionDimension, type PageTransitionDirection, type PageTransitionMotion, type PageTransitionStyle, type PathSegment, type PdfPermissions, type PdfVersion, type RadioOption, type RunningHeaderFooter, type SearchHit, type SignLtvOptions, type SignP12Options, type SignTsaOptions, type SignatureInfo, type SignatureReport, type TextElementInfo, type TextLine, type TextRunInfo, type TextSegment, type VectorPathInfo, type ViewerPreferences, type WidgetPlacement, type XlsxSheet, defaultCrlGet, defaultOcspPost, defaultTsaPost };
|
package/dist/index.d.ts
CHANGED
|
@@ -1478,6 +1478,33 @@ interface FieldInfo {
|
|
|
1478
1478
|
bounds?: [number, number, number, number];
|
|
1479
1479
|
value: string;
|
|
1480
1480
|
options: string[];
|
|
1481
|
+
/**
|
|
1482
|
+
* EVERY widget placement of this field — one per on-page widget. A field
|
|
1483
|
+
* repeated on a duplicate page has one entry per page (fill it once, it shows
|
|
1484
|
+
* on both); a radio group has one entry per button. `page`/`bounds` above are
|
|
1485
|
+
* this list's first entry (kept for backward compatibility). A host renders a
|
|
1486
|
+
* field overlay per widget so nothing is missing on a duplicate/second page.
|
|
1487
|
+
*/
|
|
1488
|
+
widgets: WidgetPlacement[];
|
|
1489
|
+
}
|
|
1490
|
+
/**
|
|
1491
|
+
* One on-page placement of a form field — a single widget annotation. See
|
|
1492
|
+
* {@link FieldInfo.widgets}.
|
|
1493
|
+
*/
|
|
1494
|
+
interface WidgetPlacement {
|
|
1495
|
+
/** 1-based page the widget sits on (from its `/P`). */
|
|
1496
|
+
page?: number;
|
|
1497
|
+
/**
|
|
1498
|
+
* Widget rectangle `[x, y, width, height]` in points, **top-left origin**
|
|
1499
|
+
* (already Y-flipped from the PDF's bottom-left `/Rect`).
|
|
1500
|
+
*/
|
|
1501
|
+
bounds?: [number, number, number, number];
|
|
1502
|
+
/**
|
|
1503
|
+
* For a button widget, its on-state export name (the non-`Off` `/AP /N` key)
|
|
1504
|
+
* — which radio button this widget is / the value stored when selected. Absent
|
|
1505
|
+
* for text and choice widgets.
|
|
1506
|
+
*/
|
|
1507
|
+
export?: string;
|
|
1481
1508
|
}
|
|
1482
1509
|
/**
|
|
1483
1510
|
* A view destination (ISO 32000-1 §12.3.2). `page` is 1-based; optional
|
|
@@ -3421,4 +3448,4 @@ declare class GigaPdfDoc {
|
|
|
3421
3448
|
regenerateFieldAppearance(name: string): boolean;
|
|
3422
3449
|
}
|
|
3423
3450
|
|
|
3424
|
-
export { type Action, type AfRelationship, type AnnotationInfo, type Attachment, type AttachmentOptions, type Bookmark, type Box, type CollectionConfig, type CollectionField, type CollectionFieldSubtype, type CollectionItem, type CollectionView, type Color, type DecodedImage, type Destination, type DocumentJavascript, type DocumentLanguage, type Element, type EmbeddedFont, type Exports, type FieldInfo, type FieldKind, type FieldStyle, type FileAttachmentIcon, type FontInfo, type GigaBlock, type GigaBlockAddr, type GigaBlockKind, type GigaBorderStyle, type GigaCellValue, type GigaCharStyle, type GigaDocument, type GigaGeneric, type GigaHeading, type GigaImageRef, type GigaInline, type GigaInlineRun, type GigaLinkTarget, type GigaList, type GigaListItem, type GigaListMarker, type GigaMergeRange, type GigaOutlineNode, type GigaPage, type GigaPageGeometry, type GigaParaPatch, type GigaParagraph, type GigaParagraphStyle, type GigaPathSeg, GigaPdfDoc, GigaPdfEngine, type GigaPlaceholder, type GigaPlaceholderRole, type GigaRect, type GigaRotation, type GigaSection, type GigaShape, type GigaSheet, type GigaSheetBlock, type GigaSheetCell, type GigaSheetRow, type GigaSlide, type GigaSlideBlock, type GigaStylePatch, type GigaTable, type GigaTableCell, type GigaTableRow, type GigaTextBox, type GradientSpec, type GradientStop, type HFAlign, type HFItem, type HFZone, type HeaderFooterAlign, type HeaderFooterSpec, type HtmlFont, type HtmlFontRequest, type HtmlMargins, type HtmlRenderOptions, type HtmlResource, type HtmlResourceNeed, type ImageElementInfo, type InfoFields, type LayerInfo, type LinkInfo, type MergePart, type ModelOp, type NamedDest, type OutlineEntry, PAGE_BOX_KINDS, PAGE_TRANSITION_STYLES, type PageBoxKind, type PageBoxes, type PageInfo, type PageLabelRange, type PageLabelStyle, type PageLayout, type PageMargins, type PageMode, type PageTransition, type PageTransitionDimension, type PageTransitionDirection, type PageTransitionMotion, type PageTransitionStyle, type PathSegment, type PdfPermissions, type PdfVersion, type RadioOption, type RunningHeaderFooter, type SearchHit, type SignLtvOptions, type SignP12Options, type SignTsaOptions, type SignatureInfo, type SignatureReport, type TextElementInfo, type TextLine, type TextRunInfo, type TextSegment, type VectorPathInfo, type ViewerPreferences, type XlsxSheet, defaultCrlGet, defaultOcspPost, defaultTsaPost };
|
|
3451
|
+
export { type Action, type AfRelationship, type AnnotationInfo, type Attachment, type AttachmentOptions, type Bookmark, type Box, type CollectionConfig, type CollectionField, type CollectionFieldSubtype, type CollectionItem, type CollectionView, type Color, type DecodedImage, type Destination, type DocumentJavascript, type DocumentLanguage, type Element, type EmbeddedFont, type Exports, type FieldInfo, type FieldKind, type FieldStyle, type FileAttachmentIcon, type FontInfo, type GigaBlock, type GigaBlockAddr, type GigaBlockKind, type GigaBorderStyle, type GigaCellValue, type GigaCharStyle, type GigaDocument, type GigaGeneric, type GigaHeading, type GigaImageRef, type GigaInline, type GigaInlineRun, type GigaLinkTarget, type GigaList, type GigaListItem, type GigaListMarker, type GigaMergeRange, type GigaOutlineNode, type GigaPage, type GigaPageGeometry, type GigaParaPatch, type GigaParagraph, type GigaParagraphStyle, type GigaPathSeg, GigaPdfDoc, GigaPdfEngine, type GigaPlaceholder, type GigaPlaceholderRole, type GigaRect, type GigaRotation, type GigaSection, type GigaShape, type GigaSheet, type GigaSheetBlock, type GigaSheetCell, type GigaSheetRow, type GigaSlide, type GigaSlideBlock, type GigaStylePatch, type GigaTable, type GigaTableCell, type GigaTableRow, type GigaTextBox, type GradientSpec, type GradientStop, type HFAlign, type HFItem, type HFZone, type HeaderFooterAlign, type HeaderFooterSpec, type HtmlFont, type HtmlFontRequest, type HtmlMargins, type HtmlRenderOptions, type HtmlResource, type HtmlResourceNeed, type ImageElementInfo, type InfoFields, type LayerInfo, type LinkInfo, type MergePart, type ModelOp, type NamedDest, type OutlineEntry, PAGE_BOX_KINDS, PAGE_TRANSITION_STYLES, type PageBoxKind, type PageBoxes, type PageInfo, type PageLabelRange, type PageLabelStyle, type PageLayout, type PageMargins, type PageMode, type PageTransition, type PageTransitionDimension, type PageTransitionDirection, type PageTransitionMotion, type PageTransitionStyle, type PathSegment, type PdfPermissions, type PdfVersion, type RadioOption, type RunningHeaderFooter, type SearchHit, type SignLtvOptions, type SignP12Options, type SignTsaOptions, type SignatureInfo, type SignatureReport, type TextElementInfo, type TextLine, type TextRunInfo, type TextSegment, type VectorPathInfo, type ViewerPreferences, type WidgetPlacement, type XlsxSheet, defaultCrlGet, defaultOcspPost, defaultTsaPost };
|