How to set the default height and width of the embedded PDF?
- 30 Jun 2022
- 1 Minute to read
- Contributors
- Print
- DarkLight
- PDF
How to set the default height and width of the embedded PDF?
- Updated on 30 Jun 2022
- 1 Minute to read
- Contributors
- Print
- DarkLight
- PDF
- New
Article Summary
Share feedback
Thanks for sharing your feedback!
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.
Solution
- Go to Settings → Knowledge base site → Custom CSS & JavaScript, and Custom CSS tab is the default selection
- Paste the below CSS snippet in the window
object {
height: 600px !important;
width: 900px !important;
}
- Update the desired height and width as per your requirement
- Click Save
Outcome
Was this article helpful?