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. 7.4<br />

The rotate option<br />

Fig. 7.5<br />

The orientate option<br />

not specified any fit method the image will be output in its original size and will exceed<br />

the box.<br />

Fitting an image proportionally into a box with orientation. Our next goal is to orientate<br />

the image to the west with a predefined size. We define a box of the desired size and<br />

fit the image into the box with the image’s proportions being unchanged<br />

(fitmethod=meet). The orientation is specified as orientate=west. By default, the image<br />

will be placed in the lower left corner of the box (see Figure 7.6b). Figure 7.6c shows the<br />

image orientated to the east, and Figure 7.6d the orientation to the south.<br />

The orientate option supports the direction keywords north, east, west, and south as<br />

demonstrated in Figure 7.5.<br />

Note that the orientate option has no influence on the whole coordinate system but<br />

only on the placed object.<br />

Fig. 7.6 Orientating an image<br />

Generated output Option list for fit_image( )<br />

a) boxsize={70 45} orientate=west<br />

b) boxsize={70 45} orientate=west fitmethod=meet<br />

c) boxsize={70 45} orientate=east fitmethod=meet<br />

d) boxsize={70 45} orientate=south fitmethod=meet<br />

e)<br />

boxsize={70 45} position={center bottom} orientate=east<br />

fitmethod=clip<br />

7.3 Placing Images and imported PDF Pages 195

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

Saved successfully!

Ooh no, something went wrong!