Solid Framework Code Sample

This is a concise sample to help get Solid Framework up and running. It has been tested with the Free Developer License of Solid Framework using different versions of Microsoft's Visual Studio. For version specific instructions:

Secure PDF files using encryption

Using the Solid Framework EncryptionAlgorithm property

From the SolidFramework.Pdf.PdfDocument object you can access the EncryptionAlgorithm property.

The value of the EncryptionAlgorithm can be any one of the four follow enum values:

The four enum values determine how the document is secured:

Undefined - Document is not encrypted.

RC440Bit - RC4 is a symmetric stream cipher that does not change the length of the data. Uses a 40 bit key.

RC4128Bit - Same as RC440Bit but uses a 128 bit key.

Aes128Bits - AES is a symmetric block cipher that rounds up to a multiple of block size, which is fixed in the PDF implementation to always be 16 bytes. Uses a 128 bit key.

This sample can be downloaded and installed as-is with a Solid PDF Tools v9 unlock code to quickly review the functionality. If you do not have a Solid PDF Tools license please contact
. Download the installer (68MB)

In addition, the source code for this sample is provided so that it can be explored as a reference implementation, built and run. If you build it yourself, it will not work with Solid PDF Tools v9 unlock codes and will require a per-machine developer license from the
developer portal. (self-service).

To build this sample as x64 (64-bit) only - download the x64 (64-bit) SolidFramework.dll or choose x64 in Solution Platforms with AnyCPU (x86 and x64) SolidFramework.dll.:

Right click on the project and choose Rebuild.:

Hit F5to run the project.:

When the form loads, click on the large "Question Mark" then select Unlock.:

Enter in your license details from your Soild Framework license. Then you are able to use the sample to convert PDF files. NOTE if you don't unlock the product it will fail with a invalid license error.: