It can often be useful to include description text in the print view to provide summary information about the table that will be included in the generated PDF.
The message option of the pdfFlash button type provides this ability. It is a simple string and cannot contain any formatting information. If you require control over the styling of the exported PDF, please refer to the pdfHtml5 button type. In addition to the above code, the following Javascript library files are loaded for use in this example:. This example uses a little bit of additional CSS beyond what is loaded from the library files below , in order to correctly display the table.
You can include Comments with the field data or just the field data. Field Selection. Specifies what fields are returned. To receive only some of the completed field data, select Only These , click Select Fields , and select which fields to include or exclude in the Field Selection dialog box. Date Options. A button can have a label, an icon, or both. You can change how the button appears in each mouse state Up, Down, and Rollover.
For whichever format you select, the entire page is used, so if you want to use only a portion of a page as an icon, you need to crop the image or page before carrying out this procedure. The smallest allowable PDF page size is 1-by-1 inch 2. If you want the icon to appear smaller than 1-by-1 inch, scale it to fit the size of the box drawn with the button tool. Clicking Advanced in the Options tab of the Button Properties dialog box lets you determine how a button icon is scaled to fit inside a button.
Label only B. Icon only C. Icon top, label bottom D. Label top, icon bottom E. Icon left, label right F. Label left, icon right G. Label over icon. To change the appearance of buttons, use the appearance options in the Appearance tab of the Button Properties dialog box.
To align, center, or distribute the button with other form fields, or to resize or duplicate the button, right-click the button, and then choose an option from the context menu. Close all opened dialog boxes, if any.
Click the cross icon at the right-end of the Prepare Form toolbar to close the tool. If a label option is selected from the Layout menu, type the text in the Label box. If an icon option is selected from the Layout menu, click Choose Icon , click Browse , and select the file. Click Clear to remove the selected icon. Specifies appearances for the Up, Down, and Rollover states of the mouse. Select an option under State, and then specify a label or icon option:.
Click the Options tab, select one of the icon options from the Layout menu, and then click Advanced. Icon Is Too Big. Icon Is Too Small. From the Scale menu, select whether to scale the icon proportionally. If the icon is scaled nonproportionally, it may be skewed. To make sure that either the top and bottom or left and right sides of the icon are flush against the button edges, select Fit To Bounds. To define where the icon is placed inside the button, drag the slider arrows. Icon placement is defined according to the percentage of space preserved between the icon and the left field boundary, and between the icon and the bottom field boundary.
The default setting 50, 50 places the icon in the middle of a field. You can click Reset at any time to revert to the default placement setting. In some cases, you may want the button area to be invisible until the pointer moves over it. By alternately showing and hiding a button, you can create interesting visual effects in a document.
For example, when you move a pointer over a city on a map, a detail map of the city could be displayed, and the detail map could disappear when the pointer moves away from the city. Pointer not over button area B. Pointer enters button area C. Pointer exits button area. Using the Button tool , drag across the area where you want the pop-up button to appear. For example, if the PDF file contains a map of France, drag across the area where you want a detailed map of Paris to pop up.
Message to be shown at the bottom of the table, or the caption tag if displayed at the bottom of the table. Message to be shown at the top of the table, or the caption tag if displayed at the top of the table.
Paper orientation for the created PDF. This can be portrait or landscape. Paper size for the created PDF. The button's display text. The text can be configured using this option see buttons. Document title appears above the table in the generated PDF. DataTables initialisation: Use the exportOptions to save only the data shown on the current DataTable page:.
DataTables designed and created by SpryMedia Ltd. Privacy policy.
0コメント