Beiträge von Bolo

    Hi,
    Code:

    Viewer.LoadFromStream(StreamPDF);
    {---}
    Viewer.Plus.SaveSelectionToFile(FileName....);

    And result is Exception : EPDFSecurityForbidsSaving !

    In one application it works fine.
    In second app, that same PDF(!) with that same module and that same license - and i have exception!

    PDF without security options!

    Why this doesn't work ????
    I have try this for change security options (before/after loading):

    A) Viewer.Plus.SetSecurityPFlags(0);
    B) Viewer.CommandEx(COMPDF_SetSecurityFlags,0);
    C) Viewer.SecurityOptions := [];

    Best regards

    No, still not working!!
    In my code is something like this:

    WPViewPDF.filename := FFileName;

    if WPViewPDF.Plus.CheckOwnerPassword('000000') then //its ok - TRUE
    begin
    WPViewPDF.Plus.SetSecurityOwnerPW('000000');
    WPViewPDF.Plus.SetSecurityUserPW('000000');
    WPViewPDF.Command(COMPDF_DisableSecurityOverride,1);
    end;

    if WPViewPDF.LoadFromFile(FFileName) then //result is TRUE

    but...nothing happend - I dont see PDF!

    Why?