PdfOptions

Inheritance: java.lang.Object, com.groupdocs.conversion.contracts.ValueObject

All Implemented Interfaces: java.io.Serializable

public final class PdfOptions extends ValueObject implements Serializable

Options for conversion to Pdf file type.

Constructors

Constructor Description
PdfOptions() ctor

Methods

Method Description
getPdfFormat() Sets the pdf format of the converted document.
setPdfFormat(PdfFormats value) Sets the pdf format of the converted document.
getRemovePdfACompliance() Removes Pdf-A Compliance
setRemovePdfACompliance(boolean value) Removes Pdf-A Compliance
getZoom() Specifies the zoom level in percentage.
setZoom(int value) Specifies the zoom level in percentage.
getLinearize() Linearizes PDF Document for the Web
setLinearize(boolean value) Linearizes PDF Document for the Web
getOptimizationOptions() Pdf optimization options
setOptimizationOptions(PdfOptimizationOptions value) Pdf optimization options
getGrayscale() Convert a PDF from RGB colorspace to grayscale
setGrayscale(boolean value) Convert a PDF from RGB colorspace to grayscale
getFormattingOptions() Pdf formatting options
setFormattingOptions(PdfFormattingOptions value) Pdf formatting options
getDocumentInfo() Meta information of PDF document.
setDocumentInfo(PdfDocumentInfo documentInfo)

PdfOptions()

public PdfOptions()

ctor

getPdfFormat()

public final PdfFormats getPdfFormat()

Sets the pdf format of the converted document.

Returns: PdfFormats

setPdfFormat(PdfFormats value)

public final void setPdfFormat(PdfFormats value)

Sets the pdf format of the converted document.

Parameters:

Parameter Type Description
value PdfFormats

getRemovePdfACompliance()

public final boolean getRemovePdfACompliance()

Removes Pdf-A Compliance

Returns: boolean

setRemovePdfACompliance(boolean value)

public final void setRemovePdfACompliance(boolean value)

Removes Pdf-A Compliance

Parameters:

Parameter Type Description
value boolean

getZoom()

public final int getZoom()

Specifies the zoom level in percentage. Default is 100.

Returns: int

setZoom(int value)

public final void setZoom(int value)

Specifies the zoom level in percentage. Default is 100.

Parameters:

Parameter Type Description
value int

getLinearize()

public final boolean getLinearize()

Linearizes PDF Document for the Web

Returns: boolean

setLinearize(boolean value)

public final void setLinearize(boolean value)

Linearizes PDF Document for the Web

Parameters:

Parameter Type Description
value boolean

getOptimizationOptions()

public final PdfOptimizationOptions getOptimizationOptions()

Pdf optimization options

Returns: PdfOptimizationOptions

setOptimizationOptions(PdfOptimizationOptions value)

public final void setOptimizationOptions(PdfOptimizationOptions value)

Pdf optimization options

Parameters:

Parameter Type Description
value PdfOptimizationOptions

getGrayscale()

public final boolean getGrayscale()

Convert a PDF from RGB colorspace to grayscale

Returns: boolean

setGrayscale(boolean value)

public final void setGrayscale(boolean value)

Convert a PDF from RGB colorspace to grayscale

Parameters:

Parameter Type Description
value boolean

getFormattingOptions()

public final PdfFormattingOptions getFormattingOptions()

Pdf formatting options

Returns: PdfFormattingOptions

setFormattingOptions(PdfFormattingOptions value)

public final void setFormattingOptions(PdfFormattingOptions value)

Pdf formatting options

Parameters:

Parameter Type Description
value PdfFormattingOptions

getDocumentInfo()

public PdfDocumentInfo getDocumentInfo()

Meta information of PDF document.

Returns: PdfDocumentInfo

setDocumentInfo(PdfDocumentInfo documentInfo)

public void setDocumentInfo(PdfDocumentInfo documentInfo)

Parameters:

Parameter Type Description
documentInfo PdfDocumentInfo