{oapdf_gg}
Office software is closely linked to the PDF,the PDF is also must have to control!      Set home Page  Add to Favorites  
You are here:Home > PDF Application > PDF Development
PDF Development
Using C# language the whole PDF document Strategy Guide Graphic
Finishing by: Date:2009-04-17 20:59:48 Popularity: Tags:

large table

across a few pages of the form will automatically be cut into different parts. Sample code shows a 0509-page statement of bounds. The statements have a table first, if you want the table header on each page there, you can use endHeaders () method of marking the end of the region form the first point, see sample code 0510.

to do this kind of statements, it is recommended setting the cell spacing to 0 and only fill in the designated distance.

you may have noticed, when a table has been split, some seem to have lost the border. This is because in the former cell was a fully drawn and will not be passed to the next page.

u forced a table cloth or a home unit on the page

there are some cases, you may want to avoid the whole table cell or split into two parts, sample code and sample code 0511 almost exactly the same as 0508, but we set the parameters TableHasToFit for true, look at the sample code 0508 and 0511 the difference between the results of sample code. Sample code in 0512, we amended the 0510 sample code CellsHaveToFit attribute of true, compare the difference between sample results.

memory management

when we add an object to the document, the object of a possible written into the output stream, but to create a form, the Table object has been kept, for the real form, which will be a problem.

Similarly, when you are writing a HttpServletResponse object to the output stream, the browser may timeout. That is why with your own fitsPage () method of control is useful to partition table, sample code, tell you how to do 0513.

nested forms

There are two ways

nested tables, the first method is to use insertTable explicitly insert a table to another table, sample code, by the insertion of 0514 shows the way to other forms to create the five forms. As you can see in front of two tables, all empty cells automatically partition, because changes in the original form. If a cell is not empty, out-span and (or) line span will be automatically adjusted to a new location, the first page of all three forms listed in the original table have been related to the protection of the width of the fourth table shows that we can Insert the form in add other cells:the freedom to add the cell to the next cell. Finally, there is a depth of nested tables.

When you use insertTable method, insert the percentage of the width of table will not be considered, if you want to insert the table only 80% of the cell (which is the width of the default percentage), you have to row around the cell, See sample code 0515, which is a table so that in combination with other data stored in the same cell the only way to see the sample code 0516.

Note:You can only be inserted into a table column span and row span of 1 cells.

offset table

when a form is added to the document prior to the current, whichever is the new pitch will be added (such as inserting objects of the previous pitch). Sometimes because of the previous insert objects and the distance between the current form is too large or too small you do not wish to do so, if you want to change this space, you have to set the table offset, such as sample code 0517.

form of absolute position

iTextSharp.text.Table is a standard method to create a very simple form of the class, but sometimes you want to have some special form of behavior, in which case you will use more complex types of com.lowagie.text.pdf . PdfPTable, sample code 0518 is a very simple example, in Chapter X and Chapter 12 will have some more complex examples.

there isArticle InformationsComment Information
Category column

Site Help | Site Map | Feedback |
OAPDF.COM Copyright 2009 V1.1