# PDF Embedded Font Extractor

A utility to extract embedded TrueType fonts from PDF documents.

## Overview

This application allows you to extract embedded TrueType fonts from PDF files. 
It utilizes the losLab PDFlib library to access font resources within PDF documents and save them as usable font files.

## Features

- Extracts embedded TrueType fonts (full Embedded Normal TrueType)
- Automatically detects and skips non-embedded fonts
- Provides detailed information about each font in the PDF
- Saves extracted fonts in TTF format
- Generates comprehensive logs of the extraction process
- Simple and intuitive user interface

## Usage

1. Launch the application
2. Click "Select PDF" to choose the PDF file you want to extract fonts from
3. The application will analyze the PDF and list all detected fonts
4. Choose an output directory for the extracted fonts
5. Click "Extract Fonts" to begin the extraction process
6. Review the logs for detailed information about the extraction

## Font Requirements

The application specifically extracts:
- Embedded TrueType fonts (fonts that are fully included in the PDF)

Other font types (Type1, TrueTyp CID, etc.) will be detected but not extracted.

## Log Files

The application generates detailed logs which are saved to the output directory:
- extraction_success.txt - Created when fonts are successfully extracted
- extraction_error.txt - Created when errors occur during extraction
- no_embedded_truetype_fonts.txt - Created when no extractable fonts are found

## Technical Notes

This application is built with Delphi and uses the losLab PDFlib library for PDF manipulation. 
It handles various font types and provides clear feedback about why certain fonts cannot be extracted.