How to set the default height and width of the embedded PDF?
  • 30 Jun 2022
  • 1 Minute to read
  • Contributors
  • Dark
    Light
  • PDF

How to set the default height and width of the embedded PDF?

  • Dark
    Light
  • PDF
  • New

Article Summary

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

2_Screenshot-PDF_preview_resize_portal

  1. Go to SettingsKnowledge base siteCustom CSS & JavaScript, and Custom CSS tab is the default selection
  2. Paste the below CSS snippet in the window
object {
height: 600px !important;
width: 900px !important;
}
  1. Update the desired height and width as per your requirement
  2. Click Save

Outcome

1_Screenshot-PDF_preview_resize


Was this article helpful?

ESC

Eddy, a super-smart generative AI, opening up ways to have tailored queries and responses