Skip to main content

pdf_engine/
thumbnail.rs

1//! Thumbnail generation options.
2
3// Copyright (c) 2026 Innovation Trigger B.V.
4//
5// PDFluent is available under two licences, at your option: the GNU AGPLv3, or
6// the PDFluent Commercial Licence. See the LICENSE file in this repository --
7// that file travels with the copy you received, which a URL does not.
8
9/// Options for thumbnail generation.
10#[derive(Debug, Clone)]
11pub struct ThumbnailOptions {
12    /// Maximum pixel dimension (longest side). Default: 256.
13    pub max_dimension: u32,
14}
15
16impl Default for ThumbnailOptions {
17    fn default() -> Self {
18        Self { max_dimension: 256 }
19    }
20}