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.

Fig. 8.27<br />

Filling a rhombus<br />

shape with text<br />

10% 50%<br />

50% 100%<br />

Our<br />

paper<br />

planes are<br />

the ideal way<br />

of passing the<br />

time. We offer a lot<br />

of revolutionary brandnew<br />

developments of the<br />

traditional common paper<br />

planes. If your lesson, conference,<br />

or lecture turn<br />

out to be deadly boring,<br />

you can have<br />

a wonderful<br />

time with<br />

our planes.<br />

90% 50%<br />

Fig. 8.28<br />

Filling overlapping shapes<br />

Our paper planes are<br />

the ideal way of passing<br />

the time. We offer<br />

revolutionary new developments<br />

of the traditional<br />

co- mmon paper<br />

planes. If your lesson,<br />

conf- erence, or<br />

lecture turn out to be<br />

deadly<br />

boring,<br />

you can have a wonderful<br />

time with our planes. All<br />

our models are folded<br />

from one paper sheet.<br />

50% 0%<br />

Filling overlapping shapes. In the next example we will fill a shape comprising two<br />

overlapping polygons, namely a hexagon with a rectangle inside. Using the addfitbox<br />

option the fitbox itself will be excluded from being filled, and the polygons in the subsequent<br />

list will be filled except in the overlapping area (see Figure 8.28):<br />

wrap={ addfitbox polygons=<br />

{ {20% 10% 80% 10% 100% 50% 80% 90% 20% 90% 0% 50% 20% 10%}<br />

{35% 35% 65% 35% 65% 65% 35% 65% 35% 35%} } }<br />

Without the addfitbox option you will get the opposite effect: the previously filled area<br />

will remain empty, and the previously empty areas will be filled with text.<br />

Cookbook A full code sample can be found in the Cookbook topic text_output/fill_polygons_with_text.<br />

226 Chapter 8: Text and Table Formatting (Edition for <strong>COM</strong>, .<strong>NET</strong>, and REALbasic)

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

Saved successfully!

Ooh no, something went wrong!