# PdfStreamHandling

## Content

[**DsPdfJS API v9.1.3**](../README)

***

[DsPdfJS API](../globals) / PdfStreamHandling

# Enumeration: PdfStreamHandling

Defines how to process existing PDF streams in a loaded document.

## Enumeration Members

### Copy

> **Copy**: `0`

Copy the content of the original stream to the output as is without any changes.

***

### MinimizeSize

> **MinimizeSize**: `2`

Copy existing streams or re-compress them to achieve optimal (minimal) size.

***

### UseCompressionLevel

> **UseCompressionLevel**: `1`

Decompress existing PDF streams and re-compress them using PdfDocumentOptions.compressionLevel.
