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

Free Support Forum - aspose.com

Is doc file password protected?

hi,

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???

@randy1978,

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