How to suppres 'rights enabled' message in Adobe Reader 8?

109 views
Skip to first unread message

Support

unread,
Oct 30, 2007, 3:37:53 PM10/30/07
to PDFTron PDFNet SDK
Q:

Some of PDF documents that I edit using PDFNet are generationg the
foloowing message:

"This document contained certain rights to enable special features in
Adobe Reader. The document has been changed since it was created and
these rights are no longer valid. Please contact the author of the
original version of this document."

Is there a way to suppress this message?

----

A:

You can get rid of this error message in Acrobat if you use the
following lines just before saving the modified document:

// In C#
Obj prefs = pdfdoc.GetViewPrefs().GetSDFObj();
if (prefs != null) prefs.Erase("Rights");

There is actually nothing wrong with the document and the error is
related to one of Adobe's schemes to keep customers locked in their
solutions. You can find more information of this topic in PDFNet
Knowledge Base [http://groups.google.com/group/pdfnet-sdk; and search
for "rights enable"].

Support

unread,
Oct 30, 2007, 5:22:38 PM10/30/07
to PDFTron PDFNet SDK

A small correction. A more reliable way to accomplish the same thing
is as follows:

// In C#
Obj view_prefs = pdfdoc.GetRoot().FindObj("ViewerPreferences");
if (view_prefs != null) view_prefs.Erase("Rights");

// In C++
if (Obj view_prefs = pdfdoc.GetRoot()->FindObj("ViewerPreferences"))
view_prefs->Erase("Rights");


Reply all
Reply to author
Forward
0 new messages