010-68421378
sales@cogitosoft.com
Your location:Home>News Center >New release

Aspose.PDF for C++:Encrypt or Decrypt PDF Files using C++

发布时间:2020/10/26 浏览量:990
Encrypt or Decrypt PDF Files using C++

Facebook

Encrypt or Decrypt PDF Files using C++

TwitterLinkedIn

IMG_259

PDF encryption is the process of protecting the document using a password as well as some cryptographic algorithms including AES or RC4. You can also set different privileges to limit user’s access to different operations. For example, you can only allow printing, adding annotation, filling forms, and etc. In this article, you will learn how to encrypt PDF files using C++. Furthermore, this article also covers how to set different privileges and decrypt password-protected PDF files using C++.

 

C++ API to Encrypt or Decrypt PDF Files

Aspose.PDF for C++ is a native C++ API that lets you create, read, and manipulate PDF documents. In addition, it also allows you to encrypt PDFs with passwords and decrypt the encrypted PDFs within a few lines of code. You can download the API from the downloads section or get it installed using NuGet.

 

Encrypt PDF Files using C++

The following are the steps to encrypt a PDF file using Aspose.PDF for C++.

 

Decrypt PDF Files using C++

The following are the steps to decrypt a PDF file using Aspose.PDF for C++.

 

Conclusion

In this article, you have learned how to encrypt or decrypt PDF files using C++. The code sample has also shown how to set different privileges when encrypting a PDF file. You can explore more about the C++ PDF API using documentation.

下一篇:Hydra 6.1:应用程序框架|允许开发人员创建模块化应用程序!
上一篇:JMP Genomics: 先进的基因组学数据分析软件|可帮助您实现数据的可视化并探索更多内容!

© Copyright 2000-2023  COGITO SOFTWARE CO.,LTD. All rights reserved