Options
From PDF XChange PDF SDK
Line 1: | Line 1: | ||
[[Category:Editor]] | [[Category:Editor]] | ||
− | {{#customTitle: | + | {{#customTitle:Options}} |
− | {{#parentPage:PXV: | + | {{#parentPage:PXV:op_newBlankDoc}} |
{{ToWrite}} | {{ToWrite}} | ||
{{ToReview}} | {{ToReview}} | ||
− | == | + | == Options Table == |
− | + | ||
− | {| class="wikitable | + | {| class="wikitable op_options" |
− | ! style="width: | + | ! style="width:120pt;" | '''Name''' |
− | ! style="width:60pt;" | | + | ! style="width:60pt;" | '''Type''' |
− | ! | + | ! '''Value''' |
|- | |- | ||
− | | class="op_param_name" | | + | | class="op_param_name" | PaperType |
+ | | style="text-align:center" | Integer | ||
+ | | Specifies type of paper size that should be used for newly added pages. Possible values are: | ||
+ | {| class="op_internal_table" | ||
|- | |- | ||
− | | class=" | + | | class="op_enum_value" | '''0''' (Document) || use size of first page of the document; |
|- | |- | ||
− | | class=" | + | | class="op_enum_value" | '''1''' (Standard) || use standard page size specified by <code>StdPaperIndex</code> parameter; |
|- | |- | ||
− | | class=" | + | | class="op_enum_value" | '''2''' (Custom) || use page size specified by <code>Width</code>, and <code>Height</code> parameters. |
+ | |} | ||
+ | Default value: <tt>'''1''' (Standard)</tt> | ||
|- | |- | ||
− | | class="op_param_name" | | + | | class="op_param_name" | Landscape |
+ | | style="text-align:center" | Boolean | ||
+ | | Specifies orientation of the page. | ||
+ | |||
+ | Default value: <tt>'''false'''</tt> | ||
|- | |- | ||
− | | class="op_param_name" | | + | | class="op_param_name" | StdPaperIndex |
+ | | style="text-align:center" | Integer | ||
+ | | Specifies one of standard predefined page size. The list of possible values are shown in [[PXV:Params_NamedValues_StdPaperIdnex|the table]]. | ||
|- | |- | ||
− | | class="op_param_name" | | + | | class="op_param_name" | Width |
+ | | style="text-align:center" | Double | ||
+ | | Specifies width of new pages in pt (1 pt = 1/72 in). The value should be in range from 3 to 14400. This parameter is used when <code>PaperType</code> has value of <tt>'''2''' (Custom)</tt>. | ||
+ | |||
+ | Default value: '''595.28''' (equivalent of 210 mm). | ||
|- | |- | ||
− | | class="op_param_name" | | + | | class="op_param_name" | Height |
+ | | style="text-align:center" | Double | ||
+ | | Specifies height of new pages in pt (1 pt = 1/72 in). The value should be in range from 3 to 14400. This parameter is used when <code>PaperType</code> has value of <tt>'''2''' (Custom)</tt>. | ||
+ | |||
+ | Default value: '''841.89''' (equivalent of 297 mm). | ||
|- | |- | ||
− | | class="op_param_name" | | + | | class="op_param_name" | Count |
+ | | style="text-align:center" | Integer | ||
+ | | Specifies a number of new pages to be created. | ||
+ | |||
+ | Default value: '''1'''. | ||
|- | |- | ||
− | | class="op_param_name" | | + | | class="op_param_name" | Rotation |
+ | | style="text-align:center" | Integer | ||
+ | | Specifies rotation of newly added pages. The value must be an integer multiply of 90. | ||
+ | |||
+ | Default value: '''0'''. | ||
|- | |- | ||
− | | class="op_param_name" | | + | | class="op_param_name" | [[#Adv1|Adv1]] |
+ | | style="text-align:center" | Dictionary | ||
+ | | Приклад, як повинен представлятись dictionary в параметрах. Елементи dictionary описуються в додатковій таблиці нижче. Сам параметр є лінком на цю таблицю. У випадку якщо маємо масив dictionary, то цей dictionary описується так само в окремій таблиці | ||
|- | |- | ||
− | | class="op_param_name" | | + | | class="op_param_name" | [[PXV:cs_RectF|Margins]] |
− | | | + | | style="text-align:center" | Dictionary |
− | | | + | | Specifies margins. |
− | + | ||
− | + | The following default values of base [[PXV:cs_RectF|structure]] are overridden: | |
− | + | :<code>right</code>: <tt>'''0.0'''</tt>, | |
− | + | :<code>top</code>: <tt>'''0.0'''</tt>. | |
− | | | + | |} |
− | + | ||
− | + | == Adv1 Table == | |
− | | | + | {| class="wikitable op_options" id="Adv1" |
− | + | ! style="width:120pt;" | '''Name''' | |
− | + | ! style="width:60pt;" | '''Type''' | |
− | + | ! '''Value''' | |
− | + | ||
− | | | + | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | | class=" | + | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
|- | |- | ||
− | | class="op_param_name" | | + | | class="op_param_name" | PaperType |
+ | | style="text-align:center" | Integer | ||
+ | | Array of '''IUnknown'''-based objects. | ||
|} | |} | ||
− | |||
− |
Revision as of 01:54, 22 May 2015
Options Table
Name | Type | Value | ||||||
---|---|---|---|---|---|---|---|---|
PaperType | Integer | Specifies type of paper size that should be used for newly added pages. Possible values are:
Default value: 1 (Standard) | ||||||
Landscape | Boolean | Specifies orientation of the page.
Default value: false | ||||||
StdPaperIndex | Integer | Specifies one of standard predefined page size. The list of possible values are shown in the table. | ||||||
Width | Double | Specifies width of new pages in pt (1 pt = 1/72 in). The value should be in range from 3 to 14400. This parameter is used when PaperType has value of 2 (Custom).
Default value: 595.28 (equivalent of 210 mm). | ||||||
Height | Double | Specifies height of new pages in pt (1 pt = 1/72 in). The value should be in range from 3 to 14400. This parameter is used when PaperType has value of 2 (Custom).
Default value: 841.89 (equivalent of 297 mm). | ||||||
Count | Integer | Specifies a number of new pages to be created.
Default value: 1. | ||||||
Rotation | Integer | Specifies rotation of newly added pages. The value must be an integer multiply of 90.
Default value: 0. | ||||||
Adv1 | Dictionary | Приклад, як повинен представлятись dictionary в параметрах. Елементи dictionary описуються в додатковій таблиці нижче. Сам параметр є лінком на цю таблицю. У випадку якщо маємо масив dictionary, то цей dictionary описується так само в окремій таблиці | ||||||
Margins | Dictionary | Specifies margins.
The following default values of base structure are overridden:
|
Adv1 Table
Name | Type | Value |
---|---|---|
PaperType | Integer | Array of IUnknown-based objects. |