Options

From PDF XChange PDF SDK
Revision as of 07:29, 14 March 2016 by Jeka (Talk | contribs)

Jump to: navigation, search


Options Table

Name Type Value
NewDoc Dictionary Specifies the parameters for the new document that would be created if DocID parameter of the TargetDoc dictionary is not valid.
NewPage Dictionary Specifies the parameters for creating new pages.
TargetDoc Dictionary Specifies the target document where the text documents would be inserted.
Cols Integer Specifies the number of the columns on the document page where the text will be inserted.

Default value: 1

ColsGap Double Specifies the gap between the columns on the document page where the text will be inserted.

Default value: 20.0

DrawColsSep Boolean Specifies whether the separator line will be drawn between columns of text. If count of columns will be 1, this parameter will be ignored

Default value: false

ColsSep Dictionary Specifies the column separator line parameters
Font Dictionary Specifies the font parameters of the displayed text
Para Dictionary Specifies the paragraph parameters of the displayed text.
DrawLabels Boolean Specifies whether the text label will be drawn at the beginning of each converted text file

Default value: false

Labels Dictionary Specifies the parameters for the text labels that would be drawn for the inserted text labels.

NewDoc Table

Name Type Value
PDFSpec Integer Specifies...

Default value: -1

PDFStandard Integer Specifies...

Default value: 0

AdobeExtLevel Integer Specifies...

Default value: 0

NewPage Table

Name Type Value
PaperType Integer Specifies how the size of the new page will be chosen.

Possible values are:

0 (Document) If the page is inserted at the beginning of the document, it's size will be copied from the first page of the document. Otherwise it will be the same as the size of the page before the inserted one. This value is invalid if the page is inserted into the new document.
1 (Standard) The size of the new page is defined by the StdPaperIndex and Landscape fields values.
2 (Custom) The size of the new page is defined by the Width, Height and Landscape fields values.
3 (BySource) The size of the new page is defined by the sizes of the inserted

Default value: 1 (Standard)

StdPaperIndex Integer If the value of the PaperType field is 1 (Standard), this field specifies the size of the new page.

The list of possible values are shown in the table.

Default value: 4 (A4)

Landscape Boolean If the value of the PaperType field is 1 (Standard) or 2 (Custom), this field specifies whether the orientation of the new page is the landscape.

Default value: false

Width Double If the value of the PaperType field is 2 (Custom), this field specifies the width of the new page in points (1/72 inch).

Default value: 595.276

Height Double If the value of the PaperType field is 2 (Custom), this field specifies the height of the new page in points (1/72 inch).

Default value: 841.89

Margins Dictionary Specifies the margins of the new page

The following default values of base structure are overridden :

top: 28.3,
bottom: 28.3,
left: 28.3,
right: 28.3
Rotation Integer Specifies the rotation of the new page in degrees. This value should be divisible by 90.

Default value: 0

TargetDoc Table

Name Type Value
DocID Integer Specifies...

Default value: 0

Location Integer Specifies...

Possible values are:

0 (Before) ...
1 (After) ...

Default value: 1 (After)

Position Integer Specifies...

Default value: -1

ColsSep Table

Name Type Value
Width Double Specifies...

Default value: 1.0

Style Integer Specifies...

Default value: 0

Color String Specifies...

Default value: rgbd(0,0,0)

Labels Table

Name Type Value
DrawLine Boolean Specifies...

Default value: false

LineAbove Boolean Specifies...

Default value: false

Line Dictionary Specifies...
Para Dictionary Specifies the paragraph parameters of the label.
Font Dictionary Specifies the font parameters of the label.
Text String Specifies the text of the label.

Default value: Empty String

BackColor String Specifies the background color of the label.

Default value: N

Line Table

Name Type Value
Width Double Specifies the thickness of the line

Default value: 1.0

Style Integer Specifies the style of the line

Possible values are:

0 (Solid) Specifies ...
1 (Dashed, 2 white, 2 black) Specifies ...
2 (Dashed, 3 white, 3 black) Specifies ...
3 (Dashed, 4 white, 4 black) Specifies ...
4 (Dashed, 4-3-2-3) Specifies ...
5 (Dashed, 4-3-16-3) Specifies ...
6 (Dashed, 8-4-4-4) Specifies ...

Default value: 0

Color String Specifies the color of the line.

Default value: rgbd(0,0,0)