# WebToPDFConvertParams Class

> On supported platforms, owns a WebToPDFParamsRec and bridges it to a pair of CWebProgressProc/CWebLogProc functors that the static C trampolines installed into the params dispatch through.

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

```java
class WebToPDFConvertParams
```

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

## Description

On supported platforms, owns a WebToPDFParamsRec and bridges it to a pair of CWebProgressProc/CWebLogProc functors that the static C trampolines installed into the params dispatch through.

On platforms where the WebToPDF plugin is not supported, the same class compiles with a stub state that mirrors the public set/get surface using primitive fields. The stub never throws from the constructor or any setter failures only surface from the `Document.from_web_url` / `from_html_file` entry points (in CDocument.cpp). This keeps configuration code platform-portable.

Public signatures use plain `int` where the underlying plugin enum would otherwise leak through; numeric values match the plugin enums and the public api `WebViewportPreset` / `WebPageSize` / ... 1:1, so callers cast freely at either boundary.

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

**Uses types:** [`WebToPDFConvertParams`](https://docs.datalogics.com/apdfl21/Java/APDFL21.0.0PlusP1c/class/WebToPDFConvertParams.md)

## Constructors

### WebToPDFConvertParams

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

*constructor*

### WebToPDFConvertParams

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

*constructor*

**Parameters**

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

## Methods

### delete

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

*protected*

**Parameters**

- `disposing` (`Boolean`)

**Returns:** `synchronized void`

### delete

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

**Returns:** `synchronized void`

### finalize

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

*protected*

**Returns:** `void`

### getCustomPageHeight

```java
double com.datalogics.PDFL.WebToPDFConvertParams.getCustomPageHeight()
```

**Returns:** `double`

### getCustomPageWidth

```java
double com.datalogics.PDFL.WebToPDFConvertParams.getCustomPageWidth()
```

**Returns:** `double`

### getCustomViewportHeight

```java
int com.datalogics.PDFL.WebToPDFConvertParams.getCustomViewportHeight()
```

**Returns:** `int`

### getCustomViewportWidth

```java
int com.datalogics.PDFL.WebToPDFConvertParams.getCustomViewportWidth()
```

**Returns:** `int`

### getDisplayHeaderFooter

```java
boolean com.datalogics.PDFL.WebToPDFConvertParams.getDisplayHeaderFooter()
```

**Returns:** `boolean`

### getDownsamplingDPI

```java
int com.datalogics.PDFL.WebToPDFConvertParams.getDownsamplingDPI()
```

**Returns:** `int`

### getEnableVerboseLogging

```java
boolean com.datalogics.PDFL.WebToPDFConvertParams.getEnableVerboseLogging()
```

**Returns:** `boolean`

### getGenerateTaggedPDF

```java
boolean com.datalogics.PDFL.WebToPDFConvertParams.getGenerateTaggedPDF()
```

**Returns:** `boolean`

### getImageCompression

```java
int com.datalogics.PDFL.WebToPDFConvertParams.getImageCompression()
```

**Returns:** `int`

### getMarginBottom

```java
double com.datalogics.PDFL.WebToPDFConvertParams.getMarginBottom()
```

**Returns:** `double`

### getMarginLeft

```java
double com.datalogics.PDFL.WebToPDFConvertParams.getMarginLeft()
```

**Returns:** `double`

### getMarginRight

```java
double com.datalogics.PDFL.WebToPDFConvertParams.getMarginRight()
```

**Returns:** `double`

### getMarginTop

```java
double com.datalogics.PDFL.WebToPDFConvertParams.getMarginTop()
```

**Returns:** `double`

### getPageOrientation

```java
int com.datalogics.PDFL.WebToPDFConvertParams.getPageOrientation()
```

**Returns:** `int`

### getPageSize

```java
int com.datalogics.PDFL.WebToPDFConvertParams.getPageSize()
```

**Returns:** `int`

### getPreferCSSPageSize

```java
boolean com.datalogics.PDFL.WebToPDFConvertParams.getPreferCSSPageSize()
```

**Returns:** `boolean`

### getPrintBackground

```java
boolean com.datalogics.PDFL.WebToPDFConvertParams.getPrintBackground()
```

**Returns:** `boolean`

### getScale

```java
double com.datalogics.PDFL.WebToPDFConvertParams.getScale()
```

**Returns:** `double`

### getTimeoutSeconds

```java
int com.datalogics.PDFL.WebToPDFConvertParams.getTimeoutSeconds()
```

**Returns:** `int`

### getViewportSize

```java
int com.datalogics.PDFL.WebToPDFConvertParams.getViewportSize()
```

**Returns:** `int`

### setCustomPageSize

```java
void com.datalogics.PDFL.WebToPDFConvertParams.setCustomPageSize(double width_pts, double height_pts)
```

**Parameters**

- `width_pts` (`double`)
- `height_pts` (`double`)

**Returns:** `void`

### setCustomViewport

```java
void com.datalogics.PDFL.WebToPDFConvertParams.setCustomViewport(int width, int height)
```

**Parameters**

- `width` (`int`)
- `height` (`int`)

**Returns:** `void`

### setDisplayHeaderFooter

```java
void com.datalogics.PDFL.WebToPDFConvertParams.setDisplayHeaderFooter(boolean v)
```

**Parameters**

- `v` (`boolean`)

**Returns:** `void`

### setDownsamplingDPI

```java
void com.datalogics.PDFL.WebToPDFConvertParams.setDownsamplingDPI(int v)
```

**Parameters**

- `v` (`int`)

**Returns:** `void`

### setEnableVerboseLogging

```java
void com.datalogics.PDFL.WebToPDFConvertParams.setEnableVerboseLogging(boolean v)
```

**Parameters**

- `v` (`boolean`)

**Returns:** `void`

### setGenerateTaggedPDF

```java
void com.datalogics.PDFL.WebToPDFConvertParams.setGenerateTaggedPDF(boolean v)
```

**Parameters**

- `v` (`boolean`)

**Returns:** `void`

### setImageCompression

```java
void com.datalogics.PDFL.WebToPDFConvertParams.setImageCompression(int v)
```

**Parameters**

- `v` (`int`)

**Returns:** `void`

### setMargins

```java
void com.datalogics.PDFL.WebToPDFConvertParams.setMargins(double top, double right, double bottom, double left)
```

**Parameters**

- `top` (`double`)
- `right` (`double`)
- `bottom` (`double`)
- `left` (`double`)

**Returns:** `void`

### setPageOrientation

```java
void com.datalogics.PDFL.WebToPDFConvertParams.setPageOrientation(int v)
```

**Parameters**

- `v` (`int`)

**Returns:** `void`

### setPageSize

```java
void com.datalogics.PDFL.WebToPDFConvertParams.setPageSize(int v)
```

**Parameters**

- `v` (`int`)

**Returns:** `void`

### setPreferCSSPageSize

```java
void com.datalogics.PDFL.WebToPDFConvertParams.setPreferCSSPageSize(boolean v)
```

**Parameters**

- `v` (`boolean`)

**Returns:** `void`

### setPrintBackground

```java
void com.datalogics.PDFL.WebToPDFConvertParams.setPrintBackground(boolean v)
```

**Parameters**

- `v` (`boolean`)

**Returns:** `void`

### setScale

```java
void com.datalogics.PDFL.WebToPDFConvertParams.setScale(double v)
```

**Parameters**

- `v` (`double`)

**Returns:** `void`

### setTimeoutSeconds

```java
void com.datalogics.PDFL.WebToPDFConvertParams.setTimeoutSeconds(int v)
```

**Parameters**

- `v` (`int`)

**Returns:** `void`

### setViewportSize

```java
void com.datalogics.PDFL.WebToPDFConvertParams.setViewportSize(int v)
```

**Parameters**

- `v` (`int`)

**Returns:** `void`
