none
Does Microsoft have any native .net library which will convert pdf document directly to password protected pdf? RRS feed

  • Question

  • Hi,

    Does Microsoft have any native .net library which will convert pdf document directly to password-protected pdf? Or any free third party API / DLL which is of OSS complaint and recommended by Microsoft. 

    Thanks
    Shankar B


    • Edited by B Shankar Thursday, February 27, 2020 10:14 AM
    Thursday, February 27, 2020 10:06 AM

Answers

  • Hi B Shankar,

    Thank you for posting here.

    There are many free nuget packages available.

    Such as Syncfusion.Pdf.WinForms, PDFSharp, etc.

    You can choose one of them to use.

    Note: This response contains a reference to a third party World Wide Web site. Microsoft is providing this information as a convenience to you. Microsoft does not control these sites and has not tested any software or information found on these sites; Therefore, Microsoft cannot make any representations regarding the quality, safety, or suitability of any software or information found there. There are inherent dangers in the use of any software found on the Internet, and Microsoft cautions you to make sure that you completely understand the risk before retrieving any software from the Internet.

    Best Regards,

    Timon


    MSDN Community Support
    Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.

    • Marked as answer by B Shankar Tuesday, March 3, 2020 8:41 AM
    Friday, February 28, 2020 2:27 AM
    • Marked as answer by B Shankar Tuesday, March 3, 2020 8:41 AM
    Friday, February 28, 2020 2:49 PM

All replies

  • Hello,

    There is no native library to password protect PDF documents from Microsoft. The majority of free libraries lack password protection which leaves third party paid for libraries such as Aspose and GemBox products.


    Please remember to mark the replies as answers if they help and unmarked them if they provide no help, this will help others who are looking for solutions to the same or similar problem. Contact via my Twitter (Karen Payne) or Facebook (Karen Payne) via my MSDN profile but will not answer coding question on either.

    NuGet BaseConnectionLibrary for database connections.

    StackOverFlow
    profile for Karen Payne on Stack Exchange

    Thursday, February 27, 2020 10:38 AM
    Moderator
  • iText 7 (which has a free version) has an example of how to do this.  MS does not provide a library for this.

    Michael Taylor http://www.michaeltaylorp3.net

    Thursday, February 27, 2020 2:54 PM
    Moderator
  • Hi B Shankar,

    Thank you for posting here.

    There are many free nuget packages available.

    Such as Syncfusion.Pdf.WinForms, PDFSharp, etc.

    You can choose one of them to use.

    Note: This response contains a reference to a third party World Wide Web site. Microsoft is providing this information as a convenience to you. Microsoft does not control these sites and has not tested any software or information found on these sites; Therefore, Microsoft cannot make any representations regarding the quality, safety, or suitability of any software or information found there. There are inherent dangers in the use of any software found on the Internet, and Microsoft cautions you to make sure that you completely understand the risk before retrieving any software from the Internet.

    Best Regards,

    Timon


    MSDN Community Support
    Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.

    • Marked as answer by B Shankar Tuesday, March 3, 2020 8:41 AM
    Friday, February 28, 2020 2:27 AM
    • Marked as answer by B Shankar Tuesday, March 3, 2020 8:41 AM
    Friday, February 28, 2020 2:49 PM
  • Hi,

    Microsoft doesn't have such libraries. You can use Spire.PDF for .NET library to protect/unprotect PDF documents, here is the online documentation for your reference: C# Encrypt and Decrypt PDF file

     
    Monday, March 2, 2020 3:46 AM