17.05.2014 Views

PDFlib 8 Windows COM/.NET Tutorial

PDFlib 8 Windows COM/.NET Tutorial

PDFlib 8 Windows COM/.NET Tutorial

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

exclam 33 0x0021<br />

...<br />

If no Unicode value has been specified <strong>PDFlib</strong> will search for a suitable Unicode value in<br />

its internal tables. A Unicode value can be specified instead of a glyph name:<br />

% Code page definition for <strong>PDFlib</strong>, based on Unicode values<br />

% Unicode code<br />

0x0020 32<br />

0x0021 33<br />

...<br />

More formally, the contents of an encoding or code page file are governed by the following<br />

rules:<br />

> Comments are introduced by a percent ’%’ character, and terminated by the end of<br />

the line.<br />

> The first entry in each line is either a PostScript glyph name or a hexadecimal Unicode<br />

value composed of a 0x prefix and four hex digits (upper or lower case). This is<br />

followed by whitespace and a hexadecimal (0xoo–0xFF) or decimal (0–255) character<br />

code. Optionally, name-based encoding files may contain a third column with the<br />

corresponding Unicode value.<br />

> Character codes which are not mentioned in the encoding file are assumed to be undefined.<br />

Alternatively, a Unicode value of 0x0000 or the character name .notdef can<br />

be provided for unused slots.<br />

> All Unicode values in an encoding or codepage file must be smaller than U+FFFF.<br />

As a naming convention we refer to name-based tables as encoding files (*.enc), and Unicode-based<br />

tables as code page files (*.cpg), although <strong>PDFlib</strong> treats both kinds in the<br />

same way.<br />

4.2 Single-Byte (8-Bit) Encodings 103

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!