---
layout: default-layout
title: class CPDFReadingParameter - Dynamsoft Core Module C++ Edition API Reference
description: API reference for the CPDFReadingParameter class in Dynamsoft Core C++ Edition, configuring PDF reading mode, DPI, and raster data source for PDF processing.
keywords: pdf reading parameter, c++
needAutoGenerateSidebar: true
---

# CPDFReadingParameter

The `CPDFReadingParameter` class represents the parameters for reading a PDF file. It contains the mode of PDF reading, the DPI (dots per inch) value, and the raster data source type.

## Definition

*Namespace:* dynamsoft::basic_structures

*Assembly:* DynamsoftCore

```cpp
class CPDFReadingParameter 
```

## Attributes Summary
  
| Attribute | Type |
|---------- | ---- |
| [`mode`](#mode) | *PDFReadingMode* |
| [`dpi`](#dpi) | *int* |
| [`rasterDataSource`](#rasterdatasource) | *RasterDataSource* |

### mode

The mode of PDF reading. Defaults to `PDFRM_MULTIMODAL`.

```cpp
PDFReadingMode mode
```

**See Also**

[PDFReadingMode]({{ site.dcvb_cpp_api }}core/enum-pdf-reading-mode.html?src=cpp&&lang=cpp)

### dpi

The DPI (dots per inch) value.

```cpp
int dpi
```

### rasterDataSource

The raster data source type.

```cpp
RasterDataSource rasterDataSource
```

**See Also**

[RasterDataSource]({{ site.dcvb_cpp_api }}core/enum-raster-data-source.html?src=cpp&&lang=cpp)

