TX Text Control .NET Server

What's New in TX Text Control .NET Server 29.0

Topic

Tables of contents, files embedded in PDF documents and the DocumentSettings class arrived in TX Text Control .NET Server with version 29.0. The version also added the DocumentServer.PDF namespace, which reads AcroForm fields and searches the text of PDF documents, and it made barcodes part of TX Text Control itself.

Version 29.0 was released on December 2, 2020, as TX Text Control X19, together with TX Text Control .NET for Windows Forms, TX Text Control .NET for WPF, TX Text Control ActiveX and TX Spell .NET 8.0. Its last full installer, that of Service Pack 3, is dated July 21, 2021. The features below are the ones added since version 28.0; the next version is Version 30.0.

Version 29.0 at a Glance

AreaWhat is new
Document structureTables of contents generated from structure levels, document settings such as author and title
PDFEmbedded files, AcroForm import, text search in PDF documents
Mail mergeFilters and sorting instructions of existing merge blocks changed in code
BarcodesTX Barcode .NET integrated into TX Text Control
Document EditorRendering at the display scale of the device, JavaScript API for tables of contents, embedded files and document settings
Document ViewerJavaScript API for annotations and form field values

Tables of Contents

A table of contents is generated from the structure level of the paragraphs in a document. See Tables of Contents for the .NET API and Tables of Contents for the Document Editor.

PDF Documents

Version 29.0 extended both directions of the PDF support: files can be embedded when a PDF is saved, and a new namespace reads data out of existing PDF documents.

Document Settings

ServerTextControl.DocumentSettings returns a DocumentSettings object with the general settings of the current document: author, creation date, creator application, base path, keywords, subject, title, embedded files and user-defined properties. The values can be changed while the document is open. Save stores them with the document, and a property of SaveSettings with the same name overrides a value for one save. See Document Properties and Document Metadata.

Mail Merge

MailMerge creates documents from a template and data. Its repeating merge blocks, sections of the template that are repeated for each record, carry filter and sorting information since version 26.0, and version 29.0 made that information editable in code.

Sorting and Filtering describes filters and sorting instructions.

Subtext Parts

SubTextPart.GetChildren returns the subtext parts nested in a subtext part, and SubTextPart.GetTextFields the text fields it contains. See Subtext Parts.

Barcodes

The barcode component TX Barcode .NET became part of TX Text Control, so barcodes no longer need a separate product. A barcode is a BarcodeFrame in a BarcodeCollection, positioned like an image or a text frame. The new Barcode.BarcodeTypeSettings class sets whether a barcode has a check value and whether it shows it. See Charts and Barcodes.

Document Editor

Document Viewer

The Document Viewer received the annotations object in its JavaScript API, which loads, exports and shows annotations and sets the list of stamps. Two new methods of the forms object read the values of the form fields and validate them, and TXDocumentViewer.addEventListener attaches event handlers.

Upgrade to Version 29.0

  • Update notes. The update notes of version 29.0 list one entry: LoadSettings.PDFImportSettings was extended with the settings LoadEmbeddedFiles, LoadMetadata and GenerateXMLAsEmbeddedFile. Of the three, only LoadEmbeddedFiles is a value of the current PDFImportSettings enumeration. Today, the metadata, the form fields and the text coordinates of a PDF document come from LoadEmbeddedData and LoadSettings.EmbeddedData. The What's New documentation of version 30.0 repeats the same entry.
  • Breaking changes. No change of version 29.0 is known to break existing code. Breaking Changes starts with version 30.0.

New Classes, Properties, Methods and Events

These are the classes and members that the What's New documentation of version 29.0 lists for TX Text Control .NET Server. .NET names are relative to the TXTextControl namespace. Each name links to its current reference page.

New Classes

.NET Members by Class

ClassPropertiesMethodsEvents
Barcode.BarcodeTypeSettingsHasCheckValue, ShowCheckValue
DocumentLinkAutoGenerationType, DocumentTarget
DocumentServer.DataSources.MergeBlockInfoMergeFieldsApply
DocumentServer.PDF.AcroForms.FormCheckBoxIsChecked
DocumentServer.PDF.AcroForms.FormChoiceFieldCanEdit, CommitOnSelChange, DoNotSpellCheck, MultiSelect, Options, Sort, Value
DocumentServer.PDF.AcroForms.FormFieldAlternateFieldName, Bounds, FieldName, FieldType
DocumentServer.PDF.AcroForms.FormTextFieldValue
DocumentServer.PDF.Contents.ContentLineHeight, Page, Rectangle, Text, Width, X, Y
DocumentServer.PDF.Contents.LinesContentLinesFind
DocumentServer.PDF.FormsGetAcroFormFields
DocumentSettingsAuthor, CreationDate, CreatorApplication, DocumentBasePath, DocumentKeywords, DocumentSubject, DocumentTitle, EmbeddedFiles, UserDefinedDocumentProperties
DocumentTargetAutoGenerationType, Deleteable, ID, Name, Start, TargetNameScrollTo
EmbeddedFileCreationDate, Data, Description, FileName, LastModificationDate, MIMEType, Relationship
HeaderFooterTablesOfContents
IFormattedTextTablesOfContents
InputFormatStructureLevel
LoadSaveSettingsBaseEmbeddedFiles
LoadSettingsEmbeddedData
ParagraphFormatStructureLevel, TabLeaders
ServerTextControlDocumentSettings, TablesOfContentsOnTableOfContentsCreated, OnTableOfContentsDeletedTableOfContentsCreated, TableOfContentsDeleted
ServerVisualization.RulerBarViewGeneratorResolution
ServerVisualization.ShowErrorMessageEventArgsCaption
ServerVisualization.StatusBarViewGeneratorResolution
ServerVisualization.TextViewGeneratorResolutionOnFormattingStyleChanged, OnFormattingStyleListChanged, OnInputFormattingStyleChanged, OnInputParagraphChanged, OnTableOfContentsEntered, OnTableOfContentsLeftFormattingStyleChanged, FormattingStyleListChanged, InputFormattingStyleChanged, InputParagraphChanged, ShowErrorMessage, TableOfContentsEntered, TableOfContentsLeft
SubTextPartGetChildren, GetTextFields
TableOfContentsDefaultHighlightColor, HasLinks, HasPageNumbers, HasRightAlignedPageNumbers, HighlightColor, HighlightMode, ID, Length, MaximumStructureLevel, MinimumStructureLevel, Name, Number, Start, Text, TitleSave, ScrollTo, Update
TableOfContentsCollectionCount, IsSynchronized, Item, SyncRootAdd, CopyTo, GetEnumerator, GetItem, Remove
TableOfContentsEventArgsTableOfContents
TextFrameTablesOfContents

Document Editor JavaScript API

ObjectPropertiesMethods
DocumentLinkgetAutoGenerationType
DocumentSettingsembeddedFilesgetAuthor, getCreationDate, getCreatorApplication, getDocumentBasePath, getDocumentKeywords, getDocumentSubject, getDocumentTitle, getUserDefinedDocumentProperties, setAuthor, setCreationDate, setCreatorApplication, setDocumentBasePath, setDocumentKeywords, setDocumentSubject, setDocumentTitle, setUserDefinedDocumentProperties
DocumentTargetgetAutoGenerationType
EmbeddedFilegetCreationDate, getData, getDescription, getFileName, getLastModificationDate, getMIMEType, getRelationship, setCreationDate, setDescription, setLastModificationDate, setMIMEType, setRelationship
EmbeddedFileCollectionaddBinaryFile, addTextFile, removeElementAt
FormattedTexttablesOfContents
InputFormatgetStructureLevel, setStructureLevel
ParagraphFormatgetStructureLevel, getTabLeaders, setStructureLevel, setTabLeaders
TableOfContentsgetHasLinks, getHasPageNumbers, getHasRightAlignedPageNumbers, getHighlightColor, getHighlightMode, getID, getLength, getMaximumStructureLevel, getMinimumStructureLevel, getName, getNumber, getStart, getText, getTitle, save, scrollTo, setHasLinks, setHasPageNumbers, setHasRightAlignedPageNumbers, setHighlightColor, setHighlightMode, setID, setMaximumStructureLevel, setMinimumStructureLevel, setName, setTitle, update
TableOfContentsCollectionadd, getItem, getItemByName, remove
TableOfContentsCollectionAddParamshasLinks, hasPageNumbers, hasRightAlignedPageNumbers, maximumStructureLevel, minimumStructureLevel, title
TableOfContentsEventArgstableOfContents
TableOfContentsInfohasLinks, hasPageNumbers, hasRightAlignedPageNumbers, highlightColor, highlightMode, id, length, maximumStructureLevel, minimumStructureLevel, name, number, start
TXTextControldocumentSettingsrefreshLayout

Document Viewer JavaScript API

Next Steps