Created attachment 36205 [details] Protected doc by Rights Management Detect and throw exception for documents protected using Rights Management Service instead of returning the content as "Permission for this document is currently restricted. This document can only be opened by using Microsoft Office 2003 or later. You can request the author of the document to send a copy that can be read using the Rights Management Add-on for Internet Explorer." for doc and empty string for docx. Sample doc attached for reference.