We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Is doc file password protected?


1)Is their any to find does doc/docx file is password protected or not??
2)Is their any way to find any content of doc/docx is highlighted or not???


Thanks for your inquiry.

FileFormatInfo.IsEncrypted property returns true if the document is encrypted and requires a password to open.

Please iterate through all Run nodes of document and check if Run.Font.HighlightColor is not null or empty.

Best Regards,
Tahir Manzoor