pdf-viewer addon

Post

Posted
Rating:
#6701 (In Topic #1736)
Avatar
Standard member
cwdean is in the usergroup ‘Fan in action’
I just installed the pdf-viewer addon.  From the description it sounded like it would allow for the inline display of PDF files but I'm not able to figure out how that works.  For example, I was hoping it would allow for a View option to appear for PDF's (along with the download option, which we have today).  So in addition to be able to downloading a PDF from the Downloads section, you could View them as well (without having to download first).

Is that not the way this addon works?  And if not, how does it work?

Thanks in advance for your help!
 
Online now: No Back to the top

Post

Posted
Rating:
#6702
Avatar
Site director
Chris Graham is in the usergroup ‘Administrators’
Hi,

I have updated the addon description to be clearer:
"PDF media (including the Comcode media tag, Comcode attachments, and in galleries) will be displayed inline using a PDF viewer than prevents easy download or printing."

It's not in any way related to the downloads addon I'm afraid.

There is, however, a config option "Downloads open in associated program". Perhaps that would work for you. Downloads will open in whatever the system viewer is rather than downloading. Then if users want a download then they can save from that viewer (typically).


Become a fan of Composr on Facebook or add me as a friend. Add me on on Twitter. Follow me on Minds (where I am most active). Support me on Patreon

Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about Composr whenever you see the opportunity or support me on Patreon.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying Composr on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Online now: Yes Back to the top

Post

Posted
Rating:
#6704
Avatar
Standard member
cwdean is in the usergroup ‘Fan in action’

Chris Graham said

Hi,

I have updated the addon description to be clearer:
"PDF media (including the Comcode media tag, Comcode attachments, and in galleries) will be displayed inline using a PDF viewer than prevents easy download or printing."

It's not in any way related to the downloads addon I'm afraid.

There is, however, a config option "Downloads open in associated program". Perhaps that would work for you. Downloads will open in whatever the system viewer is rather than downloading. Then if users want a download then they can save from that viewer (typically).

Okay, thanks Chris for the clarification.  I was hoping to save time when simply wanting to view a download to be able to directly view without having to download.  Even if "downloads open in associated program" is enabled you still have to download the file first (it just goes to a temp location) and then the OS loads it up using the associated app.  I was trying to save the download time by having the view process occur on the server (i.e. in the browser).

I'll have to check with my users to see if they want me to enable "Downloads open in associated program".  That may still be a useful feature.
Online now: No Back to the top

Post

Posted
Rating:
#6706
Avatar
Site director
Chris Graham is in the usergroup ‘Administrators’
Even the PDF Javascript viewer this addon uses (PDF.js by Mozilla) requires the .pdf file to download. In that case it doesn't save as a regular Windows/whatever temporary file, but probably does save to the browser's cache. In any case, data is being downloaded, and JavaScript is rendering out the PDF file client-side.

I think with  "downloads open in associated program" most browsers would show in their own built-in PDF viewer nowadays, but I'm not 100% sure and it may depend on configuration.


Become a fan of Composr on Facebook or add me as a friend. Add me on on Twitter. Follow me on Minds (where I am most active). Support me on Patreon

Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about Composr whenever you see the opportunity or support me on Patreon.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying Composr on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Online now: Yes Back to the top
1 guest and 0 members have just viewed this.

Statistics

Users online:

Manu, MVLipwig, John Connor, mytracker, ManojSree, Chris Graham, amit.nigam

Forum statistics:
  • 1,216 topics, 5,711 posts, 6,874 members
  • Our newest member is DigitalMathur
Birthdays:
Back to Top