5 Replies Latest reply: Oct 15, 2013 7:25 AM by lrosenth RSS

    How to check whether a pdf is print protected in C#

    VKP1 Community Member

      Hi,

       

      I have a pdf that is print protected by  checking  "restrict editing and printing of documents" . I need to check whether print restriction exists while loading the pdf in my appication. Can you plz advise how to do this Acrobat Reader and Pro.

       

      We are using  ( AxAcroPDFLib.AxAcroPDF) mAcroReader.LoadFile(path); for loading the file in Reader

       

      (Acrobat.AcroAVDocClass) avDoc.OpenInWindowEx(pdfPath, hwnd.ToInt32(), showTools ? 1 : 2, 1, 0, 1, 2, 0, 0, 0); for pro

       

      Thanks,

      Vidhya