# PDF Viewer: Cannot access custom property

**URL:** <https://forum.inductiveautomation.com/t/pdf-viewer-cannot-access-custom-property/37671>\
**Category:** Ignition\
**Created:** [August 13, 2020, 1:07pm UTC](https://forum.inductiveautomation.com/t/pdf-viewer-cannot-access-custom-property/37671 "2020-08-13T13:07:31Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![dkhayes117](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/dkhayes117/32/68344_2.png) [@dkhayes117](https://forum.inductiveautomation.com/u/dkhayes117)\
**Post date:** [August 13, 2020, 1:07pm UTC](https://forum.inductiveautomation.com/t/pdf-viewer-cannot-access-custom-property/37671/1 "2020-08-13T13:07:31Z")

</div>

I have a pdf viewer that I created a custom property on called `isZoomed`. I’m changing the pdf view based on this custom property. For testing, i’m using a button to toggle the custom property. It works perfect in designer preview mode, but it does not work in the client and I get this error.

```auto
Traceback (most recent call last):

  File "<event:actionPerformed>", line 2, in <module>

AttributeError: 'com.inductiveautomation.factorypmi.plugins.reporti' object has no attribute 'isZoomed'

```

Button Script

```auto
pdf = event.source.parent.getComponent('PDF Viewer')
if pdf.isZoomed:
	pdf.isZoomed = 0
else:
	pdf.isZoomed = 1

```

---

<div class="post-metadata">

**Author:** ![dkhayes117](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/dkhayes117/32/68344_2.png) [@dkhayes117](https://forum.inductiveautomation.com/u/dkhayes117)\
**Post date:** [August 13, 2020, 1:22pm UTC](https://forum.inductiveautomation.com/t/pdf-viewer-cannot-access-custom-property/37671/2 "2020-08-13T13:22:59Z")

</div>

I saved the designer and closed it, then restarted the designer. The custom property disappeared upon restart. I recreated the custom property and published and the java error pops up but there isn’t a window with a message, just the Zulu logo. The gateway logs shows these two messages over and over since yesterday.

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/3/9/3941f8e49bc1d9b829ce4e38b57207f91cebae7f.png)

---

<div class="post-metadata">

**Author:** ![paul-griffith](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/paul-griffith/32/37249_2.png) [@paul-griffith](https://forum.inductiveautomation.com/u/paul-griffith)\
**Post date:** [August 13, 2020, 2:45pm UTC](https://forum.inductiveautomation.com/t/pdf-viewer-cannot-access-custom-property/37671/3 "2020-08-13T14:45:06Z")

</div>

You need to restart your gateway (and get it contact with support). Something’s locked Ignition’s internal DB, which is preventing everything else in the system from accessing it and retrieving data.

---

<div class="post-metadata">

**Author:** ![dkhayes117](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/dkhayes117/32/68344_2.png) [@dkhayes117](https://forum.inductiveautomation.com/u/dkhayes117)\
**Post date:** [August 13, 2020, 2:53pm UTC](https://forum.inductiveautomation.com/t/pdf-viewer-cannot-access-custom-property/37671/4 "2020-08-13T14:53:38Z")

</div>

I stopped the gateway then started it back up. The errors went away, but I still cannot place a custom property on the pdf viewer. I tried deleting it and recreating it but didn’t help. Then I tried creating an invisible label to host the custom property. Doing that, everything works as it should. Weird! I’m waiting to hear back from support. This is just an FYI. Thanks.
