DocxWatermark not rendering



  • Hello!
    On my website I have to generate different templates based on if it's a draft or a regular template. I have no issues with that when I just check if the state of the file is final or draft. Now a customer is asking me to make the watermark for when it's a draft. I used {{docxWatermark text='Draft' enabled=(isEqual Parameters.EditingState 'Draft')}} isEqual being function isEqual (val1, val2) { return val1 == val2} which works perfectly for pdfs (which we convert from the docx fine using Unoconv). The issue happens when I render it as a docx draft, the "draft" text is distorted and has a random font. If I change the font size to any other, it starts working again. I assume it doesn't refresh for some reason. Is there any way to solve this?

    Thank you in advance.


Log in to reply
 

Looks like your connection to jsreport forum was lost, please wait while we try to reconnect.