File : Export : As Multipage PDF File
Export worksheet as multipage PDF file
Minimum Origin Version Required: 8.1 SR0
1. expPDFw export:=book filename:=<Long Name> path:="C:\My PDF Files" overwrite:=ask; 2. expPDFw export:=active filename:="<long name>" path:=D:\ overwrite:=ask tr2.PDF.pdf.ColorTranslation:=0. tr2.PDF.pdf.LineMode:=0. tr2.PDF.Compression.ClrImageCompression:=0. tr2.MultiPage.CoverPage.Text:="My Report" tr3.Check.Chk_Horz_Grids:=0. tr3.Check.Chk_Vert_Grids:=0. tr3.Check.Chk_Frame:=33554432.;
Please refer to the page for additional option switches when accessing the x-function from script
Display Name |
Variable Name |
I/O and Type |
Default Value |
Description |
---|---|---|---|---|
Select Sheet(s) | export |
Input int |
|
This variable is used to specify the page(s) to be exported. The default option is Current Sheet. Option list:
|
Worksheets | pages |
Input string |
|
List the worksheets to be exported. When Specified is selected in the Export drop-down list, this field is editable. Also the Browse button will be enabled. Click the Browse button to open the Project Browser Sheets dialog to select the worksheets to be exported. |
File Name(s) | filename |
Input string |
|
Specify the name(s) for the exported PDF file(s). Options include:
Note:
|
Path | path |
Input string |
|
Specify the file path to save the exported PDF file(s). |
Overwrite Existing | overwrite |
Input int |
|
Specify the way to export PDF file when there is an existing file with the same name under the same path. Option list:
|
Image Settings | tr2 |
Input TreeNode |
|
Specify the properties of the exported PDF file. See more details in the Details for Dialog Settings of Description section. |
Print Settings | tr3 |
Input TreeNode |
|
Specify the print settings of the exported PDF file. See more details in the Details for Dialog Settings of Description section. |
This X-Function is used to export worksheet(s), including those contain images or embedded/linked graphs, to a multi-page PDF File.
Note:
|
Treenode | Label | Type | Default | Description |
---|---|---|---|---|
PDF Options | Input TreeNode | <unassigned> | This treenode is used to specify the export settings of the PDF file. See more details in the PDF Options Subtree table below. | |
MultiPage | Multiple Pages | Input TreeNode | <unassigned> | This treenode is used to specify the cover page and the pagination which is used when the exported PDF file includes more than one page. See more details in the Multiple Pages Subtree table below. |
Treenode | Label | Type | Default | Description |
---|---|---|---|---|
Basic Object | Input TreeNode | <unassigned> | Please refer to Basic Object of PDF. | |
Compressiontree | Data Compression | Input TreeNode | <unassigned> | Please refer to Compression of PDF. |
Fonts | Fonts | Input TreeNode | <unassigned> | Please refer to Fonts of PDF. |
Specify whether or not to add a cover page and page numbers on the exported PDF file.
Treenode | Label | Type | Default | Description |
---|---|---|---|---|
CoverPage | Cover Page | Input TreeNode | <unassigned> | This is only available when the check box to the right of Cover Page is checked. It specifies whether or not to add a cover page on the exported PDF file. By default, there is no cover page. Tree nodes in the this branch are listed below (In the bold texts below, the word before the colon is the name of the treenode, and after colon is the label of the treenode):
|
Pagination | Page Numbering | Input TreeNode | <unassigned> | This branch can be expanded only when the check box to the right of Page Numbering is checked. It specifies whether or not to add page numbers on the exported PDF file. By default, there is no page number added. Note that if the exported PDF file includes a cover page, the cover page will be regarded as the first page, but page number will not be displayed on it. Tree nodes in the this branch are listed below (In the bold texts below, the word before the colon is the name of the treenode, and after colon is the label of the treenode):
|
Treenode | Label | Type | Default | Description |
---|---|---|---|---|
UseOwn | Use Worksheet's Own Settings | Input int | 1 | Specify whether or not to use the worksheet's own settings (horizontal grids, row header settings etc.) to print the exported PDF file. If this is not selected, you can specify the options in the Worksheet Print Options branch. |
Check | Worksheet Print Options | Input TreeNode | <unassigned> | This is only available when Use Worksheet's Own Settings is unchecked. This treenode can be used to specify whether or not to print some worksheet elements. See more details in the Worksheet Print Options Subtree table below. |
Margin | Margin | Input TreeNode | <unassigned> | This is only available when the Use Worksheet's Own Settings is unchecked. This treenode can be used to specify the margins. Two units, mm and inch, are available for the margins. See more details in the Worksheet Print Options Subtree table below. |
Treenode | Label | Type | Default | Description |
---|---|---|---|---|
Chk_Horz_Grids | Horizontal Grids | Input int | 0 | Specify whether or not to print the horizontal grids of the PDF file. |
Chk_Vert_Grids | Vertical Grids | Input int | 0 | Specify whether or not to print the vertical grids of the PDF file. |
Chk_Row_Header | Row Header | Input int | 0 | Specify whether or not to print the row header of the PDF file. |
Chk_Col_Header | Column Header | Input int | 0 | Specify whether or not to print the column header of the PDF file. |
Chk_Page_Header | Page Header | Input int | 0 | Specify whether or not to print the page header of the PDF file. |
Chk_Page_Footer | Page Footer | Input int | 0 | Specify whether or not to print the page footer of the PDF file. |
Chk_BkColor | Background Color | Input int | 1 | Specify whether or not to print the background color of the PDF file. |
Chk_Frame | Frame | Input int | 1 | Specify whether or not to print the frame of the PDF file. |
Chk_EmptyCols | Empty Cols | Input int | 0 | Specify whether or not to print the empty columns in the PDF file. |
Chk_EmptyRows | Empty Rows | Input int | 0 | Specify whether or not to print the empty rows in the PDF file. |
Treenode | Label | Type | Default | Description |
---|---|---|---|---|
Left | Left | Input Double | 6.35 | Specify the left margin. |
Right | Right | Input Double | 6.35 | Specify the right margin. |
Top | Top | Input Double | 6.35 | Specify the top margin. |
Bottom | Bottom | Input Double | 6.35 | Specify the bottom margin. |
Keywords:publishing