# 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: .NET
- Version: APDFL21.0.0PlusP1c
- HTML page: https://docs.datalogics.com/apdfl21/DotNet/APDFL21.0.0PlusP1c/class/WebToPDFConvertParams
- Version index: https://docs.datalogics.com/apdfl21/DotNet/APDFL21.0.0PlusP1c/llms.txt

```csharp
class WebToPDFConvertParams : SystemIDisposable
```

**Namespace:** `Datalogics::PDFL`

**Inherits from:** `SystemIDisposable`

## 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 theDocument.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 apiWebViewportPreset /`WebPageSize` / ... 1:1, so callers cast freely at either boundary.

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

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

## Constructors

### WebToPDFConvertParams

```csharp
Datalogics.PDFL.WebToPDFConvertParams.WebToPDFConvertParams()
```

*constructor*

### WebToPDFConvertParams

```csharp
Datalogics.PDFL.WebToPDFConvertParams.WebToPDFConvertParams(WebToPDFConvertParams other)
```

*constructor*

**Parameters**

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

## Properties

### CustomPageHeight

```csharp
double Datalogics.PDFL.WebToPDFConvertParams.CustomPageHeight { get; }
```

### CustomPageWidth

```csharp
double Datalogics.PDFL.WebToPDFConvertParams.CustomPageWidth { get; }
```

### CustomViewportHeight

```csharp
int Datalogics.PDFL.WebToPDFConvertParams.CustomViewportHeight { get; }
```

### CustomViewportWidth

```csharp
int Datalogics.PDFL.WebToPDFConvertParams.CustomViewportWidth { get; }
```

### DisplayHeaderFooter

```csharp
bool Datalogics.PDFL.WebToPDFConvertParams.DisplayHeaderFooter { get; set; }
```

### DownsamplingDPI

```csharp
int Datalogics.PDFL.WebToPDFConvertParams.DownsamplingDPI { get; set; }
```

### EnableVerboseLogging

```csharp
bool Datalogics.PDFL.WebToPDFConvertParams.EnableVerboseLogging { get; set; }
```

### GenerateTaggedPDF

```csharp
bool Datalogics.PDFL.WebToPDFConvertParams.GenerateTaggedPDF { get; set; }
```

### ImageCompression

```csharp
int Datalogics.PDFL.WebToPDFConvertParams.ImageCompression { get; set; }
```

### MarginBottom

```csharp
double Datalogics.PDFL.WebToPDFConvertParams.MarginBottom { get; }
```

### MarginLeft

```csharp
double Datalogics.PDFL.WebToPDFConvertParams.MarginLeft { get; }
```

### MarginRight

```csharp
double Datalogics.PDFL.WebToPDFConvertParams.MarginRight { get; }
```

### MarginTop

```csharp
double Datalogics.PDFL.WebToPDFConvertParams.MarginTop { get; }
```

### PageOrientation

```csharp
int Datalogics.PDFL.WebToPDFConvertParams.PageOrientation { get; set; }
```

### PageSize

```csharp
int Datalogics.PDFL.WebToPDFConvertParams.PageSize { get; set; }
```

### PreferCSSPageSize

```csharp
bool Datalogics.PDFL.WebToPDFConvertParams.PreferCSSPageSize { get; set; }
```

### PrintBackground

```csharp
bool Datalogics.PDFL.WebToPDFConvertParams.PrintBackground { get; set; }
```

### Scale

```csharp
double Datalogics.PDFL.WebToPDFConvertParams.Scale { get; set; }
```

### TimeoutSeconds

```csharp
int Datalogics.PDFL.WebToPDFConvertParams.TimeoutSeconds { get; set; }
```

### ViewportSize

```csharp
int Datalogics.PDFL.WebToPDFConvertParams.ViewportSize { get; set; }
```

## Methods

### Dispose

```csharp
void Datalogics.PDFL.WebToPDFConvertParams.Dispose()
```

**Returns:** `void`

### SetCustomPageSize

```csharp
void Datalogics.PDFL.WebToPDFConvertParams.SetCustomPageSize(double width_pts, double height_pts)
```

**Parameters**

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

**Returns:** `void`

### SetCustomViewport

```csharp
void Datalogics.PDFL.WebToPDFConvertParams.SetCustomViewport(int width, int height)
```

**Parameters**

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

**Returns:** `void`

### SetMargins

```csharp
void Datalogics.PDFL.WebToPDFConvertParams.SetMargins(double top, double right, double bottom, double left)
```

**Parameters**

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

**Returns:** `void`
