# OfficeToPDFConvertParams Class

> The settings for one Office-to-PDF conversion: the instant stamped as the PDF's creation date and used for the document's DATE and TIME fields (the system clock unless one is set), and how the document's Word comments appear (left out…

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

```java
class OfficeToPDFConvertParams
```

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

## Description

The settings for one Office-to-PDF conversion: the instant stamped as the PDF's creation date and used for the document's DATE and TIME fields (the system clock unless one is set), and how the document's Word comments appear (left out unless set). One object serves any number of conversions, and building or setting one never throws, on any platform.

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

**Uses types:** [`OfficeCommentRendering`](https://docs.datalogics.com/apdfl21/Java/APDFL21.0.0PlusP1f/enum/OfficeCommentRendering.md)

## Constructors

### OfficeToPDFConvertParams

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

*constructor*

### OfficeToPDFConvertParams

```java
com.datalogics.PDFL.OfficeToPDFConvertParams.OfficeToPDFConvertParams(OfficeToPDFConvertParams other)
```

*constructor*

**Parameters**

- `other` ([`OfficeToPDFConvertParams`](https://docs.datalogics.com/apdfl21/Java/APDFL21.0.0PlusP1f/class/OfficeToPDFConvertParams.md))

## Methods

### clearConversionTime

```java
void com.datalogics.PDFL.OfficeToPDFConvertParams.clearConversionTime()
```

**Returns:** `void`

Go back to the system clock, the default.

### delete

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

*protected*

**Parameters**

- `disposing` (`Boolean`)

**Returns:** `synchronized void`

### delete

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

**Returns:** `synchronized void`

### finalize

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

*protected*

**Returns:** `void`

### getComments

```java
OfficeCommentRendering com.datalogics.PDFL.OfficeToPDFConvertParams.getComments()
```

**Returns:** [`OfficeCommentRendering`](https://docs.datalogics.com/apdfl21/Java/APDFL21.0.0PlusP1f/enum/OfficeCommentRendering.md)

### getConversionDay

```java
int com.datalogics.PDFL.OfficeToPDFConvertParams.getConversionDay()
```

**Returns:** `int`

0 when no time is set.

### getConversionHour

```java
int com.datalogics.PDFL.OfficeToPDFConvertParams.getConversionHour()
```

**Returns:** `int`

0 when no time is set.

### getConversionMinute

```java
int com.datalogics.PDFL.OfficeToPDFConvertParams.getConversionMinute()
```

**Returns:** `int`

0 when no time is set.

### getConversionMonth

```java
int com.datalogics.PDFL.OfficeToPDFConvertParams.getConversionMonth()
```

**Returns:** `int`

0 when no time is set.

### getConversionSecond

```java
int com.datalogics.PDFL.OfficeToPDFConvertParams.getConversionSecond()
```

**Returns:** `int`

0 when no time is set.

### getConversionYear

```java
int com.datalogics.PDFL.OfficeToPDFConvertParams.getConversionYear()
```

**Returns:** `int`

0 when no time is set.

### hasConversionTime

```java
boolean com.datalogics.PDFL.OfficeToPDFConvertParams.hasConversionTime()
```

**Returns:** `boolean`

### setComments

```java
void com.datalogics.PDFL.OfficeToPDFConvertParams.setComments(OfficeCommentRendering mode)
```

**Parameters**

- `mode` ([`OfficeCommentRendering`](https://docs.datalogics.com/apdfl21/Java/APDFL21.0.0PlusP1f/enum/OfficeCommentRendering.md))

**Returns:** `void`

How the document's Word comments appear.The default is Omit.

### setConversionTime

```java
void com.datalogics.PDFL.OfficeToPDFConvertParams.setConversionTime(int year, int month, int day, int hour, int minute, int second)
```

**Parameters**

- `year` (`int`)
- `month` (`int`)
- `day` (`int`)
- `hour` (`int`)
- `minute` (`int`)
- `second` (`int`)

**Returns:** `void`

Use this instant, with no time zone, in place of the system clock.
