Skip to main content

Compress

This activity compresses a PDF file provided as a memory stream by applying the specified compression quality and optimization options.

Core Functions

  • Reads the input PDF from a memory stream
  • Applies compression based on the selected quality level
  • Optimizes embedded images and resources
  • Optionally applies eBook-style compression settings
  • Generates a new compressed PDF as a memory stream

Inputs

  • PdfMemoryStream: Represents the source PDF file in memory stream format to be compressed
    Type: MemoryStream

  • CompressQuality: Defines the compression level to be applied to the PDF file
    Type: Integer / Enum

  • Ebook: Specifies whether to apply eBook-optimized compression settings
    Type: Boolean

Outputs

  • Output: The compressed PDF file as a memory stream
    Type: MemoryStream

Short Technical Summary

Compresses a PDF provided as a memory stream using the specified quality level and optional eBook optimization, and returns the compressed PDF as a new memory stream.