Skip to main content
When Element has type === 600, element.link provides link details.
Link.linkType indicates the link type read from the file. Supported linkType ranges may differ across write APIs; for example, parameter validation in insertTextLink and modifyLassoLink currently only allows 0..4.
FieldTypeDescription
categorynumberLink category: 0 text link, 1 stroke link
XnumberTop-left X (pixel coordinates)
YnumberTop-left Y (pixel coordinates)
widthnumberWidth (pixels)
heightnumberHeight (pixels)
pagenumberPage number where the link is located
stylenumberStyle: 0 solid underline, 1 solid border, 2 dashed border
linkTypenumberType: 0 note page, 1 note file, 2 document, 3 image, 4 URL, 6 digest
destPathstringDestination path (when linkType === 4, this is the URL)
destPagenumberDestination page (mainly used when linkType === 0)
fontSizenumberFont size (text link)
fullTextstringFull text (text link)
showTextstringDisplay text (text link)
italicnumberItalic: 0 no, 1 yes (text link)
controlTrailNumsnumber[]Stroke index list (stroke link)