---
title: "How to set the default height and width of the embedded PDF"
slug: "how-to-set-the-default-height-and-width-of-the-embedded-pdf"
description: "Preview size of the PDF files in the article would vary for browsers. However, you can configure the desired height and width of the PDF file."
tags: ["Customization"]
updated: 2026-07-10T12:25:04Z
published: 2026-07-10T12:25:04Z
canonical: "docs.document360.com/how-to-set-the-default-height-and-width-of-the-embedded-pdf"
---
> ## Documentation Index
> Fetch the complete documentation index at: https://docs.document360.com/llms.txt
> Use this file to discover all available pages before exploring further.
# How to set the default height and width of the embedded PDF
By default, the height and width of an embedded PDF preview in an article varies depending on the reader's browser. You can set a consistent fixed size for all PDF previews using Custom CSS, so the preview renders at the same dimensions for all readers.
:::(Info) ( NOTE)
This workaround applies only to articles created in the **Advanced WYSIWYG editor**. PDF previews in Markdown editor articles are not affected.
:::
---
## When to use this fix
- **Inconsistent PDF preview sizes across browsers**: browsers render embedded PDF objects at different default dimensions. This fix enforces a consistent size.
- **Controlling preview prominence**: set a larger height to give the PDF more vertical space on the page, or a smaller size to keep it compact alongside surrounding content.
:::(Warning) (
WARNING)
The CSS selector `object` targets **all** `