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

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Our paper planes<br />

are the ideal way of<br />

passing the time.We<br />

offer revolutionary<br />

brand new developments<br />

of the traditional<br />

common paper planes.<br />

If your lesson, conference,<br />

or lecture<br />

turn out to be deadly<br />

boring, you can have<br />

a wonderful time<br />

with our planes. All<br />

Fig. 8.23 Justified text in a narrow fitbox with default settings<br />

decrease the distance between words (minspacing option)<br />

compress the line (shrink method, shrinklimit option)<br />

force hyphenation (split method)<br />

increase the distance between words (spread method, maxspacing option)<br />

Formatting CJK text. The textflow engine is prepared to deal with CJK text, and properly<br />

treats CJK characters as ideographic glyphs as per the Unicode standard. As a result,<br />

CJK text will never be hyphenated. For improved formatting the following options are<br />

recommended when using Textflow with CJK text; they will disable hyphenation for inserted<br />

Latin text and create evenly spaced text output:<br />

hyphenchar=none<br />

alignment=justify<br />

shrinklimit=100%<br />

spreadlimit=100%<br />

Vertical writing mode is not supported in Textflow.<br />

Justified text in a narrow fitbox. The narrower the fitbox, the more important are the<br />

options for controlling justified text. Figure 8.23 demonstrates the results of the various<br />

methods for justifying text in a narrow fitbox. The option settings in Figure 8.23 are basically<br />

okay, with the exception of maxspacing which provides a rather large distance between<br />

words. However, it is recommended to keep this for narrow fitboxes since otherwise<br />

the ugly forced hyphenation caused by the split method will occur more often.<br />

If the fitbox is so narrow that occasionally forced hyphenations occur, you should<br />

consider inserting soft hyphens, or modify the options which control justified text.<br />

Option shrinklimit for justified text. The most visually pleasing solution is to reduce<br />

the shrinklimit option which specifies a lower limit for the shrinking factor applied by<br />

the shrink method. Figure 8.24a shows how to avoid forced hyphenation by compressing<br />

text down to shrinklimit=50%.<br />

8.2 Multi-Line Textflows 221

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

Saved successfully!

Ooh no, something went wrong!