CodeCharge Studio
search Register Login  

Visual PHP Web Development

Visually Create Internationalized Web Applications, Web Reports, Calendars, and more.

YesSoftware Forums -> CodeCharge Studio -> PHP

 document viewer

Print topic Send  topic

Author Message

Posts: 215
Posted: 09/10/2014, 5:56 AM

has anyone integrated a document viewer, such as google doc viewer, into CCS? I was actually able to get the google viewer to work very easily, but have some reservations because these are private files.

Any other options? self hosted? I need to be able to view a very wide variety of files, office docs, pdfs, video, etc.

Any ideas would be appreciated.
View profile  Send private message

Posts: 6
Posted: 07/07/2015, 8:43 PM

I think it will be much more convenient if you have a fine pdf converter. You can convert pdf to other files to view them in different viewers. You can check it.
I hope you success. Good luck.

Best Regards,

View profile  Send private message

Posts: 5
Posted: 07/28/2015, 9:03 PM

I found a related document viewer. And I use PDF as samples for you:
DOC,DOCX, xls, xlsx...can be founded as well on the websites.
Hope it can help you.
View profile  Send private message

Posts: 639
Posted: 08/15/2015, 5:22 PM

Maybe you can do a substr on the document extension and based on the result setup if/else to specify the mime type. I've only done this with PDF (example below - includes buffer mgmt), but imagine it would work for any mime-type:

if($fileext == ".pdf"){
header('Content-type: application/pdf');
$handle = fopen($filepath, "rb");
while (!feof($handle)) {
echo fread($handle, 2048);

maybe for excel ??

header('Content-type: application/');

and you wouldn't likely require the buffer stuff..

Here's a link to some mime-types...
Central Coast, NSW, Australia.

View profile  Send private message

Add new topic Subscribe to topic   

These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit

Web Database

Join thousands of Web developers who build Web applications with minimal coding.

Home   |    Search   |    Members   |    Register   |    Login

Powered by UltraApps Forum created with CodeCharge Studio
Copyright 2003-2004 by  and YesSoftware, Inc.