PDF Export

Technical Articles

The Portable Document Format (PDF) is mainly used to provide a way to exchange documents between systems without changes to the document formatting. Using PDF, a document will retain it's formatting and layout when being printed or displayed on different machines or operating systems. TX Text Control can export all supported formats to PDF and PDF/A.

Exporting Documents as PDF Files

TX Text Control offers two different PDF versions to save a document to:

PDF/A is a format that has been created for long-term archiving of electronic documents. This PDF standard states that the created PDF file must be 100 % self-contained, e.g. all the information, that is necessary to display the content must be embedded in the file. Furthermore, audio and video content is forbidden as well as JavaScript and any executable code. Also, encryption is not allowed.

The PDF/A standard is based on the PDF Reference Version 1.4 from Adobe Systems Inc. and has been published as an ISO standard on October 1, 2005.

TX Text Control's PDF filter can export documents to PDF/A-1b, so that documents can be archived in compliance to ISO standards.

Using PDF/A in TX Text Control

To export any content in TX Text Control to a PDF/A-1b file, the Save method has to be used with the format value 14 (Adobe Portable Document Format Archive (PDF/A)).

To export the page size of a document to PDF, the ViewMode must be set to 2 (Page View).

Basic Steps to Create a PDF/A Document in an Application

1. The ViewMode property has to be set to 2.

2. TXTextControl.FontSettings has to be set to 2.

3. The document can now be saved to PDF/A with the Save method.

The usage of fonts can be restricted with the FontSettings property.

Please note that not every font can be embedded using PDF/A, which may have different reasons: Either a font's license forbids embedding or a device dependent font is used.

TX Text Control includes an advanced algorithm to replace any font that can not be embedded.