Step 1: Generating an Adobe PDF Document

One of the most common requirements for server-based word processing applications is the creation of Adobe PDF documents. This basic sample shows how to create password secured and encrypted PDF files.

Important code snippet:

1: TXTextControl.SaveSettings saveSetting = new TXTextControl.SaveSettings();
2: saveSetting.DocumentAccessPermissions = TXTextControl.DocumentAccessPermissions.AllowAll;
3: serverTextControl1.Save(Server.MapPath("results.pdf"), TXTextControl.StreamType.AdobePDF, saveSetting);

Text:

Document Access Permissions:

Password:
Master Password:

User Password: