# Read pdf file inside app

**URL:** <https://forum.ionicframework.com/t/read-pdf-file-inside-app/166207>\
**Category:** ionic-v3\
**Created:** [June 13, 2019, 11:44pm UTC](https://forum.ionicframework.com/t/read-pdf-file-inside-app/166207 "2019-06-13T23:44:30Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Marwakamal](https://avatars.discourse-cdn.com/v4/letter/m/ccd318/32.png) [@Marwakamal](https://forum.ionicframework.com/u/Marwakamal)\
**Post date:** [June 13, 2019, 11:44pm UTC](https://forum.ionicframework.com/t/read-pdf-file-inside-app/166207/1 "2019-06-13T23:44:30Z")

</div>

I need help regarding preview a pdf file inside app from external link without using Google view or download file

---

<div class="post-metadata">

**Author:** ![hirenkorat3](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/hirenkorat3/32/128872_2.png) [@hirenkorat3](https://forum.ionicframework.com/u/hirenkorat3)\
**Post date:** [June 14, 2019, 4:45am UTC](https://forum.ionicframework.com/t/read-pdf-file-inside-app/166207/2 "2019-06-14T04:45:12Z")

</div>

have you try this [https://ionicframework.com/docs/v3/native/file-opener/](https://ionicframework.com/docs/v3/native/file-opener/) ?

> **[Ionic Framework](https://ionicframework.com/docs/v3/native/file-opener/)**
>
> Ionic is the app platform for web developers. Build amazing mobile, web, and desktop apps all with one shared code base and open web standards

---

<div class="post-metadata">

**Author:** ![fabiogoodbooy](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/fabiogoodbooy/32/126326_2.png) [@fabiogoodbooy](https://forum.ionicframework.com/u/fabiogoodbooy)\
**Post date:** [June 14, 2019, 2:46pm UTC](https://forum.ionicframework.com/t/read-pdf-file-inside-app/166207/3 "2019-06-14T14:46:07Z")

</div>

install plugin document viewer

```auto
ionic cordova plugin add cordova-plugin-document-viewer
npm install @ionic-native/document-viewer

```

```auto
and add this code in your file ts
import { DocumentViewer } from '@ionic-native/document-viewer/ngx';

constructor(private document: DocumentViewer) { }

...
const options: DocumentViewerOptions = {
  title: 'My PDF'
}

this.document.viewDocument('assets/myFile.pdf', 'application/pdf', options)

```
