I want to read the pdf documents and display the content to the browser, without allowing the users to save a copy of the pdf.
How can i use fpdf for this purpose? So far, i could not figure out a way of reading a pdf document with fpdf, apart from creating a new pdf. Can anyone suggest an example of reading a pdf file, and if possible, how to disable the save as pdf option?
fpdf can’t read pdf’s. take a look at it’s FAQ – 16 an 17 sound interesting and it loooks like there are addons to do this.
what you really can’t ever avoid is to let the user save that pdf – it has to be sent to the browser at the clients machine, to display it, so there will always be a possibility to save it. a possibility would be to transform every page of the pdf to an image (using Imagemagick for example) and oly display these images, so the user can’t copy the text from it and has no possibility to get the original pdf-document – but that will only annoy people.