# PrintParams Class

> Print settings, primarily used for PostScript printers or output.

- Product: Adobe PDF Library 21
- Language: Java
- Version: APDFL21.0.0PlusP1e
- HTML page: https://docs.datalogics.com/apdfl21/Java/APDFL21.0.0PlusP1e/class/PrintParams
- Version index: https://docs.datalogics.com/apdfl21/Java/APDFL21.0.0PlusP1e/llms.txt

```java
class PrintParams
```

**Namespace:** `com::datalogics::PDFL`

## Description

Print settings, primarily used for PostScript printers or output.

**Referenced by:** [`PrintUserParams`](https://docs.datalogics.com/apdfl21/Java/APDFL21.0.0PlusP1e/class/PrintUserParams.md)

**Uses types:** [`OptionalContentContext`](https://docs.datalogics.com/apdfl21/Java/APDFL21.0.0PlusP1e/class/OptionalContentContext.md), [`PageRange`](https://docs.datalogics.com/apdfl21/Java/APDFL21.0.0PlusP1e/class/PageRange.md), [`Rect`](https://docs.datalogics.com/apdfl21/Java/APDFL21.0.0PlusP1e/class/Rect.md)

## Constructors

### PrintParams

```java
com.datalogics.PDFL.PrintParams.PrintParams()
```

*constructor*

## Methods

### delete

```java
synchronized void com.datalogics.PDFL.PrintParams.delete(Boolean disposing)
```

*protected*

**Parameters**

- `disposing` (`Boolean`)

**Returns:** `synchronized void`

### delete

```java
synchronized void com.datalogics.PDFL.PrintParams.delete()
```

**Returns:** `synchronized void`

### finalize

```java
void com.datalogics.PDFL.PrintParams.finalize()
```

*protected*

**Returns:** `void`

### getApplyOCGPrintOverrides

```java
boolean com.datalogics.PDFL.PrintParams.getApplyOCGPrintOverrides()
```

**Returns:** `boolean`

When true, apply print-specific visibility state settings from the optional-content group.

### getBinaryOK

```java
boolean com.datalogics.PDFL.PrintParams.getBinaryOK()
```

**Returns:** `boolean`

true if binary data is permitted in the PostScript file, false otherwise. It is overridden by the printer's "Output Protocol" device settings. The default value is true.

### getBitmapResolution

```java
long com.datalogics.PDFL.PrintParams.getBitmapResolution()
```

**Returns:** `long`

DPI for bitmaps. The default is 300. This will only work when you set useFullResolutionJP2KData to false; it should not be less than 50.

### getBoundingBox

```java
Rect com.datalogics.PDFL.PrintParams.getBoundingBox()
```

**Returns:** [`Rect`](https://docs.datalogics.com/apdfl21/Java/APDFL21.0.0PlusP1e/class/Rect.md)

### getBrokenCRDs

```java
boolean com.datalogics.PDFL.PrintParams.getBrokenCRDs()
```

**Returns:** `boolean`

If true, do not set rendering intent in PostScript stream due to broken non-default CRDs. This is not honored anymore: its value is always false.

### getCenterCropBox

```java
boolean com.datalogics.PDFL.PrintParams.getCenterCropBox()
```

**Returns:** `boolean`

true if CropBox output is centered on the page when the CropBox < MediaBox, false otherwise. The default value is true.

### getDisableFlattening

```java
boolean com.datalogics.PDFL.PrintParams.getDisableFlattening()
```

**Returns:** `boolean`

Disable flattening of the PDF file; transparency data will be ignored. Also note the preprocessor define below.

### getDoOPP

```java
boolean com.datalogics.PDFL.PrintParams.getDoOPP()
```

**Returns:** `boolean`

Do the overprint preview operation.

### getDoProofing

```java
boolean com.datalogics.PDFL.PrintParams.getDoProofing()
```

**Returns:** `boolean`

When true, print using proofing settings.

### getDoTiling

```java
PageTilingMode com.datalogics.PDFL.PrintParams.getDoTiling()
```

**Returns:** `PageTilingMode`

Determines whether to tile none, all, or only large pages.

### getDuplex

```java
Duplex com.datalogics.PDFL.PrintParams.getDuplex()
```

**Returns:** `Duplex`

Sets the duplex mode if the device supports duplex printing. The default value is kPDDuplexOff.

### getEmitBG

```java
boolean com.datalogics.PDFL.PrintParams.getEmitBG()
```

**Returns:** `boolean`

Emit black generation. The default is true.

### getEmitColorSeps

```java
boolean com.datalogics.PDFL.PrintParams.getEmitColorSeps()
```

**Returns:** `boolean`

Emit images for Level-1 separations. The default value is false. This will be honored only when printing to a printer.

### getEmitDeviceExtGState

```java
boolean com.datalogics.PDFL.PrintParams.getEmitDeviceExtGState()
```

**Returns:** `boolean`

When emitting the extended graphics state, if this flag is true, include the device-dependent parameters (overprint, black generation, undercolor removal, transfer, halftone, halftone phase, smoothness, flatness, rendering intent) in addition to the device-independent parameters (font, line width, line cap, line join, miter limit, dash pattern). If this flag is false, only the device-independent parameters will be emitted. This flag overrides emitHalftones; if this is false, then halftones are not emitted. The default is true.

### getEmitFlatness

```java
boolean com.datalogics.PDFL.PrintParams.getEmitFlatness()
```

**Returns:** `boolean`

Honors the flatness settings over gstate flatness.

### getEmitHalftones

```java
boolean com.datalogics.PDFL.PrintParams.getEmitHalftones()
```

**Returns:** `boolean`

Preserve any halftone screening in the PDF file. The default value is false.

### getEmitInRipSeps

```java
boolean com.datalogics.PDFL.PrintParams.getEmitInRipSeps()
```

**Returns:** `boolean`

When true, it requests that separations, one sheet per ink, be generated in the RIP (printer).

### getEmitPS

```java
boolean com.datalogics.PDFL.PrintParams.getEmitPS()
```

**Returns:** `boolean`

If true, emit a PostScript file. The default value is true.

### getEmitPageClip

```java
boolean com.datalogics.PDFL.PrintParams.getEmitPageClip()
```

**Returns:** `boolean`

Emit page clip. The default is true.

### getEmitPageRotation

```java
boolean com.datalogics.PDFL.PrintParams.getEmitPageRotation()
```

**Returns:** `boolean`

Emit a concat at the beginning of each page so that the page is properly rotated. Used when emitting EPS. The default value is false.

### getEmitRawData

```java
boolean com.datalogics.PDFL.PrintParams.getEmitRawData()
```

**Returns:** `boolean`

true if adding no unnecessary filters when emitting image data, false otherwise. The default value is false.

### getEmitSeparableImagesOnly

```java
boolean com.datalogics.PDFL.PrintParams.getEmitSeparableImagesOnly()
```

**Returns:** `boolean`

If emitting EPS, include only CMYK and gray images.

### getEmitTTFontsFirst

```java
boolean com.datalogics.PDFL.PrintParams.getEmitTTFontsFirst()
```

**Returns:** `boolean`

Emit TrueType fonts before any other fonts. The default value is false.

### getEmitTransfer

```java
boolean com.datalogics.PDFL.PrintParams.getEmitTransfer()
```

**Returns:** `boolean`

Emit transfer. The default is true.

### getEmitUCR

```java
boolean com.datalogics.PDFL.PrintParams.getEmitUCR()
```

**Returns:** `boolean`

Emit undercolor removal. The default is true.

### getExpandToFit

```java
boolean com.datalogics.PDFL.PrintParams.getExpandToFit()
```

**Returns:** `boolean`

true if small pages are to be scaled up to fit the printer page size, false, otherwise. It overrides the scale. The default value is true.

### getFarEastFontOpt

```java
FarEastFont com.datalogics.PDFL.PrintParams.getFarEastFontOpt()
```

**Returns:** `FarEastFont`

GDI to PS or download CJK fonts PDPDFarEastFont_Print_As_Image will not be honored.

### getFlattenInfoExternalDPI

```java
float com.datalogics.PDFL.PrintParams.getFlattenInfoExternalDPI()
```

**Returns:** `float`

Get the resolution for flattening the edges of atomic regions.

ExternalDPI for flattening defaults to 144 (72x2).

### getGradientResolution

```java
long com.datalogics.PDFL.PrintParams.getGradientResolution()
```

**Returns:** `long`

DPI for gradients interior to the object (not edges). It can generally be lower than the bitmapResolution. The default is 150.

### getHostBasedCM

```java
boolean com.datalogics.PDFL.PrintParams.getHostBasedCM()
```

**Returns:** `boolean`

Do hostBased color management using the destination profile. The default is false, which means doing CSA generation for profiles instead of converting all colors on the host.

### getIncBaseFonts

```java
Inclusion com.datalogics.PDFL.PrintParams.getIncBaseFonts()
```

**Returns:** `Inclusion`

Embed the base fonts. The default value is kIncludeOncePerDoc.

### getIncCIDFonts

```java
Inclusion com.datalogics.PDFL.PrintParams.getIncCIDFonts()
```

**Returns:** `Inclusion`

Embed CID fonts. The default value is kIncludeNever.

### getIncEmbeddedFonts

```java
Inclusion com.datalogics.PDFL.PrintParams.getIncEmbeddedFonts()
```

**Returns:** `Inclusion`

Embed fonts that are embedded in the PDF file. This overrides the incType1Fonts, incTrueTypeFonts, and incCIDFonts fields. The default value is kIncludeWhenNeeded.

### getIncOtherResources

```java
Inclusion com.datalogics.PDFL.PrintParams.getIncOtherResources()
```

**Returns:** `Inclusion`

Include all other types of resources in the file. The default value is kIncludeByRange.

### getIncProcsets

```java
Inclusion com.datalogics.PDFL.PrintParams.getIncProcsets()
```

**Returns:** `Inclusion`

Include Procsets in the file. The default value is kIncludeOncePerDoc. This is not honored anymore: its value is always false. Procsets are always emitted at the document level.

### getIncTrueTypeFonts

```java
Inclusion com.datalogics.PDFL.PrintParams.getIncTrueTypeFonts()
```

**Returns:** `Inclusion`

Embed TrueType fonts. The default value is kIncludeNever.

### getIncType1Fonts

```java
Inclusion com.datalogics.PDFL.PrintParams.getIncType1Fonts()
```

**Returns:** `Inclusion`

Embed Type 1 fonts. The default value is kIncludeNever.

### getInkBlack

```java
boolean com.datalogics.PDFL.PrintParams.getInkBlack()
```

**Returns:** `boolean`

Proofing settings: simulate ink black.

### getLastHeight

```java
int com.datalogics.PDFL.PrintParams.getLastHeight()
```

**Returns:** `int`

Used when setPageSize is true to prevent unneeded setpagedevice calls.

### getLastWidth

```java
int com.datalogics.PDFL.PrintParams.getLastWidth()
```

**Returns:** `int`

Used when setPageSize is true to prevent unneeded setpagedevice calls.

### getLineWidth

```java
float com.datalogics.PDFL.PrintParams.getLineWidth()
```

**Returns:** `float`

The line weight to use for printer marks.

### getMacQDPrinter

```java
boolean com.datalogics.PDFL.PrintParams.getMacQDPrinter()
```

**Returns:** `boolean`

true if the printer is a Mac QuickDraw printer, false otherwise.

### getMarkStyle

```java
int com.datalogics.PDFL.PrintParams.getMarkStyle()
```

**Returns:** `int`

Specify the style to use for page marks. The PDPrintMarkStyles enum contains possible styles. It applies to print separations.

### getMirrorprint

```java
int com.datalogics.PDFL.PrintParams.getMirrorprint()
```

**Returns:** `int`

One of the following constants: kPDPrintFlipNone = 0x01 kPDPrintFlipX = 0x02 kPDPrintFlipY = 0x04 kPDPrintFlipXY = 0x08

Mirroring is done in the PostScript output stream.

### getNegative

```java
boolean com.datalogics.PDFL.PrintParams.getNegative()
```

**Returns:** `boolean`

When true, invert the plate.

### getNumCollatedCopies

```java
long com.datalogics.PDFL.PrintParams.getNumCollatedCopies()
```

**Returns:** `long`

Enables collation for the viewer.

### getOptimizeForSpeed

```java
boolean com.datalogics.PDFL.PrintParams.getOptimizeForSpeed()
```

**Returns:** `boolean`

If true, do it fast; false means PostScript code must be page-independent. If it is set to true, font downloads are forced from kIncludeOnEveryPage to kIncludeOncePerDoc. The default is true.

### getOptionalContentContext

```java
OptionalContentContext com.datalogics.PDFL.PrintParams.getOptionalContentContext()
```

**Returns:** [`OptionalContentContext`](https://docs.datalogics.com/apdfl21/Java/APDFL21.0.0PlusP1e/class/OptionalContentContext.md)

An optional-content context that determines what contents are visible. null uses the document's optional-content context.

This context is copied and the copy is used in drawing. This allows a client to change its copy of the context without raising an exception.

### getOutputType

```java
OutputType com.datalogics.PDFL.PrintParams.getOutputType()
```

**Returns:** `OutputType`

Print PostScript or EPS with or without a preview. EPS preview generation is not available on UNIX.

### getPageRanges

```java
java.util.List< PageRange > com.datalogics.PDFL.PrintParams.getPageRanges()
```

**Returns:** [`java.util.List< PageRange >`](https://docs.datalogics.com/apdfl21/Java/APDFL21.0.0PlusP1e/class/PageRange.md)

ranges of pages to print.

Get the page ranges for printing.

### getPaperWhite

```java
boolean com.datalogics.PDFL.PrintParams.getPaperWhite()
```

**Returns:** `boolean`

Proofing settings: simulate paper white.

### getPrintWhat

```java
PrintWhat com.datalogics.PDFL.PrintParams.getPrintWhat()
```

**Returns:** `PrintWhat`

Print the document, the document and comments, or document form fields only.

### getPrintWhatAnnot

```java
java.util.EnumSet< PrintWhatAnnotFlags > com.datalogics.PDFL.PrintParams.getPrintWhatAnnot()
```

**Returns:** `java.util.EnumSet< PrintWhatAnnotFlags >`

Annotation flags which modify PDPrintWhat to enable Pro product behavior.

### getPsLevel

```java
int com.datalogics.PDFL.PrintParams.getPsLevel()
```

**Returns:** `int`

PostScript level: 1, 2, or 3. The default value is 3.

### getReverse

```java
boolean com.datalogics.PDFL.PrintParams.getReverse()
```

**Returns:** `boolean`

If set to true, reverse the order of page output.

### getRotate

```java
boolean com.datalogics.PDFL.PrintParams.getRotate()
```

**Returns:** `boolean`

Enable the auto-rotating behavior from past versions of PDFL.

### getRotateAndCenter

```java
boolean com.datalogics.PDFL.PrintParams.getRotateAndCenter()
```

**Returns:** `boolean`

true if the page is to be rotated to fit the printer's orientation and centered in the printer's page size; false, otherwise. The default value is true. Rotation and centering (true) only occur, however, if the page contents are too wide to fit on a narrow page (or vice versa) and the page contents are less than an inch smaller than the target page in one direction.

### getSaveVM

```java
boolean com.datalogics.PDFL.PrintParams.getSaveVM()
```

**Returns:** `boolean`

true means try to save VM when printing to PostScript. The default is true.

### getScale

```java
float com.datalogics.PDFL.PrintParams.getScale()
```

**Returns:** `float`

The document-wide scale factor. 100.0 = full size. The default value is 100.

### getSetPageSize

```java
boolean com.datalogics.PDFL.PrintParams.getSetPageSize()
```

**Returns:** `boolean`

(PostScript level 2 only) Set the page size on each page. Use the media box for outputting to PostScript files, use the crop box for EPS files. Default is false.

### getShrinkToFit

```java
boolean com.datalogics.PDFL.PrintParams.getShrinkToFit()
```

**Returns:** `boolean`

true if the page is scaled to fit the printer page size, false, otherwise. This field overrides the scale. The default value is true.

### getSuppressCJKSubstitution

```java
boolean com.datalogics.PDFL.PrintParams.getSuppressCJKSubstitution()
```

**Returns:** `boolean`

If true, do not do CJK substitution on the printer. This will work only when farEastFontOpt is PDPDFarEastFont_Download_None.

### getSuppressCSA

```java
boolean com.datalogics.PDFL.PrintParams.getSuppressCSA()
```

**Returns:** `boolean`

Do not emit CSAs for 4-component (CMYK) colors. This will take precedence over the hostbasedCM settings.

### getSuppressOPPWhenNoSpots

```java
int com.datalogics.PDFL.PrintParams.getSuppressOPPWhenNoSpots()
```

**Returns:** `int`

When true, suppress OPP for pages that do not contain spot colors

### getTTasCIDT2

```java
boolean com.datalogics.PDFL.PrintParams.getTTasCIDT2()
```

**Returns:** `boolean`

When this is set, emit TrueType fonts as CIDType2 instead of as CIDFontType0.

### getTTasT42

```java
boolean com.datalogics.PDFL.PrintParams.getTTasT42()
```

**Returns:** `boolean`

If including TrueType fonts, convert to Type 42 fonts instead of Type 1 fonts. The default value is false.

### getTransparencyQuality

```java
long com.datalogics.PDFL.PrintParams.getTransparencyQuality()
```

**Returns:** `long`

The transparency flattening quality. The range is 0-100. Lower values flatten faster. Higher values provide better quality. The default is 80, which usually provides good quality at a reasonable speed.

### getTrapType

```java
int com.datalogics.PDFL.PrintParams.getTrapType()
```

**Returns:** `int`

The trap type. kPDPrintTrapNone = 0x01 kPDPrintTrapOnHost = 0x02 is NOT SUPPORTED in Acrobat 7 kPDPrintTrapInRIP = 0x04

### getUseExecForm

```java
boolean com.datalogics.PDFL.PrintParams.getUseExecForm()
```

**Returns:** `boolean`

When true, emit execform calls when emitting Form XObjects.

### getUseFontAliasNames

```java
boolean com.datalogics.PDFL.PrintParams.getUseFontAliasNames()
```

**Returns:** `boolean`

Used when printing with system fonts. The default value is false.

### getUseFullResolutionJP2KData

```java
boolean com.datalogics.PDFL.PrintParams.getUseFullResolutionJP2KData()
```

**Returns:** `boolean`

Determines whether to use the maximum available JPEG2000 resolution.

### getUseMaxVM

```java
boolean com.datalogics.PDFL.PrintParams.getUseMaxVM()
```

**Returns:** `boolean`

If true, store all possible resources in VM.

### getUseSubFileDecode

```java
boolean com.datalogics.PDFL.PrintParams.getUseSubFileDecode()
```

**Returns:** `boolean`

Add SubFileDecode filter to work around stream problems [false]. The SubFileDecode filter will always be emitted when you print as binary.

### getWesternMarksStyle

```java
boolean com.datalogics.PDFL.PrintParams.getWesternMarksStyle()
```

**Returns:** `boolean`

When true, use western style for page marks. It applies to print separations. Obsoleted by markStyle below.

### getWhichMarks

```java
java.util.EnumSet< PageMarkFlags > com.datalogics.PDFL.PrintParams.getWhichMarks()
```

**Returns:** `java.util.EnumSet< PageMarkFlags >`

Page mark indication. It is a bit-wise OR of the PDPageMarkFlags values.

It applies to print separations.

### setApplyOCGPrintOverrides

```java
void com.datalogics.PDFL.PrintParams.setApplyOCGPrintOverrides(boolean value)
```

**Parameters**

- `value` (`boolean`)

**Returns:** `void`

When true, apply print-specific visibility state settings from the optional-content group.

### setBinaryOK

```java
void com.datalogics.PDFL.PrintParams.setBinaryOK(boolean value)
```

**Parameters**

- `value` (`boolean`)

**Returns:** `void`

true if binary data is permitted in the PostScript file, false otherwise. It is overridden by the printer's "Output Protocol" device settings. The default value is true.

### setBitmapResolution

```java
void com.datalogics.PDFL.PrintParams.setBitmapResolution(long value)
```

**Parameters**

- `value` (`long`)

**Returns:** `void`

DPI for bitmaps. The default is 300. This will only work when you set useFullResolutionJP2KData to false; it should not be less than 50.

### setBoundingBox

```java
void com.datalogics.PDFL.PrintParams.setBoundingBox(Rect box)
```

**Parameters**

- `box` ([`Rect`](https://docs.datalogics.com/apdfl21/Java/APDFL21.0.0PlusP1e/class/Rect.md)): the bounding box

**Returns:** `void`

### setBrokenCRDs

```java
void com.datalogics.PDFL.PrintParams.setBrokenCRDs(boolean value)
```

**Parameters**

- `value` (`boolean`)

**Returns:** `void`

If true, do not set rendering intent in PostScript stream due to broken non-default CRDs. This is not honored anymore: its value is always false.

### setCenterCropBox

```java
void com.datalogics.PDFL.PrintParams.setCenterCropBox(boolean value)
```

**Parameters**

- `value` (`boolean`)

**Returns:** `void`

true if CropBox output is centered on the page when the CropBox < MediaBox, false otherwise. The default value is true.

### setDisableFlattening

```java
void com.datalogics.PDFL.PrintParams.setDisableFlattening(boolean value)
```

**Parameters**

- `value` (`boolean`)

**Returns:** `void`

Disable flattening of the PDF file; transparency data will be ignored. Also note the preprocessor define below.

### setDoOPP

```java
void com.datalogics.PDFL.PrintParams.setDoOPP(boolean value)
```

**Parameters**

- `value` (`boolean`)

**Returns:** `void`

Do the overprint preview operation.

### setDoProofing

```java
void com.datalogics.PDFL.PrintParams.setDoProofing(boolean value)
```

**Parameters**

- `value` (`boolean`)

**Returns:** `void`

When true, print using proofing settings.

### setDoTiling

```java
void com.datalogics.PDFL.PrintParams.setDoTiling(PageTilingMode value)
```

**Parameters**

- `value` (`PageTilingMode`)

**Returns:** `void`

Determines whether to tile none, all, or only large pages.

### setDuplex

```java
void com.datalogics.PDFL.PrintParams.setDuplex(Duplex value)
```

**Parameters**

- `value` (`Duplex`)

**Returns:** `void`

Sets the duplex mode if the device supports duplex printing. The default value is kPDDuplexOff.

### setEmitBG

```java
void com.datalogics.PDFL.PrintParams.setEmitBG(boolean value)
```

**Parameters**

- `value` (`boolean`)

**Returns:** `void`

Emit black generation. The default is true.

### setEmitColorSeps

```java
void com.datalogics.PDFL.PrintParams.setEmitColorSeps(boolean value)
```

**Parameters**

- `value` (`boolean`)

**Returns:** `void`

Emit images for Level-1 separations. The default value is false. This will be honored only when printing to a printer.

### setEmitDeviceExtGState

```java
void com.datalogics.PDFL.PrintParams.setEmitDeviceExtGState(boolean value)
```

**Parameters**

- `value` (`boolean`)

**Returns:** `void`

When emitting the extended graphics state, if this flag is true, include the device-dependent parameters (overprint, black generation, undercolor removal, transfer, halftone, halftone phase, smoothness, flatness, rendering intent) in addition to the device-independent parameters (font, line width, line cap, line join, miter limit, dash pattern). If this flag is false, only the device-independent parameters will be emitted. This flag overrides emitHalftones; if this is false, then halftones are not emitted. The default is true.

### setEmitFlatness

```java
void com.datalogics.PDFL.PrintParams.setEmitFlatness(boolean value)
```

**Parameters**

- `value` (`boolean`)

**Returns:** `void`

Honors the flatness settings over gstate flatness.

### setEmitHalftones

```java
void com.datalogics.PDFL.PrintParams.setEmitHalftones(boolean value)
```

**Parameters**

- `value` (`boolean`)

**Returns:** `void`

Preserve any halftone screening in the PDF file. The default value is false.

### setEmitInRipSeps

```java
void com.datalogics.PDFL.PrintParams.setEmitInRipSeps(boolean value)
```

**Parameters**

- `value` (`boolean`)

**Returns:** `void`

When true, it requests that separations, one sheet per ink, be generated in the RIP (printer).

### setEmitPS

```java
void com.datalogics.PDFL.PrintParams.setEmitPS(boolean value)
```

**Parameters**

- `value` (`boolean`)

**Returns:** `void`

If true, emit a PostScript file. The default value is true.

### setEmitPageClip

```java
void com.datalogics.PDFL.PrintParams.setEmitPageClip(boolean value)
```

**Parameters**

- `value` (`boolean`)

**Returns:** `void`

Emit page clip. The default is true.

### setEmitPageRotation

```java
void com.datalogics.PDFL.PrintParams.setEmitPageRotation(boolean value)
```

**Parameters**

- `value` (`boolean`)

**Returns:** `void`

Emit a concat at the beginning of each page so that the page is properly rotated. Used when emitting EPS. The default value is false.

### setEmitRawData

```java
void com.datalogics.PDFL.PrintParams.setEmitRawData(boolean value)
```

**Parameters**

- `value` (`boolean`)

**Returns:** `void`

true if adding no unnecessary filters when emitting image data, false otherwise. The default value is false.

### setEmitSeparableImagesOnly

```java
void com.datalogics.PDFL.PrintParams.setEmitSeparableImagesOnly(boolean value)
```

**Parameters**

- `value` (`boolean`)

**Returns:** `void`

If emitting EPS, include only CMYK and gray images.

### setEmitTTFontsFirst

```java
void com.datalogics.PDFL.PrintParams.setEmitTTFontsFirst(boolean value)
```

**Parameters**

- `value` (`boolean`)

**Returns:** `void`

Emit TrueType fonts before any other fonts. The default value is false.

### setEmitTransfer

```java
void com.datalogics.PDFL.PrintParams.setEmitTransfer(boolean value)
```

**Parameters**

- `value` (`boolean`)

**Returns:** `void`

Emit transfer. The default is true.

### setEmitUCR

```java
void com.datalogics.PDFL.PrintParams.setEmitUCR(boolean value)
```

**Parameters**

- `value` (`boolean`)

**Returns:** `void`

Emit undercolor removal. The default is true.

### setExpandToFit

```java
void com.datalogics.PDFL.PrintParams.setExpandToFit(boolean value)
```

**Parameters**

- `value` (`boolean`)

**Returns:** `void`

true if small pages are to be scaled up to fit the printer page size, false, otherwise. It overrides the scale. The default value is true.

### setFarEastFontOpt

```java
void com.datalogics.PDFL.PrintParams.setFarEastFontOpt(FarEastFont value)
```

**Parameters**

- `value` (`FarEastFont`)

**Returns:** `void`

GDI to PS or download CJK fonts PDPDFarEastFont_Print_As_Image will not be honored.

### setFlattenInfoExternalDPI

```java
void com.datalogics.PDFL.PrintParams.setFlattenInfoExternalDPI(float externalDPI)
```

**Parameters**

- `externalDPI` (`float`): the resolution for flattening the edges of atomic regions

**Returns:** `void`

Set the resolution for flattening the edges of atomic regions.

ExternalDPI for flattening defaults to 144 (72x2).

### setGradientResolution

```java
void com.datalogics.PDFL.PrintParams.setGradientResolution(long value)
```

**Parameters**

- `value` (`long`)

**Returns:** `void`

DPI for gradients interior to the object (not edges). It can generally be lower than the bitmapResolution. The default is 150.

### setHostBasedCM

```java
void com.datalogics.PDFL.PrintParams.setHostBasedCM(boolean value)
```

**Parameters**

- `value` (`boolean`)

**Returns:** `void`

Do hostBased color management using the destination profile. The default is false, which means doing CSA generation for profiles instead of converting all colors on the host.

### setIncBaseFonts

```java
void com.datalogics.PDFL.PrintParams.setIncBaseFonts(Inclusion value)
```

**Parameters**

- `value` (`Inclusion`)

**Returns:** `void`

Embed the base fonts. The default value is kIncludeOncePerDoc.

### setIncCIDFonts

```java
void com.datalogics.PDFL.PrintParams.setIncCIDFonts(Inclusion value)
```

**Parameters**

- `value` (`Inclusion`)

**Returns:** `void`

Embed CID fonts. The default value is kIncludeNever.

### setIncEmbeddedFonts

```java
void com.datalogics.PDFL.PrintParams.setIncEmbeddedFonts(Inclusion value)
```

**Parameters**

- `value` (`Inclusion`)

**Returns:** `void`

Embed fonts that are embedded in the PDF file. This overrides the incType1Fonts, incTrueTypeFonts, and incCIDFonts fields. The default value is kIncludeWhenNeeded.

### setIncOtherResources

```java
void com.datalogics.PDFL.PrintParams.setIncOtherResources(Inclusion value)
```

**Parameters**

- `value` (`Inclusion`)

**Returns:** `void`

Include all other types of resources in the file. The default value is kIncludeByRange.

### setIncProcsets

```java
void com.datalogics.PDFL.PrintParams.setIncProcsets(Inclusion value)
```

**Parameters**

- `value` (`Inclusion`)

**Returns:** `void`

Include Procsets in the file. The default value is kIncludeOncePerDoc. This is not honored anymore: its value is always false. Procsets are always emitted at the document level.

### setIncTrueTypeFonts

```java
void com.datalogics.PDFL.PrintParams.setIncTrueTypeFonts(Inclusion value)
```

**Parameters**

- `value` (`Inclusion`)

**Returns:** `void`

Embed TrueType fonts. The default value is kIncludeNever.

### setIncType1Fonts

```java
void com.datalogics.PDFL.PrintParams.setIncType1Fonts(Inclusion value)
```

**Parameters**

- `value` (`Inclusion`)

**Returns:** `void`

Embed Type 1 fonts. The default value is kIncludeNever.

### setInkBlack

```java
void com.datalogics.PDFL.PrintParams.setInkBlack(boolean value)
```

**Parameters**

- `value` (`boolean`)

**Returns:** `void`

Proofing settings: simulate ink black.

### setLastHeight

```java
void com.datalogics.PDFL.PrintParams.setLastHeight(int value)
```

**Parameters**

- `value` (`int`)

**Returns:** `void`

Used when setPageSize is true to prevent unneeded setpagedevice calls.

### setLastWidth

```java
void com.datalogics.PDFL.PrintParams.setLastWidth(int value)
```

**Parameters**

- `value` (`int`)

**Returns:** `void`

Used when setPageSize is true to prevent unneeded setpagedevice calls.

### setLineWidth

```java
void com.datalogics.PDFL.PrintParams.setLineWidth(float value)
```

**Parameters**

- `value` (`float`)

**Returns:** `void`

The line weight to use for printer marks.

### setMacQDPrinter

```java
void com.datalogics.PDFL.PrintParams.setMacQDPrinter(boolean value)
```

**Parameters**

- `value` (`boolean`)

**Returns:** `void`

true if the printer is a Mac QuickDraw printer, false otherwise.

### setMarkStyle

```java
void com.datalogics.PDFL.PrintParams.setMarkStyle(int value)
```

**Parameters**

- `value` (`int`)

**Returns:** `void`

Specify the style to use for page marks. The PDPrintMarkStyles enum contains possible styles. It applies to print separations.

### setMirrorprint

```java
void com.datalogics.PDFL.PrintParams.setMirrorprint(int value)
```

**Parameters**

- `value` (`int`)

**Returns:** `void`

One of the following constants: kPDPrintFlipNone = 0x01 kPDPrintFlipX = 0x02 kPDPrintFlipY = 0x04 kPDPrintFlipXY = 0x08

Mirroring is done in the PostScript output stream.

### setNegative

```java
void com.datalogics.PDFL.PrintParams.setNegative(boolean value)
```

**Parameters**

- `value` (`boolean`)

**Returns:** `void`

When true, invert the plate.

### setNumCollatedCopies

```java
void com.datalogics.PDFL.PrintParams.setNumCollatedCopies(long value)
```

**Parameters**

- `value` (`long`)

**Returns:** `void`

Enables collation for the viewer.

### setOptimizeForSpeed

```java
void com.datalogics.PDFL.PrintParams.setOptimizeForSpeed(boolean value)
```

**Parameters**

- `value` (`boolean`)

**Returns:** `void`

If true, do it fast; false means PostScript code must be page-independent. If it is set to true, font downloads are forced from kIncludeOnEveryPage to kIncludeOncePerDoc. The default is true.

### setOptionalContentContext

```java
void com.datalogics.PDFL.PrintParams.setOptionalContentContext(OptionalContentContext context)
```

**Parameters**

- `context` ([`OptionalContentContext`](https://docs.datalogics.com/apdfl21/Java/APDFL21.0.0PlusP1e/class/OptionalContentContext.md)): an optional-content context that determines what contents are visible. null uses the document's optional-content context

**Returns:** `void`

An optional-content context that determines what contents are visible. null uses the document's optional-content context.

This context is copied and the copy is used in drawing. This allows a client to change its copy of the context without raising an exception.

### setOutputType

```java
void com.datalogics.PDFL.PrintParams.setOutputType(OutputType value)
```

**Parameters**

- `value` (`OutputType`)

**Returns:** `void`

Print PostScript or EPS with or without a preview. EPS preview generation is not available on UNIX.

### setPageRanges

```java
void com.datalogics.PDFL.PrintParams.setPageRanges(java.util.List< PageRange > argPageRanges)
```

**Parameters**

- `argPageRanges` ([`java.util.List< PageRange >`](https://docs.datalogics.com/apdfl21/Java/APDFL21.0.0PlusP1e/class/PageRange.md)): the ranges of pages to print

**Returns:** `void`

Set the ranges of pages to print.

These ranges of pages have a priority over startPage, endPage fields defined in PrintUserParams. Note: If print dialog has been called the pageRanges fields will be overridden by the values obtained from printing dialog.

### setPaperWhite

```java
void com.datalogics.PDFL.PrintParams.setPaperWhite(boolean value)
```

**Parameters**

- `value` (`boolean`)

**Returns:** `void`

Proofing settings: simulate paper white.

### setPrintWhat

```java
void com.datalogics.PDFL.PrintParams.setPrintWhat(PrintWhat value)
```

**Parameters**

- `value` (`PrintWhat`)

**Returns:** `void`

Print the document, the document and comments, or document form fields only.

### setPrintWhatAnnot

```java
void com.datalogics.PDFL.PrintParams.setPrintWhatAnnot(java.util.EnumSet< PrintWhatAnnotFlags > value)
```

**Parameters**

- `value` (`java.util.EnumSet< PrintWhatAnnotFlags >`)

**Returns:** `void`

Annotation flags which modify PDPrintWhat to enable Pro product behavior.

### setPsLevel

```java
void com.datalogics.PDFL.PrintParams.setPsLevel(int value)
```

**Parameters**

- `value` (`int`)

**Returns:** `void`

PostScript level: 1, 2, or 3. The default value is 3.

### setReverse

```java
void com.datalogics.PDFL.PrintParams.setReverse(boolean value)
```

**Parameters**

- `value` (`boolean`)

**Returns:** `void`

If set to true, reverse the order of page output.

### setRotate

```java
void com.datalogics.PDFL.PrintParams.setRotate(boolean value)
```

**Parameters**

- `value` (`boolean`)

**Returns:** `void`

Enable the auto-rotating behavior from past versions of PDFL.

### setRotateAndCenter

```java
void com.datalogics.PDFL.PrintParams.setRotateAndCenter(boolean value)
```

**Parameters**

- `value` (`boolean`)

**Returns:** `void`

true if the page is to be rotated to fit the printer's orientation and centered in the printer's page size; false, otherwise. The default value is true. Rotation and centering (true) only occur, however, if the page contents are too wide to fit on a narrow page (or vice versa) and the page contents are less than an inch smaller than the target page in one direction.

### setSaveVM

```java
void com.datalogics.PDFL.PrintParams.setSaveVM(boolean value)
```

**Parameters**

- `value` (`boolean`)

**Returns:** `void`

true means try to save VM when printing to PostScript. The default is true.

### setScale

```java
void com.datalogics.PDFL.PrintParams.setScale(float value)
```

**Parameters**

- `value` (`float`)

**Returns:** `void`

The document-wide scale factor. 100.0 = full size. The default value is 100.

### setSetPageSize

```java
void com.datalogics.PDFL.PrintParams.setSetPageSize(boolean value)
```

**Parameters**

- `value` (`boolean`)

**Returns:** `void`

(PostScript level 2 only) Set the page size on each page. Use the media box for outputting to PostScript files, use the crop box for EPS files. Default is false.

### setShrinkToFit

```java
void com.datalogics.PDFL.PrintParams.setShrinkToFit(boolean value)
```

**Parameters**

- `value` (`boolean`)

**Returns:** `void`

true if the page is scaled to fit the printer page size, false, otherwise. This field overrides the scale. The default value is true.

### setSuppressCJKSubstitution

```java
void com.datalogics.PDFL.PrintParams.setSuppressCJKSubstitution(boolean value)
```

**Parameters**

- `value` (`boolean`)

**Returns:** `void`

If true, do not do CJK substitution on the printer. This will work only when farEastFontOpt is PDPDFarEastFont_Download_None.

### setSuppressCSA

```java
void com.datalogics.PDFL.PrintParams.setSuppressCSA(boolean value)
```

**Parameters**

- `value` (`boolean`)

**Returns:** `void`

Do not emit CSAs for 4-component (CMYK) colors. This will take precedence over the hostbasedCM settings.

### setSuppressOPPWhenNoSpots

```java
void com.datalogics.PDFL.PrintParams.setSuppressOPPWhenNoSpots(int value)
```

**Parameters**

- `value` (`int`)

**Returns:** `void`

When true, suppress OPP for pages that do not contain spot colors

### setTTasCIDT2

```java
void com.datalogics.PDFL.PrintParams.setTTasCIDT2(boolean value)
```

**Parameters**

- `value` (`boolean`)

**Returns:** `void`

When this is set, emit TrueType fonts as CIDType2 instead of as CIDFontType0.

### setTTasT42

```java
void com.datalogics.PDFL.PrintParams.setTTasT42(boolean value)
```

**Parameters**

- `value` (`boolean`)

**Returns:** `void`

If including TrueType fonts, convert to Type 42 fonts instead of Type 1 fonts. The default value is false.

### setTransparencyQuality

```java
void com.datalogics.PDFL.PrintParams.setTransparencyQuality(long value)
```

**Parameters**

- `value` (`long`)

**Returns:** `void`

The transparency flattening quality. The range is 0-100. Lower values flatten faster. Higher values provide better quality. The default is 80, which usually provides good quality at a reasonable speed.

### setTrapType

```java
void com.datalogics.PDFL.PrintParams.setTrapType(int value)
```

**Parameters**

- `value` (`int`)

**Returns:** `void`

The trap type. kPDPrintTrapNone = 0x01 kPDPrintTrapOnHost = 0x02 is NOT SUPPORTED in Acrobat 7 kPDPrintTrapInRIP = 0x04

### setUseExecForm

```java
void com.datalogics.PDFL.PrintParams.setUseExecForm(boolean value)
```

**Parameters**

- `value` (`boolean`)

**Returns:** `void`

When true, emit execform calls when emitting Form XObjects.

### setUseFontAliasNames

```java
void com.datalogics.PDFL.PrintParams.setUseFontAliasNames(boolean value)
```

**Parameters**

- `value` (`boolean`)

**Returns:** `void`

Used when printing with system fonts. The default value is false.

### setUseFullResolutionJP2KData

```java
void com.datalogics.PDFL.PrintParams.setUseFullResolutionJP2KData(boolean value)
```

**Parameters**

- `value` (`boolean`)

**Returns:** `void`

Determines whether to use the maximum available JPEG2000 resolution.

### setUseMaxVM

```java
void com.datalogics.PDFL.PrintParams.setUseMaxVM(boolean value)
```

**Parameters**

- `value` (`boolean`)

**Returns:** `void`

If true, store all possible resources in VM.

### setUseSubFileDecode

```java
void com.datalogics.PDFL.PrintParams.setUseSubFileDecode(boolean value)
```

**Parameters**

- `value` (`boolean`)

**Returns:** `void`

Add SubFileDecode filter to work around stream problems [false]. The SubFileDecode filter will always be emitted when you print as binary.

### setWesternMarksStyle

```java
void com.datalogics.PDFL.PrintParams.setWesternMarksStyle(boolean value)
```

**Parameters**

- `value` (`boolean`)

**Returns:** `void`

When true, use western style for page marks. It applies to print separations. Obsoleted by markStyle below.

### setWhichMarks

```java
void com.datalogics.PDFL.PrintParams.setWhichMarks(java.util.EnumSet< PageMarkFlags > value)
```

**Parameters**

- `value` (`java.util.EnumSet< PageMarkFlags >`)

**Returns:** `void`

Page mark indication. It is a bit-wise OR of the PDPageMarkFlags values.

It applies to print separations.
