ComPDFKit PDF SDK 1.8.0

By ComPDFKit | 2023 May 19
PDF SDK Release

We are thrilled to announce the release of the latest version of ComPDFKit PDF SDK 1.8.0! This update brings a range of new features that will enrich your experience with text and image editing, and improve document security, available for iOS, Android, Mac Catalyst, and Windows platforms.


New features added:

         - Added new support for text editing, like adding new fonts and modifying transparency, etc.

         - Added support for image editing. Windows has already been supported in its 1.7.0 version.

         - Added new support for document encryption level - AES-128, AES-256.

         - Additionally, on the Windows platform, copying text style is also supported.


Features Fixed:

         - We’ve fixed text editing issues for Vietnamese, making it easier for more people to use ComPDFKit.


You can also refer to our ComPDFKit PDF SDK Changelog for the full functionality of the update.

Support System Fonts


Modifying font is an essential function you need in the process of editing PDF files. In the previous version, ComPDFKit supported three fixed underlying embedded fonts - Times-Roman, Helvetica, and Courier. In ComPDFKit PDF SDK 1.8.0, the range of options for you to modify fonts is expanded, and ComPDFKit supports the automatic acquisition of fonts in your system, which means that you can use all the fonts in your system. Therefore, we also support you to import and use your own unique fonts.



Support Image Edit


We are delighted to announce that the new version of ComPDFKit includes an image editing feature on all platforms now, in addition to the existing text editing feature for PDFs. 


The new image editing function allows you to perform various actions such as adding, deleting, cropping, moving, scaling, rotating, mirroring, replacing images, and changing their transparency without the need for third-party tools. This will save you a significant amount of time and provide you with comprehensive image editing functionalities that can meet most of your requirements, similar to using Office.


Here we take Java as an example to show the code for horizontal mirroring.


cpdfPageView.operateEditImageArea(CPDFPageView.EditImageFuncType.HORIZENTAL_MIRROR, null);



Support Encryption Types: AES-128 & AES-256


What is AES


The Advanced Encryption Standard (AES) is a highly intricate encryption method that can be employed globally in both software and hardware to safeguard sensitive data. It's extremely secure and critical to computer security, network security, and electronic data protection. It is a block cipher that operates on discrete blocks of data using a fixed key and formula.


AES of ComPDFKit


ComPDFKit has also been hard at work on enhancing the security features of our SDK. You can now enjoy new document encryption levels, including AES-128 and AES-256, ensuring your documents are safe at all times.


The difference between AES-128 and AES-256 is AES-256 encryption key is significantly more difficult for brute-force attacks to guess than the AES-128 key (AES-256 has a key length of 256 bits while AES-128 uses a 128-bit key length to encrypt documents). A brute-force attack is when a threat actor checks all possible key combinations until the correct key is found. The key length employed for AES encryption, therefore, needs to be large enough so that it cannot be cracked by modern computers.


Although AES-256 supports the largest bit size, it requires more processing power than AES-128 and also takes longer to execute. Therefore, users can act according to their own wishes, choose the encryption level that suits them, and ensure the security of files.


Here we take Java as an example to show the code for AES-128.




How AES Encryption Works


AES is the most common symmetric encryption algorithm. That is to say, the same key is used for encryption and decryption. Both sender and receiver must know and use the same key to open the file. The specific encryption process is as follows:


AES Encryption


The key size used for an AES cipher specifies the number of transformation rounds that convert the input, called the plaintext, into the final output, called the ciphertext. The number of rounds is as follows:

         - 10 rounds for 128-bit keys.

         - 14 rounds for 256-bit keys.

The more rounds, the higher the password strength and the harder it is to crack.


Overall, we believe this update will take your experience with ComPDFKit to a whole new level. And we will continue to optimize our functions to provide a better user experience for every user. You are welcome to contact us to try ComPDFKit and give us feedback.