Options

From PDF XChange PDF SDK
Jump to: navigation, search
(Options Table)
(Options Table)
Line 71: Line 71:
 
| class="op_param_name" | ScalePage
 
| class="op_param_name" | ScalePage
 
| style="text-align:center" | Boolean
 
| style="text-align:center" | Boolean
| Specifies whether the content should be scaled with pages.
+
| Specifies whether the content should be scaled with pages. If this flag is specified, then all of the offsets are ignored.
 
Default value: <tt>'''false'''</tt>
 
Default value: <tt>'''false'''</tt>
 
|-
 
|-
 
| class="op_param_name" | ConstraintProportions
 
| class="op_param_name" | ConstraintProportions
 
| style="text-align:center" | Boolean
 
| style="text-align:center" | Boolean
| Specifies whether the content should constraint proportion when the page dimensions change.
+
| Specifies whether the content should constraint proportion when the page dimensions change. The ScalePage flag should be specified for this flag to work.
 
Default value: <tt>'''false'''</tt>
 
Default value: <tt>'''false'''</tt>
 
|-
 
|-

Revision as of 07:03, 7 November 2018


Options Table

Name Type Value
PaperType Integer Specifies the type of paper that would be used for page dimensions.

Possible values are:

1 (Standard) The page size value would be taken from the standard values table.
2 (Custom) The page size would be custom.

Default value: 1 (Standard)

StdPaperIndex Integer Specifies the index in the standard papers table.

The list of possible values are shown in the table.

Default value: 4 (A4)

Width Double Specifies the custom width of the page.

Default value: 595.276

Height Double Specifies the custom height of the page.

Default value: 841.89

Landscape Boolean Specifies whether the page should have portrait or landscape orientation.

Default value: false

HOffset Double Specifies the horizontal offset of the pages media box.

Default value: 0.0

VOffset Double Specifies the vertical offset of the pages media box.

Default value: 0.0

VOffsetFrom Integer Specifies where from the vertical offset would be taken.

The list of possible values are shown in the table.

Default value: 1 (Center)

HOffsetFrom Integer Specifies where from the horizontal offset would be taken.

The list of possible values are shown in the table.

Default value: 1 (Center)

ScalePage Boolean Specifies whether the content should be scaled with pages. If this flag is specified, then all of the offsets are ignored.

Default value: false

ConstraintProportions Boolean Specifies whether the content should constraint proportion when the page dimensions change. The ScalePage flag should be specified for this flag to work.

Default value: false

PagesRange Dictionary Specifies the pages range which the page resizing should be applied to.