well irigsoft.
at the end of the story, one can hit Print-screen and get the document.
so i will only try to prevet some users (by params) of docing "download" or "print".
i tried
procedure TViewerFrm.PDFViewFrameLoaded(Sender: TObject);
begin
// download button
// UniSession.AddJS (PDFView.JSName + '.iframe.contentWindow.document.'
// + 'getElementById ("download").style.display = "none"');
// UniSession.AddJS (PDFView.JSName + '.iframe.contentWindow.document.'
// + 'getElementById ("secondaryDownload").style.display = "none"');
// open file button
// UniSession.AddJS (PDFView.JSName + '.iframe.contentWindow.document.'
// + 'getElementById ("openFile").style.display = "none"');
// UniSession.AddJS (PDFView.JSName + '.iframe.contentWindow.document.'
// + 'getElementById ("secondaryOpenFile").style.display = "none"');
end;
it's fail.
so, i add some css to external css file
===========
/* #ext-element-6 #download{ */
.toolbar #download{
display: none !important;
}
and i thought that the name of the form is ext-element-6
but didnt work.
if i go to inspection-> elemnt.system and set ther display:none it work.
so - how to i set the override to that elemnt.system
thanks
first - the user will see only the documents he "can see", the app hold records that point to the documents, so it is easy.
secend - before view the file, i copy it to the chach folder, so, no problem.
i have Document Managment System Application.
you meen, i have to copy any pdf,jpg,tif,bmp,docx... to the cache directory and the display it from there?
when i write "file://c:/pics/PDF files/GettingStarted.pdf" in google url (or even with "\") i see the file.
when i do the same with : UniURLFrame1.URL := 'file://c:/pics/PDF files/GettingStarted.pdf'; (or even with "\") - i dont see the file.
if i copy the file from the original directory the "cache" file (or files) and set
UniURLFrame1.URL := '/cache/my session temp dir/GettingStarted.pdf'; - i can see the file
why UniURLFrame1.URL can not get the original path immediate ?