AddFormattedTitle Demo Application

This demonstration shows how to add formatted title text and images to an existing PDF document based on XML specifications. 
The application illustrates several important PDF manipulation techniques:

Key Features:
- Loads an existing PDF document using PDFlibPas library
- Parses XML file to determine text content, font, position, color, and style
- Use font subsetting to minimize PDF file size
- Supports font style by appending style to font names
- Renders images defined in the XML specification
- Compresses content, fonts and images to optimize output file size

Technical Implementation:
- Uses TrueType font subsetting to embed only the characters actually used in the document
- Uses font naming convention for font style (e.g. use Arial [Italic] for italic Arial)
- Preserves color information specified in the XML
- Properly handles namespace prefixes in XML nodes
- Efficiently manages font resources by reusing loaded fonts

This demo serves as a template for applications that need to programmatically add formatted content to PDF documents using external specifications.

Usage:
1. Click "Add Title to PDF" button
2. Select source PDF file
3. Save the formatted result to a new file

Font Style Usage:
To use styles for fonts, simply append the style (such as [Bold]) to the installed font name or font file name in the XML file.
Example: <ps:filltext font="UniversLTStd-XBlackEx.ttf [Bold]" size="24" text="EXAMPLE"/>
