WELCOME [ Log In · Register ]        SITE [ Search · Page Index · Recent Changes ]    RSS

Root-level dictionary of all used fonts

Root-level dictionary of all used fonts

Request Title 

 Root-level dictionary of all used fonts
Request Submitted By   Appligent
Executive Summary  A central location to easily locate all fonts used within the file
Rationale  Simplicity of document post-processing; possible reduction of file size through font reuse.
Use Case(s) Font resources are located in Resources dictionaries scattered throughout the PDF document.  Typically, these font resources are located in the Resources dictionary for the Page.  But, they can also be located in other places in the document like XOjects and appearances.  Because these Resources dictionaries tend to be independent; font resource names are not necessarily unique in a given PDF file.  Non-unique font resource names complicates the process of manipulating a given PDF document; in particular, the process of annotation or form flattening.  Other processes which would benefit from a central list of fonts used within the PDF document are Watermarking, pagination, Bates numbering and Variable Text.
Other Remarks 

 

Change to Table 28 - Entries in the Catalog Dictionary – add one new row:
Key Type Value
FList dictionary
(Optional) The document’s font list dictionary (see x.x.x,"Font List").

 

( Add the following at the end of section 9.6.1 )

Font List
The Font List dictionary contains a central list to font resources which are located in separate Resource dictionaries scattered throughout the PDF document ( see section 7.8.3, "Resource Dictionaries"). 

The Font List Array is an array of one or more data triplets consisting of the Font Resource Name,  BaseFont Name and Font Dictionary Reference.  The /FLPre and /FLIndex are the two components which are used to create unique font resource names; for example, F1, F2, F3, etc.  /FLPre will remain constant within a given PDF document.  /FLIndex contains the last integer used to generate a Font Resource Name.
 
If a Font List Dictionary exists within the PDF document; a conforming writer should use the facility of the Font List Dictionary for any new fonts added to the PDF document.

Table xxx - Font List Dictionary 

Key Type Value
FList array
(Required) Font List Array - array of one or more sets of three elements used to reference fonts. ( see Table xxx, "Font List Array" )   [ Font_Resource_Name  BaseFont_Name  Font_Dictionary_Reference ... ]
FLPre text string (Optional) Prefix text used to specify the name of a font resource.  Typical prefix text is the character "F".
FLIndex integer
(Optional) Last integer used to generate a font resource name.  This integer is incremented as additional fonts are added to the document.

Table xxx - Font List Array 

Type Value
name
Font Resource Name ( see 9.2.2, "Basics of Showing Text" )
name BaseFont Name ( see the BaseFont entry in Table 111 )
dictionary
Indirect reference to the font dictionary ( see 9.6, "Simple Fonts" )

 

Return to Top