How to set the default height and width of the embedded PDF?
  • 30 Jun 2022
  • 1 Minute à lire
  • Contributeurs
  • Sombre
    Lumière
  • PDF

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

  • Sombre
    Lumière
  • PDF

There is no French content available for this article, You are viewing the fallback version (English).

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


Cet article vous a-t-il été utile ?