10.07.2015 Views

Download - Multivac!

Download - Multivac!

Download - Multivac!

SHOW MORE
SHOW LESS

Create successful ePaper yourself

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

Pages from an imported PDF document. The PDI page must have been opened withPDF_open_pdi_page( ) before calling PDF_add_table_cell( ). The PDI page handle is suppliedin the pdipage option. In the fitpdipage option all of the formatting options of PDF_fit_pdi_page( ) can be specified. The default fit method is fitmethod=meet. This meansthat the PDI page will be placed completely inside the cell without distorting its aspectratio. The cell size will not be changed due to the size of the PDI page.Multiple content types in a cell. Table cells can contain one or more of those contenttypes at the same time. Additional ruling and shading is available, as well as matchboxesfor interactive features such as links or form fields.Positioning cell contents. By default, cell contents are positioned with respect to thecell box. The margin options of PDF_add_table_cell( ) can be used to specify some distancefrom the cell borders. The resulting rectangle is called the inner cell box. If any ofthe margins is defined, the cell contents will be placed with respect to the inner cell box(see Figure 7.37). If no margins are defined the inner cell box will be identical to the cellbox.top marginleft margincell boxinner cell boxbottom marginright marginFig. 7.37Fitting contents inthe inner cell boxIn addition, the cell contents may be subject to further options supplied in the contentspecificfit options, as described in section Section 7.4.4, »Mixed Table Contents«, page170.7.4.3 Table and Column WidthsWhen adding a cell to the table, you define the number of columns and/or rowsspanned by the cell with the colspan and rowspan options. By default, a cell spans onecolumn and one row. The total number of columns and rows in the table is implicitly increasedby the respective values when adding a cell. Figure 7.38 shows an example of atable containing three columns and four rows.row 1row 2row 3row 41 11 21 31 4cell ............ spanning ............ three ............ columnscell ...... spanning ...... two ...... columnssimple cellsimple cell2 32 4simple cellsimple cell3 2cell ........ spanning ........ three rowsFig. 7.38Simple cells and cells spanningseveral rows or columnscolumn 1 column 2 column 3Furthermore you can explicitly supply the width of the first column spanned by the cellwith the colwidth option. By supplying each cell with a defined first column width all7.4 Table Formatting 169

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

Saved successfully!

Ooh no, something went wrong!