Function toSerializableObject
Function
Type Signature
toSerializableObject(
annotation: NutrientViewer.Annotations.InkAnnotation,
): { … }
toSerializableObject(
annotation: NutrientViewer.Annotations.LineAnnotation,
): { … }
toSerializableObject(
annotation: NutrientViewer.Annotations.RectangleAnnotation,
): { … }
toSerializableObject(
annotation: NutrientViewer.Annotations.EllipseAnnotation,
): { … }
toSerializableObject(
annotation: NutrientViewer.Annotations.PolygonAnnotation,
): { … }
toSerializableObject(
annotation: NutrientViewer.Annotations.PolylineAnnotation,
): { … }
toSerializableObject(
annotation: NutrientViewer.Annotations.TextAnnotation,
): { … }
toSerializableObject(
annotation: NutrientViewer.Annotations.NoteAnnotation,
): { … }
toSerializableObject(
annotation: NutrientViewer.Annotations.StampAnnotation,
): { … }
toSerializableObject(
annotation: NutrientViewer.Annotations.ImageAnnotation,
): { … }
toSerializableObject(
annotation: NutrientViewer.Annotations.MediaAnnotation,
): { … }
toSerializableObject(
annotation: NutrientViewer.Annotations.LinkAnnotation,
): { … }
toSerializableObject(
annotation: NutrientViewer.Annotations.WidgetAnnotation,
): { … }
toSerializableObject(annotation: MarkupAnnotation): { … }
toSerializableObject(
annotation: NutrientViewer.Annotations.RedactionAnnotation,
): { … }
toSerializableObject(
annotation: NutrientViewer.Annotations.CommentMarkerAnnotation,
): { … }
toSerializableObject(
annotation: NutrientViewer.Annotations.UnknownAnnotation,
): { … }
toSerializableObject(annotation: AnnotationsUnion): AnnotationsBackendJSONUnion
toSerializableObject(
annotation: AnnotationsUnion,
options?: { widgetAppearanceNullKeys?: ReadonlySet<string> },
): AnnotationsBackendJSONUnion
annotation: NutrientViewer.Annotations.InkAnnotation,
): { … }
toSerializableObject(
annotation: NutrientViewer.Annotations.LineAnnotation,
): { … }
toSerializableObject(
annotation: NutrientViewer.Annotations.RectangleAnnotation,
): { … }
toSerializableObject(
annotation: NutrientViewer.Annotations.EllipseAnnotation,
): { … }
toSerializableObject(
annotation: NutrientViewer.Annotations.PolygonAnnotation,
): { … }
toSerializableObject(
annotation: NutrientViewer.Annotations.PolylineAnnotation,
): { … }
toSerializableObject(
annotation: NutrientViewer.Annotations.TextAnnotation,
): { … }
toSerializableObject(
annotation: NutrientViewer.Annotations.NoteAnnotation,
): { … }
toSerializableObject(
annotation: NutrientViewer.Annotations.StampAnnotation,
): { … }
toSerializableObject(
annotation: NutrientViewer.Annotations.ImageAnnotation,
): { … }
toSerializableObject(
annotation: NutrientViewer.Annotations.MediaAnnotation,
): { … }
toSerializableObject(
annotation: NutrientViewer.Annotations.LinkAnnotation,
): { … }
toSerializableObject(
annotation: NutrientViewer.Annotations.WidgetAnnotation,
): { … }
toSerializableObject(annotation: MarkupAnnotation): { … }
toSerializableObject(
annotation: NutrientViewer.Annotations.RedactionAnnotation,
): { … }
toSerializableObject(
annotation: NutrientViewer.Annotations.CommentMarkerAnnotation,
): { … }
toSerializableObject(
annotation: NutrientViewer.Annotations.UnknownAnnotation,
): { … }
toSerializableObject(annotation: AnnotationsUnion): AnnotationsBackendJSONUnion
toSerializableObject(
annotation: AnnotationsUnion,
options?: { widgetAppearanceNullKeys?: ReadonlySet<string> },
): AnnotationsBackendJSONUnion
Type Declaration
Parameters
annotationNutrientViewer.Annotations.InkAnnotationReturns
{ … }
Type Declaration
Parameters
annotationNutrientViewer.Annotations.LineAnnotationReturns
{ … }
Type Declaration
Parameters
annotationNutrientViewer.Annotations.RectangleAnnotationReturns
{ … }
Type Declaration
Parameters
annotationNutrientViewer.Annotations.EllipseAnnotationReturns
{ … }
Type Declaration
Parameters
annotationNutrientViewer.Annotations.PolygonAnnotationReturns
{ … }
Type Declaration
Parameters
annotationNutrientViewer.Annotations.PolylineAnnotationReturns
{ … }
Type Declaration
Parameters
annotationNutrientViewer.Annotations.TextAnnotationReturns
{ … }
- Optionalaction?: NonNullable<(CoreActionJSON | null | undefined)>
- OptionalAPStreamCache?: NonNullable<{ cache: string } | { attach: string } | undefined>
- OptionalbackgroundColor?: string
- Optionalbbox?: [left: number, top: number, width: number, height: number]
- OptionalblendMode?: NonNullable<
| "normal"
| "multiply"
| "screen"
| "overlay"
| "darken"
| "lighten"
| "colorDodge"
| "colorBurn"
| "hardLight"
| "softLight"
| "difference"
| "exclusion"
| null
| undefined,
> - OptionalborderColor?: string
- OptionalborderStyle?: NonNullable<
| "solid"
| "dashed"
| "beveled"
| "inset"
| "underline"
| null
| undefined,
> - OptionalborderWidth?: number
- Optionalcallout?: {
cap?:
| "square"
| "circle"
| "diamond"
| "openArrow"
| "closedArrow"
| "butt"
| "reverseOpenArrow"
| "reverseClosedArrow"
| "slash"
| null;
end: [number, number];
innerRectInset?:
| [left: number, top: number, right: number, bottom: number]
| null;
knee?: [number, number] | null;
start: [number, number];
} - OptionalcreatedAt?: NonNullable<string | Date | undefined>
- OptionalcreatorName?: string
- OptionalcustomData?: Record<string, unknown>
- Optionalflags?: (
| "noView"
| "noPrint"
| "locked"
| "lockedContents"
| "readOnly"
| "hidden"
| "noZoom"
| "noRotate"
)[] - Optionalfont?: string
- OptionalfontColor?: string
- OptionalfontSize?: number
- OptionalfontStyle?: string[]
- Optionalgroup?: string
- OptionalhorizontalAlign?: NonNullable<"left" | "center" | "right" | undefined>
- Optionalid?: string
- OptionalisAnonymous?: NonNullable<boolean | undefined>
- OptionalisCommentThreadRoot?: NonNullable<boolean | undefined>
- OptionalisFitting?: NonNullable<boolean | undefined>
- OptionallineSpacing?: number
- Optionalname?: string
- Optionalnote?: string
- Optionalopacity?: number
- OptionalpageIndex?: number
- OptionalpdfObjectId?: number
- Optionalpermissions?: {
delete: boolean;
edit: boolean;
fill?: boolean;
reply?: boolean;
setGroup: boolean;
} - Optionalrotation?: number
- Optionalsubject?: string
- Optionaltext?: { format: "xhtml" | "plain"; value: string }
- Optionaltype?: "pspdfkit/text"
- OptionalupdatedAt?: NonNullable<string | Date | undefined>
- Optionalv?: number
- OptionalverticalAlign?: NonNullable<"center" | "top" | "bottom" | undefined>
bbox: [left: number, top: number, width: number, height: number]
id: string
pageIndex: number
type: "pspdfkit/text"
v: number
Type Declaration
Parameters
annotationNutrientViewer.Annotations.NoteAnnotationReturns
{ … }
Type Declaration
Parameters
annotationNutrientViewer.Annotations.StampAnnotationReturns
{ … }
- Optionalaction?: NonNullable<(CoreActionJSON | null | undefined)>
- OptionalAPStreamCache?: NonNullable<{ cache: string } | { attach: string } | undefined>
- Optionalbbox?: [left: number, top: number, width: number, height: number]
- OptionalblendMode?: NonNullable<
| "normal"
| "multiply"
| "screen"
| "overlay"
| "darken"
| "lighten"
| "colorDodge"
| "colorBurn"
| "hardLight"
| "softLight"
| "difference"
| "exclusion"
| null
| undefined,
> - Optionalcolor?: string
- OptionalcreatedAt?: NonNullable<string | Date | undefined>
- OptionalcreatorName?: string
- OptionalcustomData?: Record<string, unknown>
- Optionalflags?: (
| "noView"
| "noPrint"
| "locked"
| "lockedContents"
| "readOnly"
| "hidden"
| "noZoom"
| "noRotate"
)[] - Optionalfont?: string
- OptionalfontColor?: string
- OptionalfontSize?: number
- OptionalfontStyle?: string[]
- Optionalgroup?: string
- Optionalid?: string
- OptionalimageAttachmentId?: string
- OptionalimageContentType?: string
- OptionalimagePosition?: { align: "left" | "center" | "right"; row: number }
- OptionalisAnonymous?: NonNullable<boolean | undefined>
- OptionalisCommentThreadRoot?: NonNullable<boolean | undefined>
- DeprecatedOptionalkind?: NonNullable<
| "Approved"
| "NotApproved"
| "Draft"
| "Final"
| "Completed"
| "Confidential"
| "ForPublicRelease"
| "NotForPublicRelease"
| "ForComment"
| "Void"
| "PreliminaryResults"
| "InformationOnly"
| "Rejected"
| "Accepted"
| "InitialHere"
| "SignHere"
| "Witness"
| "AsIs"
| "Departmental"
| "Experimental"
| "Expired"
| "Sold"
| "TopSecret"
| "Revised"
| "RejectedWithText"
| "Custom"
| undefined,
> - Optionalmultiline?: NonNullable<boolean | null | undefined>
- Optionalname?: string
- Optionalnote?: string
- Optionalopacity?: number
- OptionalpageIndex?: number
- OptionalpdfObjectId?: number
- Optionalpermissions?: {
delete: boolean;
edit: boolean;
fill?: boolean;
reply?: boolean;
setGroup: boolean;
} - Optionalrotation?: number
- OptionalstampType?: NonNullable<
| "Approved"
| "NotApproved"
| "Draft"
| "Final"
| "Completed"
| "Confidential"
| "ForPublicRelease"
| "NotForPublicRelease"
| "ForComment"
| "Void"
| "PreliminaryResults"
| "InformationOnly"
| "Rejected"
| "Accepted"
| "InitialHere"
| "SignHere"
| "Witness"
| "AsIs"
| "Departmental"
| "Experimental"
| "Expired"
| "Sold"
| "TopSecret"
| "Revised"
| "RejectedWithText"
| "Custom",
> - Optionalsubject?: string
- Optionalsubtitle?: string
- OptionalsubTitle?: string
- Optionaltitle?: string
- Optionaltype?: "pspdfkit/stamp"
- OptionalupdatedAt?: NonNullable<string | Date | undefined>
- Optionalv?: number
- OptionalxfdfAppearanceStream?: string
- OptionalxfdfAppearanceStreamOriginalPageRotation?: number
bbox: [left: number, top: number, width: number, height: number]
color: string
id: string
pageIndex: number
type: "pspdfkit/stamp"
v: number
Type Declaration
Parameters
annotationNutrientViewer.Annotations.ImageAnnotationReturns
{ … }
Type Declaration
Parameters
annotationNutrientViewer.Annotations.MediaAnnotationReturns
{ … }
Type Declaration
Parameters
annotationNutrientViewer.Annotations.LinkAnnotationReturns
{ … }
Type Declaration
Parameters
annotationNutrientViewer.Annotations.WidgetAnnotationReturns
{ … }
- Optionalaction?: NonNullable<(CoreActionJSON | null | undefined)>
- OptionaladditionalActions?: { [key: string]: { type: string; [key: string]: unknown } | undefined }
- OptionalAPStreamCache?: NonNullable<{ cache: string } | { attach: string } | undefined>
- OptionalbackgroundColor?: string
- Optionalbbox?: [left: number, top: number, width: number, height: number]
- OptionalblendMode?: NonNullable<
| "normal"
| "multiply"
| "screen"
| "overlay"
| "darken"
| "lighten"
| "colorDodge"
| "colorBurn"
| "hardLight"
| "softLight"
| "difference"
| "exclusion"
| null
| undefined,
> - OptionalborderColor?: string
- OptionalborderDashArray?: number[]
- OptionalborderStyle?: NonNullable<
| "solid"
| "dashed"
| "beveled"
| "inset"
| "underline"
| null
| undefined,
> - OptionalborderWidth?: number
- OptionalbuttonIconUpdatedAt?: number
- OptionalcontentType?: string
- OptionalcreatedAt?: NonNullable<string | Date | undefined>
- OptionalcreatorName?: string
- OptionalcustomData?: Record<string, unknown>
- Optionalflags?: (
| "noView"
| "noPrint"
| "locked"
| "lockedContents"
| "readOnly"
| "hidden"
| "noZoom"
| "noRotate"
)[] - Optionalfont?: string
- OptionalfontColor?: string
- OptionalfontSize?: NonNullable<number | "auto" | null | undefined>
- OptionalfontStyle?: string[]
- OptionalformFieldName?: string
- Optionalgroup?: string
- OptionalhorizontalAlign?: NonNullable<"left" | "center" | "right" | null | undefined>
- Optionalid?: string
- OptionalisAnonymous?: NonNullable<boolean | undefined>
- OptionalisCommentThreadRoot?: NonNullable<boolean | undefined>
- OptionallineSpacing?: number
The spacing between lines of text in multiline text widgets, in PDF points. This is the total line height (baseline to baseline), independent of the font size.
- Optionalname?: string
- Optionalnote?: string
- Optionalopacity?: number
- OptionalpageIndex?: number
- OptionalpdfObjectId?: number
- Optionalpermissions?: {
delete: boolean;
edit: boolean;
fill?: boolean;
reply?: boolean;
setGroup: boolean;
} - Optionalrotation?: number
- Optionalsubject?: string
- Optionaltype?: "pspdfkit/widget"
- OptionalupdatedAt?: NonNullable<string | Date | undefined>
- Optionalv?: number
- OptionalverticalAlign?: NonNullable<"center" | "top" | "bottom" | null | undefined>
- OptionalwidgetAttachmentId?: string
bbox: [left: number, top: number, width: number, height: number]
id: string
pageIndex: number
type: "pspdfkit/widget"
v: number
Type Declaration
Parameters
annotationMarkupAnnotationReturns
{ … }
Type Declaration
Parameters
annotationNutrientViewer.Annotations.RedactionAnnotationReturns
{ … }
Type Declaration
Parameters
annotationNutrientViewer.Annotations.CommentMarkerAnnotationReturns
{ … }
Type Declaration
Parameters
annotationNutrientViewer.Annotations.UnknownAnnotationReturns
{ … }
Type Declaration
Parameters
annotationAnnotationsUnionReturns
AnnotationsBackendJSONUnionType Declaration
Parameters
annotationAnnotationsUnionoptions{ widgetAppearanceNullKeys?: ReadonlySet<string> }OptionalReturns
AnnotationsBackendJSONUnion
The spacing between lines of text, in PDF points. This is the total line height (baseline to baseline), independent of the font size.