Options

From PDF XChange PDF SDK
Revision as of 02:53, 28 January 2016 by Ivgen (Talk | contribs)

Jump to: navigation, search


Options Table

Name Type Value
Images Dictionary Specifies parameters for optimize images.
Fonts Dictionary Specifies parameters for optimize fonts.
Transparency Dictionary Don't used yet.
DiscardObjects Dictionary Specifies parameters for discard objects.
DiscardUserData Dictionary Specifies parameters for discard user`s data.
CleanUp Dictionary Specifies parameters for cleanup document.
VersionForSave Integer Specifies a PDF document`s version wich will be used for save.

For receive a valid value use conctruction

val = (DWORD)(((major) << 16) | ((minor) & 0xFFFF)

(for example version 1.7 = (DWORD)(((1) << 16) | ((7) & 0xFFFF))

If you want to leave current version set this parameter to 0.

Default value: 0

PresetID String Specifies...

Default value: Empty String

Progress IUnknown Specifies a object based on IProgressMon interface. This object realise progress bar for operation.
SubProgress Boolean Specifies whether the Progress is a top-level progress, or a part of another progress bar.

Default value: false

Images Table

Name Type Value
Enabled Boolean If Enabled == false then optimize will not be use for images.

Default value: true

ReducedOnly Boolean If ReducedOnly == true then optimize images only if there is reduction in size.

Default value: true

Scale Dictionary Specifies parameters for scaling images.
Comp Dictionary Specifies parameters for compressing images.

Scale Table

Name Type Value
Color Dictionary Specifies parameters for scaling fullcolor images.
Grayscale Dictionary Specifies parameters for scaling grayscale images.
Indexed Dictionary Specifies parameters for scaling images with indexed palete.
Mono Dictionary Specifies parameters for scaling monochrome images (1bit color).

Color Table

Name Type Value
Method Integer

Default value: 3

To Integer Specifies...

Default value: 150

IfAbove Integer Specifies...

Default value: 225

Grayscale Table

Name Type Value
Method Integer

Default value: 3

To Integer Specifies...

Default value: 150

IfAbove Integer Specifies...

Default value: 225

Indexed Table

Name Type Value
Method Integer

Default value: 1

To Integer Specifies...

Default value: 150

IfAbove Integer Specifies...

Default value: 225

Mono Table

Name Type Value
Method Integer

Default value: 3

To Integer Specifies...

Default value: 300

IfAbove Integer Specifies...

Default value: 450

Comp Table

Name Type Value
Color Dictionary Specifies parameters for compressing fullcolor images.
Grayscale Dictionary Specifies parameters for compressing grayscale images.
Indexed Dictionary Specifies parameters for compressing images with indexed palete.
Mono Dictionary Specifies parameters for compressing monochome images (1bit color).

Color Table

Name Type Value
Method Integer Specifies method wich will be used for compressing fullcolor images.

Valid values are:

0- Retain existing

1- JPEG2000

2- JPEG

3- ZIP

Default value: 2

JPEGQuality Integer Specifies...

Default value: 2

JPEG2000Tile Integer Specifies...

Default value: 256

Grayscale Table

Name Type Value
Method Integer Specifies method wich will be used for compressing grayscale images.

Valid values are:

0- Retain existing

1- JPEG2000

2- JPEG

3- ZIP

Default value: 2

JPEGQuality Integer Specifies...

Default value: 2

JPEG2000Tile Integer Specifies...

Default value: 256

Indexed Table

Name Type Value
Method Integer Specifies method wich will be used for compressing images with indexed palete.

Valid values are:

0- Retain existing

1- ZIP

2- Run Length

3- LZW

Default value: 1

Mono Table

Name Type Value
Method Integer Specifies method wich will be used for compressing monochrome images.

Valid values are:

0- Retain existing

1- JBIG2

2- CCIT Croup 3

3- CCIT Croup 4

4- ZIP

5- Run Length

Default value: 1

JBIG2Quality Integer Specifies...

Default value: 0

Fonts Table

Name Type Value
Enabled Boolean If Enabled == false then optimize will not be use for fonts.

Default value: true

NotUnembed Boolean Specifies...

Default value: false

SubsetAll Boolean Specifies...

Default value: true

MergeSubsets Boolean Specifies...

Default value: true

UnembedFonts Array Array of Dictionary

Specifies...

UnembedFonts Table

Name Type Value
FontObjNom Integer Specifies...

Default value: 0

FontName String Specifies...

Default value: Empty String

Transparency Table

Name Type Value
Enabled Boolean Specifies...

Default value: true

Quality Integer Specifies...

Default value: 2

LowTransLevel Integer Specifies...

Default value: 75

LowLineArtText Integer Specifies...

Default value: 288

LowGradientMeshes Integer Specifies...

Default value: 144

LowFlags Integer Specifies...

Default value: 10

MediumTransLevel Integer Specifies...

Default value: 75

MediumLineArtText Integer Specifies...

Default value: 300

MediumGradientMeshes Integer Specifies...

Default value: 150

MediumFlags Integer Specifies...

Default value: 14

HightTransLevel Integer Specifies...

Default value: 100

HightLineArtText Integer Specifies...

Default value: 1200

HightGradientMeshes Integer Specifies...

Default value: 300

HightFlags Integer Specifies...

Default value: 12

DiscardObjects Table

Name Type Value
Enabled Boolean Specifies...

Default value: true

Flags Integer Specifies...

Default value: 8

DiscardUserData Table

Name Type Value
Enabled Boolean Specifies...

Default value: true

Flags Integer Specifies...

Default value: 0

CleanUp Table

Name Type Value
Enabled Boolean Specifies...

Default value: true

CleanUpCompress Integer Specifies...

Default value: 0

Flags Integer Specifies...

Default value: 1007