# File Preview Compoent

**URL:** <https://forum.juce.com/t/file-preview-compoent/6589>\
**Category:** General JUCE discussion\
**Created:** [March 18, 2011, 1:26pm UTC](https://forum.juce.com/t/file-preview-compoent/6589 "2011-03-18T13:26:41Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![dearvivekkumar](https://avatars.discourse-cdn.com/v4/letter/d/958977/32.png) [@dearvivekkumar](https://forum.juce.com/u/dearvivekkumar)\
**Post date:** [March 18, 2011, 1:26pm UTC](https://forum.juce.com/t/file-preview-compoent/6589/1 "2011-03-18T13:26:41Z")

</div>

Hi  
I wants to show preview for PDF files, Text file. How can I do this using JUCE component.

Thanks

---

<div class="post-metadata">

**Author:** ![jules](https://avatars.discourse-cdn.com/v4/letter/j/41988e/32.png) [@jules](https://forum.juce.com/u/jules)\
**Post date:** [March 18, 2011, 2:12pm UTC](https://forum.juce.com/t/file-preview-compoent/6589/2 "2011-03-18T14:12:34Z")

</div>

Very tricky - a PDF reader would be a serious piece of software. Even embedding a web-browser component won’t work, because AFAIK only Chrome provides a built-in PDF reader. You might be able to find an open-source PDF reader and embed it somehow.

---

<div class="post-metadata">

**Author:** ![dearvivekkumar](https://avatars.discourse-cdn.com/v4/letter/d/958977/32.png) [@dearvivekkumar](https://forum.juce.com/u/dearvivekkumar)\
**Post date:** [March 21, 2011, 6:51am UTC](https://forum.juce.com/t/file-preview-compoent/6589/3 "2011-03-21T06:51:02Z")

</div>

Thank you sir! for your reply.

---

<div class="post-metadata">

**Author:** ![dearvivekkumar](https://avatars.discourse-cdn.com/v4/letter/d/958977/32.png) [@dearvivekkumar](https://forum.juce.com/u/dearvivekkumar)\
**Post date:** [March 21, 2011, 6:55am UTC](https://forum.juce.com/t/file-preview-compoent/6589/4 "2011-03-21T06:55:06Z")

</div>

I have gone through the juce documentation there is an option for showing the image preview component. The same I want for other types of file too. Just like in window explorer right pane show the preview.

---

<div class="post-metadata">

**Author:** ![X-Ryl669](https://avatars.discourse-cdn.com/v4/letter/x/a5b964/32.png) [@X-Ryl669](https://forum.juce.com/u/X-Ryl669)\
**Post date:** [March 21, 2011, 9:08am UTC](https://forum.juce.com/t/file-preview-compoent/6589/5 "2011-03-21T09:08:48Z")

</div>

Might worth a look:  
[http://podofo.sourceforge.net/support.html#api](http://podofo.sourceforge.net/support.html#api)

It _seems_ that PDF are just compressed postscript files, and it _could_ be converted to drawables quite easily. No one did this throught (I’ve tried to do the opposite, that is, write a PostScript renderer for printing a document).

---

<div class="post-metadata">

**Author:** ![cialz](https://avatars.discourse-cdn.com/v4/letter/c/8c91f0/32.png) [@cialz](https://forum.juce.com/u/cialz)\
**Post date:** [April 21, 2013, 10:27am UTC](https://forum.juce.com/t/file-preview-compoent/6589/6 "2013-04-21T10:27:14Z")

</div>

Hi guys,  
I need to embed in a ViewPort component a PDF preview, if possibile also with zoom-in/out controls.

Anyone has done this yet? I’m searching for open source PDf library, I found mu-pdf.

Any sugestion?
