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: Allow All Allow Authoring Allow Content Accessibility Allow Document Assembly Allow Extract Contents Allow General Editing Allow High Level Printing Allow Low Level Printing Password: Master Password: User Password:
Text:
Document Access Permissions: Allow All Allow Authoring Allow Content Accessibility Allow Document Assembly Allow Extract Contents Allow General Editing Allow High Level Printing Allow Low Level Printing
Password: Master Password:
User Password: