Disable toolbar or right-click when viewing embedded PDF online - is this possible? - wordpress

I have a WordPress blog that has a hyperlink to a PDF report. The user clicks the link and the report PDF opens up in another tab. When it opens up in another tab it uses whatever PDF software is on the local machine (e.g. for me it uses Adobe Reader to view the PDF online).
Is there any way at all that the ability to then select the PDF text, right-click, Copy and then Paste it in to a Word document or such (effectively stealing the information) can be stopped in some way?
On the same page that has the highlighted text mentioned we also have a link to download the entire report which is said PDF. When this is done, because the PDF was secured in Acrobat before being uploaded to WordPress if someone tries to edit the text then they cannot as the restrictions are in place - but why are the restrictions not in place when the PDF is viewed online?
Any assistance or advice on how to protect the PDF contents when viewed online (I realise it may not even be possible but I am open to suggestions) would be greatly appreciated.

You can start by modifying the security properties on the document itself. I'm not sure if you can do this with Adobe Reader, but I know you can do it with Acrobat Pro. Here's an article that describes how to disable copy/paste, printing, etc. etc. I tested in IE8, FF, and Chrome -- it looks like the permissions are honored.

Related

How to Open PDF in Browser and modify it and save it?

I am thinking about opening a PDF file with some editable fields in the browser , by which i can modify the PDF file / fill information etc and then save that PDF FORM
Please guide me in a right direction ?
I think in your case Rad PDF can work. It is a PDF Viewer and Editor for ASP.NET by which you can open the PDF with editable fields in browser and can even modify the PDF and save it.
Check the link:- https://www.radpdf.com/demo/easy-integration/
and another one is below:-
https://code.msdn.microsoft.com/PDF-Editor-to-Edit-PDF-5fb73b8d
Hope it will work in your case.
Thanks
You cannot. Simple.
PDFs are edited by the native app, in your case may be Chrome, Safari and Internet Explorer. You do not have control on anything that happens when the user edits the PDF in a native app context.
Pdf documents come in many flavors (standards). One of them (FDF) matches your usecase very closely. This particular standard allows you to edit a pdf form, on completion (or some other event) it would send the data back to a server, collect a response, and modify the pdf with the incoming data.
Keep in mind though that this standard is not often used. There may be a good reason for that (not a lot of libraries support it).

Disable save button in Adobe PDF reader and hide menu bar in IE window

I am trying to render a PDF via servlet,using Itext for getting PDF file.
Need to disable save ,print option in adobe pdf reader menu bar while other options like scroll,find should be there and in addition need to disable the file menu of the browser window in which it is rendered.
I have disabled print and file menu using below code
stamper.setEncryption(null,null,
PdfWriter.HideWindowUI, PdfWriter.STRENGTH40BITS);
stamper.setViewerPreferences(PdfWriter.HideToolbar);
Problem is
disable save button in Adobe PDF reader menu bar (using **Adobe Reader 9**).
We need to distinguish two different aspects: printing and saving.
You can encrypt a file and set the permissions in such a way that printing isn't allowed. However: if you only encrypt a document with an owner password, it is very easy to decrypt the document and to remove the restrictions. Encrypting a document with an owner password only works on a psychological level: for instance: you indicate that the original producer of the document doesn't want the document to be printed.
If you want to avoid that an end users saves a PDF document, you are asking something that is impossible. The only way to avoid that an end user doesn't have a copy of the PDF is by not sending him the PDF. A PDF can't be opened in Adobe Reader without having the actual bytes on the disk. Even if you would disable saving (for instance in the context of a web application), you'd always find the PDF somewhere in the temp files and people would be able to copy that file as many times as they want.
In your code snippet, you try hiding the toolbar (a viewer preference), but that doesn't make sense. Whether or not this viewer preference will be respected entirely depends on the PDF viewer. For instance: in Adobe Reader X and later, you have a special widget that appears when you hover over the document. This widget allows users to save the document.
Even with Adobe Reader 9, hiding the toolbar isn't sufficient: if the user chooses the appropriate menu item or hits the appropriate "hot key", the toolbar would appear and they could happily click the Save button. In addition, they could have right-clicked and chosen "Save" as well.
In short, you're asking the wrong question.
What you need to do is NOT prevent saving BUT control the actual use of the PDF and that's where DRM (Digital Rights Management) comes in. DRM however is usually very expensive, it requires a custom PDF viewer and it's out of the scope of iText.

Open Pdf with Adobe Reader from Server

i have the next problem. I don't have Adobe Reader in my local machine and i have some Webform that show pdf files in fact i can't see this pdf files for it i need to find some way to open this files using the Adobe Reader from the server. Is that posssible? Somebody could show me how do this? Thanks
It isn't possible to use Adobe Reader to display a PDF to another machine through a web page. If this is just for local testing, try using Chrome or Firefox if you can. These have their own PDF readers separate from Adobe.
If you are trying to actually display the content as a non-PDF format, you may want to look into something that will parse the file into HTML. Mozilla's "pdf.js" is a good example, and might be of use to you. However, I don't think this is necessary. Nearly all users can view PDF files.
Have a look at PDF Js which can render a PDF in a web viewer.

Drag and drop files FROM a browser TO desktop/app

I've seen many articles about dragging files INTO a browser, but none about dragging files FROM the browser to a windows application or the desktop/windows-explorer.
I'm looking for a cross-browser solution but IE8 is our main browser.
If I create a link in a web page and then drag that link from the page into Microsoft Word, it inserts a link. However, if that link is pointing at a PDF document, I would like it to embed the PDF doc inside the Word doc, as if I'd dragged it from Windows Explorer, into MS Word.
Is that possible?
I've even tried pointing the link at an ASP page which returns "application/pdf" data but I still just get a link in my word doc so I suspect that links are the wrong way to go.
Thanks for any help!
I suspect you'll find that it is indeed not possible. The behavior upon drop is determined by the "receiving" application, not the "sending" application. As you point out, Word creates links to things that are dropped on it. The browser doesn't have any control over that.
I noticed that you can actually drag a HYPERLINK from a browser and drop in into a folder. After that a file there is created with .URL extension that contains the actual link.
So it is possible develop a program that will be able to accept that hyperlinks (as the usual windows folder does) and after it accepts the hyperlink file, it will automatically download the actual file from internet (by the hyperlink from the hyperlink file).
So the process will be:
drag-n-drop a hyperlink to the app
app recognizes the link
app automatically downloads the appropriate file and stores it somewhere.

Exporting Crystal Reports to PDF, is it possible to disable Save functionality

I am exporting a crsytalreport to pdf using asp.net.
On executing the report is opened in the default pdf reader(adobe reader 9 in my case) which is embedded in the browser (ie 8 in my case).
I need the report only to be viewed and to print and it should not be allowed to be saved.
I need a way to disable the save button in the tool bar of the pdf reader,browser and disable the right click in pdf reader.
Note: The print button should be left enabled
Softwares used
pdf reader : adode reader 9
browser : internet explorer 8
platform : asp.net
You can disable/enable certain operations on the PDF via encryption, but disabling the "Save A Copy" button isn't one of them. The PDF is already on the client side at that point, and Adobe's browser plugin always has that feature enabled.
You can only hide the menu bar.
http://support.adobe.com/devsup/devsup.nsf/docs/51866.htm

Resources