Accusoft PDF Viewer Documentation

v3.11.158639

Interface Line

Line annotation state.

Hierarchy

Index

Properties

Optional color

color: string

Line color. Value must be a CSS-style, six-digit hex color string (like '#fa0404').

defaultvalue

'#000000'

Optional endHeadType

endHeadType: LineHeadType

End head to use for the line. Must be one of the following:

  • "none" - No end head (default).
  • "triangle" - Triangle end head, making the line an arrow.
defaultvalue

"none"

endPointX

endPointX: number

Distance from the left edge of the page to the end point of the line in points (1/72 of an inch).

endPointY

endPointY: number

Distance from the top edge of the page to the end point of the line in points (1/72 of an inch).

Optional id

id: string

Unique identifier for the annotation.

defaultvalue

undefined

Optional opacity

opacity: number

Opacity of the entire line. Value must be an integer from 0 to 255 inclusive. 0 is transparent and 255 is fully opaque.

defaultvalue

255

pageNumber

pageNumber: number

One-indexed page number where the annotation is placed. Must be an integer greater than zero.

startPointX

startPointX: number

Distance from the left edge of the page to the start point of the line in points (1/72 of an inch).

startPointY

startPointY: number

Distance from the top edge of the page to the start point of the line in points (1/72 of an inch).

Optional thickness

thickness: number

Line thickness in points. Value must be an integer from 1 to 50 inclusive.

defaultvalue

1

type

type: Line

Indicates this annotation is a Line.

Legend

  • Property
  • Method
  • Static method
© 2022 Accusoft Corporation. All rights reserved.