# Document or pdf viewer in threejs environment

**URL:** <https://discourse.threejs.org/t/document-or-pdf-viewer-in-threejs-environment/18729>\
**Category:** Questions\
**Tags:** pdf\
**Created:** [September 15, 2020, 3:40pm UTC](https://discourse.threejs.org/t/document-or-pdf-viewer-in-threejs-environment/18729 "2020-09-15T15:40:17Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Arpit\_Vaishya](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/arpit_vaishya/32/13329_2.png) [@Arpit\_Vaishya](https://discourse.threejs.org/u/Arpit_Vaishya)\
**Post date:** [September 15, 2020, 3:40pm UTC](https://discourse.threejs.org/t/document-or-pdf-viewer-in-threejs-environment/18729/1 "2020-09-15T15:40:17Z")

</div>

Is there any way to load any type of document or pdf viewer using threejs in 3D Environment?

---

<div class="post-metadata">

**Author:** ![Mugen87](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/mugen87/32/5645_2.png) [@Mugen87](https://discourse.threejs.org/u/Mugen87)\
**Post date:** [September 15, 2020, 3:52pm UTC](https://discourse.threejs.org/t/document-or-pdf-viewer-in-threejs-environment/18729/2 "2020-09-15T15:52:23Z")

</div>

You can try to render the PDF on a canvas element via [PDF.js](https://github.com/mozilla/pdf.js/) and then use it to create an instance of `THREE.CanvasTexture` for a plane mesh.
