Hi Team,
We use docBuilder.clearRunAttrs() at many places… sometimes with docBuilder.getParagraphFormat().clearFormatting() and sometimes without clearFormatting() based on the scenarios.
Hi Team,
Hi Kumar,
It has been replaced with builder.getFont().clearFormatting(). You should replace all instances of docBuilder.clearRunAttrs() with docBuilder.getFont().clearFormatting().
Best Regards,
Hi Muhammad,
Hi Kumar,
It has been replaced with another overload DigitalSignatureUtil.sign(java.lang.String srcFileName, java.lang.String dstFileName, CertificateHolder certificate, java.lang.String comments, java.util.Date signTime) e.g.
CertificateHolder holder = CertificateHolder.create("path of certificate file", "password");
DigitalSignatureUtil.sign(MyDir + "in.docx", MyDir + "Out.docx", holder, "should be signed", new Date());
Best Regards,
Hi Muhammad,
Hi Kumar,
clearRunAttrs is obsolete and it has been replaced with clearFormatting so you can say clearFormatting is the improved version of clearRunAttrs and all issues in clearRunAttrs have also been fixed in clearFormatting.
Please feel free to contact us in case you see any issue.
Best Regards,
Hi Muhammad,
Hi Kumar,
clearFormatting() resets the font formatting to default. It removes all font formatting specified explicitly on the object from which font was obtained so the font formatting will be inherited from the appropriate parent e.g. Run.getFont().clearFormatting(), DocumentBuilder.getFont().clearFormatting() and Style.getFont().clearFormatting() etc.
You can use this method if you want to reset the font formatting of any object to default. As far as issues fixed are concerned, these issues were specific to a couple of documents where font formatting was not reset properly.
Best Regards,