Is there a way to automatically open PDF docs instead of downloading them?

3 views
Skip to first unread message

greavette

unread,
Jul 2, 2010, 11:19:52 AM7/2/10
to Simple Groupware
Hello,

I have a need in our office to use SGS to server up PDF documents for
our employees. I'm hoping you can help me find a solution.

I've setup a CIFS share in SGS to a folder that only has pdf documents
in them. There is a green down arrow beside each document. Instead
of downloading the pdf document, I'd like to automatically open the
pdf document using the default pdf viewer installed on the computer
(we use foxit). Is there something I can change in sgs to not
download but instead open this document?

I've read through SGS desktop integration (only mentioned mail and
bookmarks) and was hoping there was a way to integrate the opening of
these documents as well.

Thank you,

Charles.

thb...@gmail.com

unread,
Jul 3, 2010, 12:46:42 PM7/3/10
to simple-g...@googlegroups.com
Hello,

you can edit "<sgs-dir>/bin/download.php", replace:
$inline_extensions = array("gif","jpg","jpeg","png","svg");

with:
$inline_extensions = array("gif","jpg","jpeg","png","svg","pdf");

bye
Thomas
> --
>
> You received this message because you are subscribed to the Google Groups "Simple Groupware" group.
>
> To post to this group, send email to simple-g...@googlegroups.com.
>
> To unsubscribe from this group, send email to simple-groupwa...@googlegroups.com.
>
> For more options, visit this group at http://groups.google.com/group/simple-groupware?hl=en.
>
>
>

greavette

unread,
Jul 21, 2010, 1:01:34 PM7/21/10
to Simple Groupware

Sorry for the long delay Thomas. Thanks for the information...I'll
give this a try.

For the time being, I've been using Google Chrome where I've setup an
application shortcut to our SGS system in our office. Looks less like
a webpage now and more like an app. I then setup for each of our PC's
that access SGS to automatically download and display our PDF
documents (Firefox wouldn't let me save this setting to auto download
and display which is why I've switched to using Chome). Luckily we
have a small office so it's not a problem to set this up, but using
your method to add the .pdf option to the download.php file will most
likely make setting up new users easier.

Thank you,

Charles.
On Jul 3, 12:46 pm, thb...@gmail.com wrote:
> Hello,
>
> you can edit "<sgs-dir>/bin/download.php", replace:
> $inline_extensions = array("gif","jpg","jpeg","png","svg");
>
> with:
> $inline_extensions = array("gif","jpg","jpeg","png","svg","pdf");
>
> bye
> Thomas
>
Reply all
Reply to author
Forward
0 new messages