Options

From PDF XChange PDF SDK
Jump to: navigation, search
Line 107: Line 107:
 
| class="op_param_name" | [[#Indexed|Indexed]]
 
| class="op_param_name" | [[#Indexed|Indexed]]
 
| style="text-align:center" | Dictionary
 
| style="text-align:center" | Dictionary
| Specifies parameters for scaling images with indexed palete.
+
| Specifies parameters for scaling images with indexed palette.
 
|-
 
|-
 
| class="op_param_name" | [[#Mono|Mono]]
 
| class="op_param_name" | [[#Mono|Mono]]
Line 123: Line 123:
 
| class="op_param_name" | Method
 
| class="op_param_name" | Method
 
| style="text-align:center" | Integer
 
| style="text-align:center" | Integer
|  
+
| Specifies a method which will be used for downsampling fullcolor images.
 
+
 
Default value: <tt>'''3'''</tt>
 
Default value: <tt>'''3'''</tt>
 
|-
 
|-
Line 147: Line 146:
 
| class="op_param_name" | Method
 
| class="op_param_name" | Method
 
| style="text-align:center" | Integer
 
| style="text-align:center" | Integer
|  
+
| Specifies a method which will be used for downsampling grayscale images.
 
Default value: <tt>'''3'''</tt>
 
Default value: <tt>'''3'''</tt>
 
|-
 
|-
Line 170: Line 169:
 
| class="op_param_name" | Method
 
| class="op_param_name" | Method
 
| style="text-align:center" | Integer
 
| style="text-align:center" | Integer
|
+
| Specifies a method which will be used for downsampling images with indexed palette.
 
Default value: <tt>'''1'''</tt>
 
Default value: <tt>'''1'''</tt>
 
|-
 
|-
Line 193: Line 192:
 
| class="op_param_name" | Method
 
| class="op_param_name" | Method
 
| style="text-align:center" | Integer
 
| style="text-align:center" | Integer
|  
+
| Specifies a method which will be used for downsampling monochrome images (1bit color).
 
Default value: <tt>'''3'''</tt>
 
Default value: <tt>'''3'''</tt>
 
|-
 
|-
Line 224: Line 223:
 
| class="op_param_name" | [[#Indexed|Indexed]]
 
| class="op_param_name" | [[#Indexed|Indexed]]
 
| style="text-align:center" | Dictionary
 
| style="text-align:center" | Dictionary
| Specifies parameters for compressing images with indexed palete.
+
| Specifies parameters for compressing images with indexed palette.
 
|-
 
|-
 
| class="op_param_name" | [[#Mono|Mono]]
 
| class="op_param_name" | [[#Mono|Mono]]
Line 240: Line 239:
 
| class="op_param_name" | Method
 
| class="op_param_name" | Method
 
| style="text-align:center" | Integer
 
| style="text-align:center" | Integer
| Specifies method wich will be used for compressing fullcolor images.
+
| Specifies a method which will be used for compressing fullcolor images.
  
 
Valid values are:
 
Valid values are:
Line 289: Line 288:
 
| class="op_param_name" | Method
 
| class="op_param_name" | Method
 
| style="text-align:center" | Integer
 
| style="text-align:center" | Integer
| Specifies method wich will be used for compressing grayscale images.
+
| Specifies a method which will be used for compressing grayscale images.
  
 
Valid values are:
 
Valid values are:
Line 338: Line 337:
 
| class="op_param_name" | Method
 
| class="op_param_name" | Method
 
| style="text-align:center" | Integer
 
| style="text-align:center" | Integer
| Specifies method wich will be used for compressing images with indexed palete.
+
| Specifies a method which will be used for compressing images with indexed palette.
  
 
Valid values are:
 
Valid values are:
Line 362: Line 361:
 
| class="op_param_name" | Method
 
| class="op_param_name" | Method
 
| style="text-align:center" | Integer
 
| style="text-align:center" | Integer
| Specifies method wich will be used for compressing monochrome images.
+
| Specifies a method which will be used for compressing monochrome images.
  
 
Valid values are:
 
Valid values are:

Revision as of 07:00, 28 January 2016


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 palette.
Mono Dictionary Specifies parameters for scaling monochrome images (1bit color).

Color Table

Name Type Value
Method Integer Specifies a method which will be used for downsampling fullcolor images.

Default value: 3

To Integer Specifies...

Default value: 150

IfAbove Integer Specifies...

Default value: 225

Grayscale Table

Name Type Value
Method Integer Specifies a method which will be used for downsampling grayscale images.

Default value: 3

To Integer Specifies...

Default value: 150

IfAbove Integer Specifies...

Default value: 225

Indexed Table

Name Type Value
Method Integer Specifies a method which will be used for downsampling images with indexed palette.

Default value: 1

To Integer Specifies...

Default value: 150

IfAbove Integer Specifies...

Default value: 225

Mono Table

Name Type Value
Method Integer Specifies a method which will be used for downsampling monochrome images (1bit color).

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 palette.
Mono Dictionary Specifies parameters for compressing monochome images (1bit color).

Color Table

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

Valid values are:

0- Retain existing

1- JPEG2000

2- JPEG

3- ZIP

Default value: 2

JPEGQuality Integer Used if JPEG or JPEG2000 compression method selected.

Valid values are:

0= Minimum

1= Low

2= Medium

3= High

4= Maximum

5= Lossless (only for JPEG2000)

Default value: 2

JPEG2000Tile Integer Don't used yet.

Default value: 256

Grayscale Table

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

Valid values are:

0- Retain existing

1- JPEG2000

2- JPEG

3- ZIP

Default value: 2

JPEGQuality Integer Used if JPEG or JPEG2000 compression method selected.

Valid values are:

0= Minimum

1= Low

2= Medium

3= High

4= Maximum

5= Lossless (only for JPEG2000)

Default value: 2

JPEG2000Tile Integer Don't used yet.

Default value: 256

Indexed Table

Name Type Value
Method Integer Specifies a method which will be used for compressing images with indexed palette.

Valid values are:

0- Retain existing

1- ZIP

2- Run Length

3- LZW

Default value: 1

Mono Table

Name Type Value
Method Integer Specifies a method which 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 Don't used yet.

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