The PrizmDoc Viewer UI is designed using HTML and CSS, and is fully customizable. You can make changes to the UI by modifying your "viewer.css" file.
Example Scenario:
By default PrizmDoc Viewer has a menu bar at the top of the viewer, and another menu bar at the bottom. Say you want both of the menu bars to appear at the top of the viewer.
How to accomplish this:
The relevant elements for this scenario are as follows:
"pcc-nav-tabset" - Top menu bar with "View", "Search", "Annotate", etc.
"pcc-tab-pane" - Second top menu bar, light grey, with "Print", "Download", etc.
"pcc-tools-tabset" - Bottom menu bar with "zoom", "pan tool", etc.
"data-pcc-pagelist" - Page container for which you'll need to adjust the padding after moving the menu bars
"data-pcc-pagelist" - Page container for which you'll need to adjust the padding after moving the menu bars
For this use case, you will want to leave the "pcc-nav-tabset" alone (since it's already at the top), and make modifications to the other elements:
- Open "viewer.css"
- Search for "pcc-tab-pane"
- Make the following changes:
.pccv .pcc-tab-pane { visibility: hidden; position: absolute; height: 40px; top: 29px; // change to "top: 69px". This will leave enough room for the other menu bar, which has a height of 40px. left: 0; right: 0; line-height: 37px; padding: 0 10px; background: #f2f3f6; z-index: 4; -webkit-box-shadow: 0 0 4px 1px rgba(0, 0, 0, 0.4); box-shadow: 0 0 4px 1px rgba(0, 0, 0, 0.4); }
- Search for "pcc-tools-tabset"
- Make the following changes:
.pccv .pcc-tools-tabset { position: absolute; width: 100%; height: 40px; background: #383a3f; bottom: 0; // change to "top: 29px". this will move the position to the top, right under the original top menu bar, // which has a height of 29px. text-align: center; z-index: 3; will-change: opacity; }
- Search for "data-pcc-pagelist"
- Make the following changes:
.pccv [data-pcc-pagelist] { position: relative; width: 100%; height: 100%; padding-top: 69px; // change to 109 (add the heights of the menu bars together, 40px + 40px +29px) padding-bottom: 40px; // change to 0px, since we moved the bottom menu bar }
After making these changes, your viewer should look like this:
Additionally, if you wish to modify any other aspect of the viewer UI, you can do so by modifying the CSS in "viewer.css". A helpful way to identify which element to modify is by opening the viewer in your web browser, right clicking the desired UI element in the viewer, and selecting "Inspect Element". This can help you find the element in the HTML, which you can then search for within "viewer.css".
Here is some additional documentation for reference: https://help.accusoft.com/PrizmDoc/latest/HTML/dev-guide-design-basics.html
Was this article helpful?
That’s Great!
Thank you for your feedback
Sorry! We couldn't be helpful
Thank you for your feedback
Feedback sent
We appreciate your effort and will try to fix the article