This topic has been archived. It cannot be replied.
-
工作学习 / 学科技术讨论 / HELP! As a security measure, I want to totally disable SAVE/PRINT option for PDF display. Now I can disable menubar inside Adobe, and browser, but I cannot find a way to disable context (right click) menu. Anyone please help me.
-nicetomeetyou(蓦然回首彩虹跨天地);
2009-9-16
(#5551630@0)
-
When creating that PDF file, we need to set up the encrypt dictionary in the PDF file's trailer dictionary. I do not know how you create or make the PDF files...
-frankwoo(柳五随风);
2009-9-16
(#5553473@0)
-
I used iText and already set view's preferences to disable view's toolbar, UI menu, etc. A post told me since context menu comes from Adobe container, we need a customized plug-in..? What tool do you use to create PDF?
-nicetomeetyou(蓦然回首彩虹跨天地);
2009-9-16
(#5553497@0)
-
We created PDF by ourself.
-frankwoo(柳五随风);
2009-9-16
(#5553687@0)
-
By the way, I do not know much about browser or Web appls. but I do think adobe reader honours the encrypt permissions if set properly.
-frankwoo(柳五随风);
2009-9-17
(#5553731@0)
-
"encrypt dictionary in the PDF file's trailer dictionary" -- 老实说,没看懂. 你做的太高深, 在Adobe, or OpenText?
-nicetomeetyou(蓦然回首彩虹跨天地);
2009-9-17
(#5554581@0)
-
renjl0810 was talking the same thing I did, your solution is "fake":), by the way, dos not iText support what you need? I think it should though I have no idea of iText.
-frankwoo(柳五随风);
2009-9-17
(#5555629@0)
-
For iText, the only thing I can do is to use their public APIs.
-nicetomeetyou(蓦然回首彩虹跨天地);
2009-9-17
(#5555671@0)
-
Not sure but it sounds you're disabling the UI rather than securing the PDF file itself. What I did couple of years ago to prevent from our certificated reports in the form of PDF documents from being hacked is,securing the PDF files before sending them out to our customers.
There a lot of libraries/APIs/SDKs supporting different programming languages such as Java, C/C++/C#, Perl, etc. that could be used for this purpose and some of them are free and some others you may have to pay
-renjl0810(相信网络,相信Google);
2009-9-17
{279}
(#5554497@0)
-
We can setup password, but that doesn't accomplish the goal, the goal is prohibit employees from any save or print actions on sensitive PDFs. Seems that we need to find sth on view container itself, not PDF.There is one solution for How to disable the right-click context menu in Shockwave on Windows:
http://kb2.adobe.com/cps/145/tn_14555.html
That seems the way to go....
-nicetomeetyou(蓦然回首彩虹跨天地);
2009-9-17
{172}
(#5554574@0)
-
We are talking different things: I am seeking a solution for read-only PDF display when employee opens it. You talk about secure-send PDF to customer.
-nicetomeetyou(蓦然回首彩虹跨天地);
2009-9-17
(#5555693@0)
-
same thing. any employee could run your pdf with tools like adobe distiller or ghostscript to conver to postscript, then convert that back to pdf, and boom, no limitations any more !:)
-frankwoo(柳五随风);
2009-9-17
(#5555836@0)
-
PDFs are stored in Notes Domino and loaded into webpage. We successfully prohibit save option, the only thing left is how to remove print from right click context menu. 要給老板交差啊。
-nicetomeetyou(蓦然回首彩虹跨天地);
2009-9-17
(#5555918@0)
-
here comes the key point: who created the pdf? you? if so, then double check itext and find out how to setting the right permisions by using a user password.
for details, you may check the pdf specs, chapter 3.5.
-frankwoo(柳五随风);
2009-9-17
(#5555950@0)
-
Thanks, I will spend time reading pdf specs.
-nicetomeetyou(蓦然回首彩虹跨天地);
2009-9-17
(#5555983@0)
-
check this out:some sample code from icode.
PdfEncryptor.encrypt(
reader, // A reader for the original file
new FileOutputStream("c:/tmp/sample-encrypted.pdf"), // The output file
true, //true -> 128 bit, false -> 40 bit
null, // User password
"eyal", // Owner password
PdfWriter.ALLOW_PRINTING | PdfWriter.ALLOW_COPY// User permissions);
pay atttention to the last line....
-frankwoo(柳五随风);
2009-9-17
{422}
(#5556126@0)
-
Ha, I will try tomorrow if iText does offer it.....Thanks.
-nicetomeetyou(蓦然回首彩虹跨天地);
2009-9-17
(#5556140@0)
-
Humm, this seems the answer for iText, you are good man!
-nicetomeetyou(蓦然回首彩虹跨天地);
2009-9-17
(#5556157@0)
-
不客气,牛哥。
-frankwoo(柳五随风);
2009-9-17
(#5556185@0)
-
sorry, I made some mistake before: you need a owner password only in your case, if you want to further enforce who could open the document, then you need a user password;also if you need more complicated encrypt algorithm other than MD5/RC40, then you may need use other filters when creating that PDF.
Good luck
-frankwoo(柳五随风);
2009-9-17
{145}
(#5556142@0)
-
hmm, would it make sense? I can snapshot the screen and then run thru OCR still get the content of your pdf file.
-buma(。。。。);
2009-9-17
(#5556144@0)
-
really?:) you are underestimate adobe:), unless you are running some hacker tools, adobe do have some tricks precenting from doing that.
-frankwoo(柳五随风);
2009-9-17
(#5556170@0)
-
I initially thought the context menu is offered by view container, which is Adobe plug-in. Now it seems that container probably interacts with PDF itself to get permission and read context menu options.
-nicetomeetyou(蓦然回首彩虹跨天地);
2009-9-17
(#5556192@0)
-
when I say snapshot the screen, what exactly you think what I mean by that? lol
-buma(。。。。);
2009-9-17
(#5556197@0)
-
my bad, I guess.
-frankwoo(柳五随风);
2009-9-17
(#5556222@0)
-
汇报一下,终于在frankwoo,和renjl0810的帮助下,解决了问题,首先upgrade iText libray to latest 2.1.7, 然后要下载bcprov-jdk14-138.jar,否则encrypt报runtime err. iText 作为开源, code mgmt比较混乱, func signature变来变去.烦.
-nicetomeetyou(蓦然回首彩虹跨天地);
2009-9-18
(#5556802@0)