on 01-12-2011 3:58 AM
Dear friends
i have one appplication created in local webdynpro component and i have placed one pdf in mimes and now when users clicks on the pdf which is available in the form of link it will be opened and asks the optio if it is to be downloaded or saved .My client doesn't require this option of endusers not to save or download it to desktop or anywhere else.
How can i restrict pdf from saving or downloading it through webdynpro java coding.
Thanks in advance.
Hello Krishna,
If he is not interested to save the PDF, but he can view the PDF right?
in that case use the following code to open PDF.
IWDResource resource = WDResourceFactory.createCachedResource(new ByteArrayInputStream(wdContext.currentPDFFileElement().getPDFString()),"PDF",WDWebResourceType.PDF,true);
IWDWindow window = wdComponentAPI.getWindowManager().createNonModalExternalWindow(resource.toString(),"PDF Window");
window.show();
Revert for any queries.
Regards
Nizamudeen SM
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Use Adobe Interactive Form UI instead of File Download UI.
Bind the resource attribute that you are binding to File Download UI to Interactive Form UI .
The Interactive Form UI will display your pdf in the view instead of displaying a link for downloading
Regards,
Amol
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
90 | |
10 | |
10 | |
10 | |
7 | |
7 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.