I wanna insert PowerPoint file from my host to my Web Page. But without Google Drive.
Can i do it with
<code><object type=...</code>
There is few ways for embedding a powerpoint file into your HTML, if you do not prefer using Google docs, you can always use SLIDESHARE or DROPBOX or any third party that provides similar service.
If you prefer to host your files on your own host then you would need to setup a flash player for powerpoint files.
This link seems to have few examples for such players.
Related
I currently run a Linux server, but would switch to Windows if needed.
Users will upload documents in .DOC, .DOCX or .PDF format. I want to convert the MS Word docs to PDF. Then, later, when a user loads a page which I am coding with AngularJs, the page should fetch the document from my server and embed it.
I don't want to rely on 3rd party web services, such as Google, as these are liable to change, but don't mind a 3rd party PHP library for the conversion, or maybe a "print to PDF" option, but I don't have MS Word on my server (I suppose that I could do so if I switch to windows (or use Open Office on Linux?)). Preferably free, certainly sub $100.
If fetching the doc via AJAX to the AngularJs page is problematic, I suppose that I could generate the page with the embedded PDF in PHP on the server.
I don't even know how best to go about it. Google is not my friend, the only solutions I can see for my case recommend the Google DOCs API, which is now deprecated.
I hope to here from someone who has already implemented this.
I want to develop a website like file manager. Where user register and will get fix disk space lets say 20MB.
Now user can upload their pdf, doc, txt, jpeg etc files upto their disk limit.
I can develop upto this using PHP.
Now below is my issue:
1) If user's files are corrupted they can rollback their folders before 2-3 days.
Files must be secure and safe from viruses as users are uploading their important documents.
Is there any 3rd party storage server who provides such facility?
2) Also all files should be previewed from browser.
I am using Google doc viewer. Is is good and safe way to preview file in browser?
But google links are accessible from all, I need to add some restrictions as file can be viewed only by their owner.
I know it's a major task, but i just need some sort of logic. Please share your thoughts.
Thanks.
Any cloud storage service can be used for this. You'll get HDD space. There is not storage server who provides revision control system for this. You can use git, svn for this though. But as the files are binary you can not get full facility of these tools.
How file will be previewed depends on you. If you use PHP you make the site and at the backend you use the API to interact with the storage service. Google doc is not an option for this if you use PHP. Also note Google links can be made private.
I suggest you this,
Find a cloud storage service and use the storage in your server. Any will do.
Create UI using PHP and control the access using PHP too.
Manipulate files in your server directly or in 3rd party storage server via API
Use a revision control system to track the changes. And use its API in PHP end.
Some cloud storage service
Amazon S3. It also supports Versioning.
Google Cloud Storage
Microsoft Azure
Try Microsoft SkyDrive or Google Drive or Dropbox
I need to open pdf file into browser without Adobe Reader. Is there any API with php which open PDF files into browser.
Regards
No.
PHP runs on the server. The only "browser API" it has access to is HTTP.
If you want to render a PDF on the client, then the client needs a PDF renderer. There are JavaScript PDF readers, but I can't comment on their cross-browser support or maturity.
You can use SWFTools to convert PDFs to Flash. But SWFTools default skins are not looking good at all, so you can check Flexpaper as a viewer.
In case you are going to make your own skin, then could be useful to read: SWFTools (pdf2swf) to properly work with Flex
Another solution is pdf.js (as Quentin point out), but AFAIR this script was not usable(back then, when I looked for) for PDFs with complex structures (complex gradients for example).
If you need to publish documents as "private" you should look at services as Issuu or you will have to protect files from downloading.
If you pdf files are put online and not restricted, you can try using Google Doc Viewer. It's a very nice way to put the Viewer in <iframe /> so that it can be combined with your web page.
https://docs.google.com/viewer
It is not feasible to view the PDF files without a viewer like Adobe Reader. If you just don't want to use Adobe Reader, you may try a PDF viewer plug in for web browser from some other company.
However, if you do not want to use a viewer at all and want to write/build your own viewer then a better option is to convert the PDF to scalable images and then show them on the web page using image tags. You can also create such a viewer using JavaScript.
Even you can find many already available JavaScript based viewers which can show those images.
I have a number of sound files hosted by a third-party.
I would like to embed these on my site in some kind of player for streaming.
However, I need to hide the source URLs of these files from my users.
The point is to prevent users from discovering information about the third-party services we use, as some of this info is considered proprietary.
There is obviously no way to do this in straight html. Most methods that I have seen of embedding audio would leave URLs easily discoverable by just viewing the page source.
Is there a good way to keep this data hidden?
I would recommend streaming the files from a streaming media server instead of a progressive downloaded file directly from the 3rd party. Look into red5 - opensource media server
My client asked me to create a page which contains PDF. I used Embed, Iframe tags, it worked in Mozilla but did not work in IE and Mobile browser.
I know that all browsers will read .pdf directly but I want it to be embed.
Is there any way?
Please help me..
If you give a link to the PDF on the web page, any browser will be able to download the file and then the user can open it in a PDF viewer of his choice.
If you want to embed the PDF document in a web page, then the browser needs to have a PDF plugin installed. This may not be the case with all browsers. The PDF will be displayed only if the PDF viewer application's plugin is registered with the browser.
The other way of embedding the PDF document is to use a server-side component that renders the PDF as ordinary HTML web page elements. Google has an embeddable PDF viewer.
Google Docs offers an
undocumented feature that lets you
embed PDF files and PowerPoint
presentations in a web page. The files
don't have to be uploaded to Google
Docs, but they need to be available
online.
You can also use Mozilla's pdf renderer written in javascript. It is rather complex getting started, but all options are there. It is the pdf reader available in Firefox and extensions exist for other browsers. Fun fact: It is by far the most starred library on github when searching for pdf.
Try using adobe pdf api, i found is very easy and compatible with all browsers.
https://www.adobe.io/apis/documentcloud/dcsdk/pdf-embed.html