Document preview width and height

Width percent of content area (default 100). Height Auto (up to 70vh) or Custom fixed pixels (default 560).

Settingdocument_preview_width_pct

Document preview width and height

Size of the inline document viewer on download pages.

Where to find it

Admin → Settings → Mods → Document previews

Field Key Default
Document width document_preview_width_pct 100 (range 10-100)
Document height document_preview_height_mode auto or custom (default auto)
Custom height px document_preview_height_px 560 (range 200-2000; used when mode is custom)

Auto height is responsive, capped around 70% of the viewport (implementation also caps near 800px). Custom uses a fixed pixel height.

Common problems

Tiny PDF pane

Raise width % and/or switch height to Custom with a larger px value.

Related