PDFsharp & MigraDoc Foundation https://forum.pdfsharp.net/ |
|
Protect/Unprotect existing PDFs files https://forum.pdfsharp.net/viewtopic.php?f=2&t=521 |
Page 1 of 1 |
Author: | chuawenching [ Thu Oct 30, 2008 8:13 am ] |
Post subject: | Protect/Unprotect existing PDFs files |
Hi, I got to know this great PDF library when researching online. I had a situation here. I am quite new to this APIs. I have 1 folder where the files are dynamically download from the source server. Lets make an assumption, there are 10 PDFs files in this folder (non protected). I need to transfer this files across the wire. So I need to protect these 10 files with a secret key or password. Then over the destination, I like to unprotect these documents back to the actual documents. Can I actually do this in PDFSharp? Any snippets to make this happen? I saw the protect sample code. But it doesn't meet my needs here. Any help? Thanks. |
Author: | Thomas Hoevel [ Thu Oct 30, 2008 9:48 am ] |
Post subject: | |
Hi! I'm not sure what you exactly want. There's a protect sample that adds a password. There's an unprotect sample that removes the password. Both change the password that prevents editing. Files are still viewable. You can also set a password to prevent viewing - Adobe Reader prompts for the password before showing the file. Is that what you want? You can also store the PDF files in a password protected archive (ZIP, RAR, ...). |
Author: | chuawenching [ Thu Oct 30, 2008 12:14 pm ] |
Post subject: | |
Thanks for the response. Basically, I have 10 existing PDF documents (all un-protected without any password). Can I use C# programmatically protect/unprotect these files using PDFSharp? Hope you understand. Any help? |
Author: | Thomas Hoevel [ Thu Oct 30, 2008 12:17 pm ] |
Post subject: | |
Look at the ProtectDocument and UnprotectDocument samples. |
Page 1 of 1 | All times are UTC |
Powered by phpBB® Forum Software © phpBB Group https://www.phpbb.com/ |