In Javascript, I am using pdfmake to generate a pdf document. I read it from github that it supports watermark and the following is my usage but it is giving me some random and weird characters. Those characters are the same no matter what texts are provided in watermark. Anyone got an idea?
pdfmake
Solution
Example:
var docDefinition = {
//watermark: 'test watermark',
watermark: {text: 'test watermark', color: 'blue', opacity: 0.3, bold: true, italics: false},
content: [
'Test page of watermark.\n\n',
]
};
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With