• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers

How to password protect pdf.

New Here ,
May 09, 2019 May 09, 2019

Copy link to clipboard

Copied

Hi team,

I am trying to create a program which can add password to PDF file.

Can you guide me to to add password using SDK?

regards,

Rajat

TOPICS
Acrobat SDK and JavaScript

Views

671

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
May 10, 2019 May 10, 2019

Copy link to clipboard

Copied

You would have to write a plugin for Acrobat Pro (not the free Reader) using C++.  You cannot use VB or C# or write an app.

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
May 10, 2019 May 10, 2019

Copy link to clipboard

Copied

Well Actually, you can create a Security Profile that uses a password. Then use JavaScript or the IAC to get Acrobat to apply that profile to a PDF. What you can't do is change the password with a script or IAC.  At least not directly. To change the password you need a plug-in, as noted.

However, you could use a combination plug-in/JavaScript to create a more general password setting methodology. 

The C++ SDK contains examples of setting a password in the Snippets.

Thom Parker - Software Developer at PDFScripting
Use the Acrobat JavaScript Reference early and often

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
May 10, 2019 May 10, 2019

Copy link to clipboard

Copied

LATEST

You can batch secure PDF files using the Encrypt Action in the Action Wizard. 

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines