TX Text Control .NET for WPF

What's New in TX Text Control 15.0

Topic

Documents gained columns, PDF/A archiving and a PDF import in TX Text Control 15.0. The version also made paragraphs programmable as objects and introduced the field adapters of the DocumentServer.Fields namespace.

Version 15.0 was released in May 2009 for the server and the client products, as the press release Press Release: TX Text Control 15.0 is Released announced. Its PDF/A export produces PDF/A-1b documents. TX Text Control .NET for WPF didn't exist yet: its first version was Version 16.0, and the classes below belong to the class library that it shares with the Windows Forms edition. The ASP.NET DocumentViewer of the version belongs to the ASP.NET products and isn't listed here, nor are features of the Windows Forms control, such as the button for structured lists and the customizable clipboard.

Version 15.0 at a Glance

AreaWhat is new
ColumnsText arranged in columns, per section
PDFPDF/A-1 Level B export, text import from PDF documents
ListsStructured numbered lists, longer text before and after the number
ParagraphsA collection of Paragraph objects for each text part
Page imagesAn image of the content of a page
FieldsThe DocumentServer.Fields namespace with adapters for MS Word fields, the DocumentController
Mail mergeIF, DATE and INCLUDETEXT fields, events for merged fields and included documents

Columns

The text of a section can be arranged in columns, so that one page can have different numbers of columns where a section begins. SectionFormat.Columns sets the number of columns. When EqualColumnWidth is true, which is the default, all columns get the same width, calculated from the page size. Otherwise, ColumnWidths and ColumnDistances set each width and distance, and ColumnLineColor and ColumnLineWidth draw a line between the columns. A column break continues the text in the next column. See Sections, Pages, Headers, and Footers.

PDF/A and PDF Import

  • PDF/A. Documents can be saved as PDF/A-1 Level B, the ISO standard for archiving, with the StreamType and BinaryStreamType value AdobePDFA. Besides the content of a standard PDF document, a PDF/A document contains only embeddable fonts, stores document data such as the title and the author as XMP, describes which characters of a font are used and contains a color profile. Links that start other applications and access restrictions aren't allowed, so SaveSettings.DocumentAccessPermissions is ignored.
  • Fonts for PDF/A. Set FontSettings.EmbeddableFontsOnly of ServerTextControl.FontSettings to true before you save, so that the document contains only embeddable fonts. The AdaptFont event, switched on with FontSettings.AdaptFontEvent, controls which font replaces one that can't be used; its AdaptFontEventArgs give the font name, the adapted font name and the supported fonts. See PDF/A.
  • PDF import. The StreamType value AdobePDF loads the text of a PDF document with all load methods. Because PDF describes where characters are and not how the document is structured, the import filter either makes each line a paragraph, builds paragraphs from the text flow or creates a text frame for each block of text at its original position. LoadSettings.PDFImportSettings selects the mode with a PDFImportSettings value. See PDF Import and Its Limitations.

Lists, Paragraphs and Pages

Field Adapters and Mail Merge

Upgrade to Version 15.0

New Classes, Properties, Methods and Events

The classes and members below are the ones that the What's New documentation of version 15.0 lists for TX Text Control .NET for WPF. Names are relative to the TXTextControl namespace, each name links to its current reference page, and "(obsolete)" marks a member that is obsolete today. The version's own list also names TextField as a new class, but TextFieldCollection handled TextField objects in version 13.0, so it isn't listed under New Classes.

New Classes

Members by Class

ClassPropertiesMethodsEvents
AdaptFontEventArgsAdaptedFontName, FontName, SupportedFonts
DocumentServer.DocumentControllerCharCodeChecked, CharCodeUnchecked, CheckBoxFont, DpiX, DpiY, Pages, TextComponentDispose, GetBlockFieldNames, GetBlockNames, GetFieldAdapters, GetFieldNames, Load, LoadFromMemory, MergeField, Save, SaveToMemory, Twips2Pixels
DocumentServer.DocumentController.FieldAdapterCollectionCount, ItemCopyTo, GetEnumerator, IndexOf
DocumentServer.Fields.DateFieldDate, Format, Text
DocumentServer.Fields.FieldAdapterApplicationField, ID, Length, Start, TypeNameShowDialog
DocumentServer.Fields.FormCheckBoxChecked, Size, SizeAuto
DocumentServer.Fields.FormDropDownListEntries
DocumentServer.Fields.FormFieldAdapterBounds, CalcOnExit, Enabled, Font, HelpText, Name, StatusText, Text
DocumentServer.Fields.FormTextFormat, MaxLength, Type
DocumentServer.Fields.IfFieldExpression1, Expression2, FalseText, FieldValue, Operator, Text, TrueText
DocumentServer.Fields.IncludeTextBookmark, Filename, TextFormat
DocumentServer.Fields.MailMergeFieldAdapterPreserveFormatting
DocumentServer.Fields.MergeFieldMapped, Name, Text, TextAfter, TextBefore, TextFormat, VerticalFormatting
DocumentServer.MailMergeSearchPathFieldMerged, IncludeTextMerging
DocumentServer.MailMerge.BlockRowMergedEventArgsDataRowCount, MergeBlockName
DocumentServer.MailMerge.FieldMergedEventArgsCancel, MailMergeFieldAdapter, Merged
DocumentServer.MailMerge.IncludeTextMergingEventArgsFilename, IncludeTextDocument
DocumentTargetBounds
FontSettingsAdaptFontEvent, EmbeddableFontsOnly, ScalableFontsOnly, TrueTypeFontsOnly
HeaderFooterParagraphs
ListFormatTextAfterNumber, TextBeforeNumber
LoadSettingsPDFImportSettings
PageGetImage
ParagraphFormat, FormattingStyle, Length, Lines, ListFormat, ListNumber, ListNumberText, Number, Start, StartLine, TextSave, Select
ParagraphCollectionCount, ItemCopyTo, GetEnumerator, GetItem
SectionFormatColumnDistances, ColumnLineColor, ColumnLineWidth, Columns, ColumnWidths, EqualColumnWidth
ServerTextControlFontSettings, ParagraphsOnAdaptFontAdaptFont
TextFieldBounds, Deleteable, DoubleClickEvent, DoubledInputPosition, Editable, FormattingBounds, ID, Length, Name, ShowActivated (obsolete), Start, TextScrollTo
TextFrameParagraphs

Next Steps

  • Version 15.1: the features of the next version.
  • Version 14.0: sections, DOCX, MS Word fields and the first MailMerge component.
  • PDF/A: create archivable PDF documents today.