Jump to content

mazluta

uniGUI Subscriber
  • Posts

    124
  • Joined

  • Last visited

  • Days Won

    1

Posts posted by mazluta

  1. ok. on form create the toolbar is not implemented yet, so that why it fail

     

      If PdfLoad Then // PdfLoad is true - after load the file to PdfURL
      begin
        UniSession.AddJS (UniPDFFrame1.JSName + '.iframe.contentWindow.document.getElementById("download").style.display = "none"');
        UniSession.AddJS (UniPDFFrame1.JSName + '.iframe.contentWindow.document.getElementById("print").style.display = "none"');
        UniSession.AddJS (UniPDFFrame1.JSName + '.iframe.contentWindow.document.getElementById("openFile").style.display = "none"');
      end;

  2. 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".

  3. image.thumb.png.87841b9205ff9cf8214e6e95f0068e7c.png

     

    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{  
      displaynone !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

     

     

     

     

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

  5. 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?

  6. 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 ?

×
×
  • Create New...