New Features

Text Control 25.0 provides the following new features:

Feature Description
Objects in Headers and Footers Images, text frames and other objects can be inserted everywhere on a page, when a header or a footer is activated. The object is displayed then in the background on every page on which the header or footer appears. This feature can be used to realize watermarks or other page background images. Such an object must be inserted at a fixed position on the page with the TXTextControl.ImageInsertFixed, TXTextControl.TextFrameInsertFixed or TXTextControl.ObjectInsertFixed method. The height of the header or footer does not depend on the position of these objects.
Documents with Restricted Access TextControl can edit now documents with restrictions such as forbid editing, printing, formatting or copying contents to the clipboard. These restrictions can be specified with the TXTextControl.DocumentPermissions and they are activated, if the TXTextControl.EditMode property is changed from Edit to Protected or Password Protected. If password protection is specified with the EditMode property, a dialog box is opened where the user can enter a password which protects the restrictions. To unprotect the document the same password must be entered when the edit mode is reset to Edit. The set of permissions and the password are saved in the document in an encrypted form. When a password protected document is loaded it is opened read only. Supported text formats are RTF, Microsoft Word (DOC and DOCX), Adobe PDF and the TX TextControl text format (TX).
Editable Regions Editable regions are pieces of text that remain editable when the EditMode property has been set to Protected or Password Protected. An editable region can be defined through a start position and a length or through a selection and they can overlap. A region can be inserted with the EditableRegionInsert method and can be deleted with the EditableRegionDelete method. Each editable region is related to a user through the EditableRegionUserName property. Only this user can edit the region, when the document has been set to read only. To specify the users who have access to the document the UserNames property must be used. To specify that everyone can edit a certain region the user name must be an empty string. Events occur, when an editable region is entered (EditableRegionEntered) or left (EditableRegionLeft). An editable region is highlighted on the screen. By default the highlight color depends on the user name, but it can be set to a certain value when the region is inserted. In protected documents with editable regions editing and formatting is possible or not depending on the current text input position. The new properties CanEdit, CanCharacterFormat, CanParagraphFormat and CanTableFormat informs about editing and formatting possiblilities and should be used to enable or disable menu items and buttons for the end-user.
Selection of Objects in the Background The new TXTextControl.SelectObjects property controls the selection of objects which are located behind the text. When this property is set to True, a mouse click selects the object in the background. Otherwise, when this property is set to False, text in front of the object is selected.
Pagination in Tables By setting pagination options an end-user can control where a TextControl position automatic page breaks. The pagination settings 'keep with next' and 'page break before' can now be used in tables to control a page break in a table. Because a table row consists of several paragraphs, the first paragraph of a table row determines how to treat the complete row. The pagination options of all other paragraphs are ignored. If the first paragraph of a table row has the 'page break before' setting the complete table row is moved to a new page. If the first paragraph of a table row has the 'keep with next' setting the complete table row is positioned on the same page as its following table row.