# Error when opening PDF file in app after adding zoom plugin in ios device

**URL:** <https://devforum.zoom.us/t/error-when-opening-pdf-file-in-app-after-adding-zoom-plugin-in-ios-device/22343>\
**Category:** Meeting SDK\
**Created:** [June 25, 2020, 12:28pm UTC](https://devforum.zoom.us/t/error-when-opening-pdf-file-in-app-after-adding-zoom-plugin-in-ios-device/22343 "2020-06-25T12:28:13Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![kushal](https://avatars.discourse-cdn.com/v4/letter/k/35a633/32.png) [@kushal](https://devforum.zoom.us/u/kushal)\
**Post date:** [June 25, 2020, 12:28pm UTC](https://devforum.zoom.us/t/error-when-opening-pdf-file-in-app-after-adding-zoom-plugin-in-ios-device/22343/1 "2020-06-25T12:28:13Z")

</div>

**Description**  
App is crashing when opening a pdf after downoading inside a temporary folder. To open the pdf I am using cordova-plugin-document-viewer plugin.

Pdf location: “/var/mobile/Containers/Data/Application/1526E03F-F7B8-4892-A6BB-358C4BDC9A54/Documents/Tdffs\_Y27B5VC6D1.pdf”

In xcode logs its showing:

-[ReaderDocument setFilePath:]: unrecognized selector sent to instance 0x283f145a0\*\*

+[ReaderDocument unarchiveFromFileName:password:] Caught NSInvalidArgumentException: -[ReaderDocument setFilePath:]: unrecognized selector sent to instance 0x283f145a0\*\*

**Which version?**  
4.6.2166-6.603

**To Reproduce(If applicable)**  
Steps to reproduce the behavior:  
Add plugin cordova.zoom.plugin and cordova-plugin-document-viewer in a same project and try to open a pdf from internal storage temp folder.

**Screenshots**

 ![Screenshot 2020-06-25 at 5.46.18 PM](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/2X/9/9bbbbe5a03b2d29ed8955a07e996167fcbc503a7.png)

**Smartphone (please complete the following information):**

- iPhone6s
- OS: iOS13.3.1
- Version 17D50

**Additional context**  
I removed the zoom plugin and tried to open the pdf, it was working fine.

---

<div class="post-metadata">

**Author:** ![carson.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/carson.zoom/32/785_2.png) [@carson.zoom](https://devforum.zoom.us/u/carson.zoom)\
**Post date:** [June 27, 2020, 2:45am UTC](https://devforum.zoom.us/t/error-when-opening-pdf-file-in-app-after-adding-zoom-plugin-in-ios-device/22343/2 "2020-06-27T02:45:41Z")

</div>

Hi @kushal,

Thanks for the post. Based on the info and the code snippet, it seems not related to the Ionic SDK. Could you provide the full crash log so that we could further investigate?

Thanks!

---

<div class="post-metadata">

**Author:** ![DeveloperBot](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/developerbot/32/12632_2.png) [@DeveloperBot](https://devforum.zoom.us/u/DeveloperBot)\
**Post date:** [August 21, 2020, 10:29pm UTC](https://devforum.zoom.us/t/error-when-opening-pdf-file-in-app-after-adding-zoom-plugin-in-ios-device/22343/3 "2020-08-21T22:29:08Z")

</div>

Closed on August 21, 2020, 10:29pm UTC


