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

Prev Next
Professional
Business
Enterprise






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

  1. Navigate to Settings () > Knowledge base site > Customize site > Custom CSS & JavaScript in the Knowledge base portal.

  2. From the left navigation pane, click on the CSS tab and paste the following CSS snippet:

object {
height: 500px !important;
width: 500px !important;
}
  1. Update the desired height and weight as per your requirement.

  2. Click Save.

Outcome

2_Screenshot-outcome_set_of_height_&_width.png