PDFlib 8 Windows COM/.NET Tutorial
PDFlib 8 Windows COM/.NET Tutorial
PDFlib 8 Windows COM/.NET Tutorial
You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
11.6.6 Object Fitting Properties<br />
Fitting properties are available for all Block types, although some properties are specific<br />
to a certain Block type. They manage how the contents will be placed in the Block:<br />
> Table 11.10 lists fitting properties for Textline, Image, and PDF Blocks<br />
> Table 11.11 lists fitting properties for Textflow Blocks (mostly related to aspects of vertical<br />
fitting).<br />
The object fitting algorithm uses the Block rectangle as fitbox. Except for fitmethod=clip<br />
there will be no clipping; if you want to make sure that the Block contents do not exceed<br />
the Block rectangle avoid fitmethod=nofit.<br />
Table 11.10 Fitting properties for Textline, Image, and PDF Blocks<br />
keyword<br />
alignchar<br />
dpi<br />
fitmethod<br />
margin<br />
orientate<br />
position<br />
rotate<br />
scale<br />
shrinklimit<br />
possible values and explanation<br />
(Unichar or keyword; only for Textline Blocks) If the specified character is found in the text, its lower left<br />
corner will be aligned at the lower left corner of the Block rectangle. For horizontal text with<br />
orientate=north or south the first value supplied in the position option defines the position. For horizontal<br />
text with orientate=west or east the second value supplied in the position option defines the<br />
position. This option will be ignored if the specified alignment character is not present in the text. The<br />
value 0 and the keyword none suppress alignment characters. The specified fitmethod will be applied, although<br />
the text cannot be placed within the Block rectangle because of the forced positioning of<br />
alignchar. Default: none<br />
(Float list; only for image Blocks) One or two values specifying the desired image resolution in pixels per<br />
inch in horizontal and vertical direction. With the value o the image’s internal resolution will be used if<br />
available, or 72 dpi otherwise. This property will be ignored if the fitmethod property has been supplied<br />
with one of the keywords auto, meet, slice, or entire. Default: 0<br />
(Keyword) Strategy to use if the supplied content doesn’t fit into the Block rectangle. Possible values are<br />
auto, nofit, clip, meet, slice, and entire. For Textline Blocks, image, and PDF Blocks this property will<br />
be interpreted according to the standard interpretation. Default: auto. For Textflow Blocks where the<br />
Block is too small for the text the interpretation is as follows:<br />
auto fontsize and leading will be decreased until the text fits.<br />
nofit Text will run beyond the bottom margin of the Block.<br />
clip Text will be clipped at the Block margin.<br />
(Float list; only for Textline Blocks) One or two float values describing additional horizontal and vertical<br />
reduction of the Block rectangle. Default: 0<br />
(Keyword) Specifies the desired orientation of the content when it is placed. Possible values are north,<br />
east, south, west. Default: north<br />
(Float list) One or two values specifying the position of the reference point within the content. The position<br />
is specified as a percentage within the Block. Only for Textline Blocks: the keyword auto can be used<br />
for the first value in the list. It indicates right if the writing direction of the text is from right to left (e.g.<br />
for Arabic and Hebrew text), and left otherwise (e.g. for Latin text).<br />
Default: {0 0}, i.e. the lower left corner<br />
(Float) Rotation angle in degrees by which the Block will be rotated counter-clockwise before processing<br />
begins. The reference point is center of the rotation. Default: 0<br />
(Float list) One or two values specifying the desired scaling factor(s) in horizontal and vertical direction.<br />
This option will be ignored if the fitmethod property has been supplied with one of the keywords auto,<br />
meet, slice, or entire. Default: 1<br />
(Float or percentage; only for Textline Blocks) The lower limit of the shrinkage factor which will be applied<br />
to fit text with fitmethod=auto. Default: 0.75<br />
308 Chapter 11: PPS and the <strong>PDFlib</strong> Block Plugin (Edition for <strong>COM</strong>, .<strong>NET</strong>, and REALbasic)