Line - Scoped, Global
-
- UpdatedJan 30, 2025
- 2 minutes to read
- Yokohama
- API reference
Creates a Line object using methods to draw a line in a PDF.
This API is part of the ServiceNow PDF
Generation Utilities plugin (com.snc.apppdfgenerator) and is provided within the
sn_pdfgeneratorutils
namespace. The plugin is activated by default.
This API is a component used with the Document API to generate a PDF.
Line - Line()
Instantiates a new Line object.
Name | Type | Description |
---|---|---|
None |
Example
The following examples shows how to create a Line object.
Line – drawLine(Document document, Number pageNo, Number xPos, Number yPos, Number width, Number lineWidth)
Places a line on a document page.
Type | Description |
---|---|
None |
Example
The following example shows how to create a line at the lower margin of a document page. For a document usage example, see Document API.