# PDF Viewer: utility panel visible event if component property set to False

**URL:** <https://forum.inductiveautomation.com/t/pdf-viewer-utility-panel-visible-event-if-component-property-set-to-false/76119>\
**Category:** Ignition\
**Tags:** ignition81, vision\
**Created:** [July 10, 2023, 6:00am UTC](https://forum.inductiveautomation.com/t/pdf-viewer-utility-panel-visible-event-if-component-property-set-to-false/76119 "2023-07-10T06:00:51Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![n.meluccio](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/n.meluccio/32/4858_2.png) [@n.meluccio](https://forum.inductiveautomation.com/u/n.meluccio)\
**Post date:** [July 10, 2023, 6:00am UTC](https://forum.inductiveautomation.com/t/pdf-viewer-utility-panel-visible-event-if-component-property-set-to-false/76119/1 "2023-07-10T06:00:51Z")

</div>

Hello,  
my utilityPaneVisible property is set to False but if i change the PDF path (using a dropdown or whatever) the utility panel comes out again.  
i tried to print out the event.propertyName changing in the PDF component but no properties changing.

Is it a bug or it's supposed to shows every time you change PDF? The guide doesn't say anything about it.

Attached to this post, the pic of the sidebar that i want to hide/remove for EVERY file.

Thanks

![Pic](https://us1.discourse-cdn.com/inductiveautomation/original/3X/b/3/b317c253790da571b4f833e27039b2386b64e6bf.jpeg)

---

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [July 10, 2023, 12:01pm UTC](https://forum.inductiveautomation.com/t/pdf-viewer-utility-panel-visible-event-if-component-property-set-to-false/76119/2 "2023-07-10T12:01:11Z")

</div>

PDF contain instructions on what general UI components of common viewers are supposed to show at startup. You might want to examine the PDF itself more closely, or tweak the tools that are producing them for you.

---

<div class="post-metadata">

**Author:** ![reed.hoffmaster](https://avatars.discourse-cdn.com/v4/letter/r/ad7895/32.png) [@reed.hoffmaster](https://forum.inductiveautomation.com/u/reed.hoffmaster)\
**Post date:** [October 31, 2023, 1:58pm UTC](https://forum.inductiveautomation.com/t/pdf-viewer-utility-panel-visible-event-if-component-property-set-to-false/76119/3 "2023-10-31T13:58:48Z")

</div>

For anyone looking for a solution to this, I managed to solve this by adding a scrip to the propertyChange event on the PDF viewer itself.

```auto
value = 0
event.source.utilityPaneVisible = value

```

This way, whenever you change the path to the pdf, the visibility will be forced to off. I've also added a button to toggle the utility visibility as needed. This was referenced on another post. I would link it here but I can't find it.
