-
Notifications
You must be signed in to change notification settings - Fork 4
Texts
Andreas Fast edited this page Feb 16, 2016
·
2 revisions
This option allows you to print text anywhere on the document.
The texts property is an array of entries that have:
-
textthe text to print -
positionwhere on the document to print it{x: 50, y: 50 } -
box_sizehow much space it should occupy{width: 50, height: 50} -
optionsstyling options:-
fill_colorbackground color -
colorthe text color. -
fontthe font to use, make sure it is installed on your system. -
pointsizethe size of the text. -
gravityWhere on the box to align the text.
-
texts: [{
text: "some text",
position: {x: 50, y: 50 },
box_size: {width: 50, height: 50},
options: {
fill_color: '#ffffff',
color: '#000000',
font: 'Arial',
pointsize: '16',
gravity: 'NorthWest',
}
}]