How to Open PDF in Browser and modify it and save it? - asp.net

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).

Related

How to restrict download a copy and print to read the PPT files in microsoft office online?

I'm trying to create a powerpoint viewer on my worpress page that shows a ppt file. The problem is that I do not want to be able to download (i want read only), but I can not disable the Microsoft Office online options "download a copy" and "print pdf".
[embeddoc url="https://ceysformacion.com/wp-content/uploads/2018/10/CURSO-AMENAZA-DE-BOMBA.ppt" width="90%" height="90%" download="none" viewer="microsoft"]
I have also tried with css (display: none) on some classes, but without effect.
Any advice?
I am not entirely sure about the possibility of disabling the MS online option for download so what I can see as a work around are:
either change the way you render the ppt and do something like slide share or
add password/security protected on the file that can be downloaded.. well this is under the assumption that your purpose is to manage access on copies of specific files.
I also saw this thread, which may support my initial point that preventing download is still not available. But again, I am not entirely sure how accurate this info is. Hope it helps.
https://onedrive.uservoice.com/forums/913531-onedrive-sharing-collaboration/suggestions/7105024-prevent-shared-files-from-being-downloaded

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.

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

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.

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.

print pdf file in acrobat reader using javascript and close it

we are displaying a reporting services report as a pdf document in acrobat reader. when the user clicks on the print in the acrobat reader, I will like to print the report and close the report. The user should be able to print the report only once.
I do not think that this is possible. You need much more access then browser can give. May be ActiveX or browser add-in can help...
Anyways, browsers have some limited support for printing. Check out:
window.print();
I am not sure if it works in all browsers, though.
This is possible to do. You simply need to add
this.print();
as a "JavaScript PDF action" to the "open" event of the document. Unfortunately, if your report generator is creating the PDFs internally you might not be able to inject the necessary code.

Resources