How to modify password and security settings for pdf file in C#?

May 17, 2018

Copy link to clipboard

Copied

I'm an intern working on a program that uses the OpenXml SDK to modify some info in a word doc and then convert it to PDF using interop. Unfortunately I am unable to programmatically password-protect the PDF or change any of the security settings with interop. I'm looking for a way to do this that doesn't require me to release my source code or require my employer to pay for a software license. I've heard that I might need to write a plugin in C++ and then use unmanaged exports to call it in C#. Is this true? What are my options?

Certainly there is no C# API to this. And using a plugin externally is painful and awkward territory. Is this for a server? If so I have good and bad news...

TOPICS
Acrobat SDK and JavaScript

Views

282

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

How to modify password and security settings for pdf file in C#?

May 17, 2018

Copy link to clipboard

Copied

I'm an intern working on a program that uses the OpenXml SDK to modify some info in a word doc and then convert it to PDF using interop. Unfortunately I am unable to programmatically password-protect the PDF or change any of the security settings with interop. I'm looking for a way to do this that doesn't require me to release my source code or require my employer to pay for a software license. I've heard that I might need to write a plugin in C++ and then use unmanaged exports to call it in C#. Is this true? What are my options?

Certainly there is no C# API to this. And using a plugin externally is painful and awkward territory. Is this for a server? If so I have good and bad news...

TOPICS
Acrobat SDK and JavaScript

Views

283

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
May 17, 2018 0
May 17, 2018

Copy link to clipboard

Copied

Certainly there is no C# API to this. And using a plugin externally is painful and awkward territory. Is this for a server? If so I have good and bad news...

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
Reply
Loading...
May 17, 2018 0
May 17, 2018

Copy link to clipboard

Copied

This is not for a server, it's for a windows forms program to be ran locally.

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
Reply
Loading...
May 17, 2018 0