actually i have to display ppt file in browser but it gives download option instead of displaying.so im using it to convert in pdf format so that browser display it and restrict user to download
why don't you use Google Docs or HTML5 presentation systems
Read more here
http://www.sitepoint.com/5-free-html5-presentation-systems/
you may alternatively try saving the ppt as image by File - Save as - Save as type and show the image in your browser.
NB: You can't restrict the user from downloading. Alternatively, you can show images to registered users.
You can restrict users from downloading if you will use flash player with external datasource like non-cacheable stream video. PDF and images can be freely downloaded even if you put it in "iframe", block the "mouseclick" and "drag-and-drop" events. By the way, if you can see it in a browser, then you already have copy of it in the system cache.
Sorry.
Related
i am using fpdf to generate reports in php. I don't want users to save the generated pdfs. They will only print the documents.How can i do it?Any help will be appreciated.
Pretty sure as long as this is sent to the client's browser from the server to display the pdf there is honestly nothing you can really do to prevent a user from "saving" it, they'll find a way.
Trying to prevent users from saving the PDF is the same as trying to prevent users from creating screenshots, they always find a work around. Also to be able to print PDF, the PDF has to be stored in the users cache to send it to their printer. Also some browsers cannot show the PDF with the option to print it, they have to download the PDF to open it in ie Adobe Reader to print it from there.
I would like to suggest not to create PDF for this, otherwise if PDF will be opened at browser that can be easily saved or copied. If you allow users to download it then make a copy of report in PDF and let client download it.
I'm wondering is this is possible or not?
Suppose i have div containing 10 Questions,Options and Answers.
Now,if user want to copy content of that div he has to manually select and copy the content using mouse and paste on his editor(Ms Word or some other editors).
But what i want is when user clicks the download button the content gets copied to the pdf(or other file) file and can be downloaded.
You need to use fpdf for that
Here's a nice tutorial of how to create a pdf file using PHP
Reference
FPDF is probably the best library to create PDF's in PHP
Check out fpdf website here :
http://www.fpdf.org/
Best for
Multiple layers of text/images
Watermarks
Barcodes much more
Do check out the Scripts section in the website
Great PDF lib for creating PFDs is mpdf just try example, you would be amazed how easy it is: http://www.mpdf1.com/
i think, you need fpdf lib.
to create txto other similiar file from the content of the page:
open/create file
read_page = read the page content
file_put_content(read_page)
file is ready to download
Normally, pdf files can be edited by applications like Adobe Acrobat Writer. And when we open the pdf files in applications like adobe acrobat reader, we can select the contents. I need the codes that can create the pdf file and make it's content uneditable and users can't select the contents.
Please help me out with this.
You can render text and overlay an image. I am not sure whether this will work - viewer applications may allow the text to be selected.
If you render the text as watermark annotations, then that content will not be selectable.
You could encrypt the document and set an empty string as the user password but a full string as the owner password document. This will allow anyone to open the document without entering a password. To prevent content selection, you need to specify deny "content selection" user permission.
Our company Gnostice has PDF components for Java, .NET, and Delphi/C++Builder platforms. All of them can render text and images, create watermark annotations, encrypt PDF document, and also specify usage permissions.
you can use pdf password secure http://luxsci.com/blog/how-secure-are-password-protected-files.html.
On development enviroment using php, i have no idea how to implement it, but it helps... i guess if you convert all your text to image, they never could copy that.
Use this link to know about creating a PDF file using PHP dynamically. http://www.devarticles.com/c/a/PHP/Use-PHP-to-Create-Dynamic-pdf-Files/ In the properties, you can make it read-only.
Save the PDF file as an image. Then create a PDF of that image. If the PDF is multiple pages, you may want to consider saving it in a multi-page image format such as a tiff. Otherwise you will end up with 1 image per page if using say, the jpeg format and then have to combine them into one PDF Document. I do this with Services Agreements all the time.
I would like to include a mp3 file preview feature which should enable a person, once he/she has uploaded an mp3 file.
He should be able to listen/preview it within the site.
How can this be accomplished and are there any flash mp3 player which do this. All have seen are all XML based.
Thanx
Another option would be: http://wpaudioplayer.com/standalone
You may try: http://www.macloo.com/examples/audio_player/
I have one website and few mp3 in one folder fro user to download.
Is there any flash or php script which shows the content of folder in nice gui way so that user can click on them and download them
Just iterate over the content using DirectoryIterator like shown here.