Constructor
new Pdf(aLogger)
Parameters:
Name | Type | Description |
---|---|---|
aLogger |
object |
- Source:
Methods
addBr()
Adds a linebreak to an activr text block
- Source:
addFooter()
Adds document footer
- Source:
addHeader()
Adds document header
- Source:
addImage(imagePath, xCoord, yCoord, heightValue, alignValue)
Adds a JPEG Image to document
Parameters:
Name | Type | Description |
---|---|---|
imagePath |
string | Path to jpeg image |
xCoord |
integer | x coordinate |
yCoord |
integer | y coordinate |
heightValue |
integer | height |
alignValue |
string | align |
- Source:
addTable(colsWidthDefinition, borderWidthValue)
adds a new table to document
Parameters:
Name | Type | Description |
---|---|---|
colsWidthDefinition |
array | Array holding width of columns (e.g. [256, 256]) |
borderWidthValue |
integer | border width |
- Source:
addTableHeader(headerDefinition)
Parameters:
Name | Type | Description |
---|---|---|
headerDefinition |
array | one dimensional array holding header title(s) as string |
- Source:
addTableRow(rowsDefintion)
adds another row to table
Parameters:
Name | Type | Description |
---|---|---|
rowsDefintion |
array | one dimensional array holding cell content as string |
- Source:
addText(text, opts)
adds text to the document
Parameters:
Name | Type | Description |
---|---|---|
text |
string | Text to add to document |
opts |
array | Array with options for text |
- Source:
initialize()
initializes new pdf document
- Source:
setOrganizationLogo(imagePath)
Adds the organization logo to the upper right corner of document
Parameters:
Name | Type | Description |
---|---|---|
imagePath |
string |
- Source:
writeDocToFile(filename)
Writes file to disk
Parameters:
Name | Type | Description |
---|---|---|
filename |
string |
- Source: