• Hi,

    Code
    Viewer.LoadFromStream(StreamPDF);
    Viewer.AppendFromFile(AModele.Data.PdfAnnexe);
    {---}
    Viewer.Plus.SaveToFile(FileName);
    // Exception : EPDFSecurityForbidsSaving !

    The pdf generated by a TWPPDFPrinter (No SetSecurityOptions found)

    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 := [];

    Help says : This property makes it possible to switch off functionality. Once functionality has been switched off it is not possible to switch it on again!
    But I've seen no security option in TWPPDFPrinter.