Security problem - save to file

  • 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

  • I've the same problem, i'v the "plus" dll. Try to save a pdf with accro fields.

    No secure on pdf, but still this exception when i try savetofile.

    Seems to checkbox accrofield checked fill with "ü" instead of a cross
    Trying to save to see how Acrobat Reader show it...

  • Hi all,

    we have the same problem.

    We used the "merge" function in one of our projects where everything workes fine.

    In a second project we started we are trying to use the following one:

    WPViewPDF1.Plus.SaveSelectionToFile(ExePath + 'OUT\' + StringList.Strings[i] + '.pdf')

    The compiler didnt show any mistakes and the License is integrated like this:

    {$I PDFLicense.INC}

    The PDF's we are using are scanned documents without any security option, besides that, our first project is able to merge them.

    What are we doing wrong that we get this message:

    PDF Security forbids saving of document

    We realy need a fix or a workaround.

    One Info:

    The file Versions we have

    wPDFViewPlus03.dll = 3.12.667
    wPDFViewPlus03x64 = 3.12.0.104