grtjn / view-file-ng

Angular directive for previewing files.
https://grtjn.github.io/view-file-ng
Apache License 2.0
10 stars 1 forks source link

While showing a PDF or other binary, also show the converted file. #14

Open janmichaelyu opened 7 years ago

janmichaelyu commented 7 years ago

Maybe take a convertedUri parameter and show that document when clicking a button.

grtjn commented 7 years ago

What would be the benefit over using multiple view-file directives with different params? It could be interesting, just looking for good arguments..

You could also suppress the toolbar from view-file, and put some toolbar next to view-file directives yourself.

janmichaelyu commented 7 years ago

Something like:

As a user I would like to search for PDFs using a term and clicking on the results (converted documents) would also show the original PDF.

grtjn commented 7 years ago

Like said before, I think you could do this relatively easily with multiple view-file directives on one page..

janmichaelyu commented 7 years ago

Ok. Will experiment. I used uib-tabs to show both the pdf and the converted xml but didn't like how it looked.

grtjn commented 7 years ago

Let us chat offline next week. I'm still interested in allowing extra stuff to be shown, but need to think how to make it work generically..