It’s not technically possible to sign an encrypted PDF – because there is no 
way to encrypt the new update section with the same key as the previous 
sections – unless you know what it is (and then it’s a bit tricky still).

Better to simply create a new PDF with the encrypted PDF as an attachment as 
part of a collection and then sign the new PDF.

Leonard

On 8/1/17, 11:27 AM, "zyx" <z...@litepdf.cz> wrote:

    On Tue, 2017-08-01 at 16:38 +0200, F. E. wrote:
    > As a side note, I noticed that I cannot use load-for-update in this
    > case, because the resulting pdf has an unknown password protection.
    > Neither my specified user nor owner password work for decryption.
    > That's odd and mighht be a bug, don't know ...
    
        Hi,
    load for update (and using WriteUpdate()) means that you keep the file
    as is and only add your changes at the end. Having new values encrypted
    and old values not, or using different encryption method, or even
    trying to use old encryption on the new content, doesn't sound right to
    me.
    
    Doing sign & encrypt at the same time sounds the way to go, as you
    figured out yourself.
        Bye,
        zyx
    
    -- 
    
https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.litePDF.cz&data=02%7C01%7C%7C08f72d27a1eb4526088408d4d8f1c292%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636371980250993292&sdata=9YEy0XwyP2Aioj0EKQmb6J5xexlziVQRc3O3KnSU61U%3D&reserved=0
                                 i...@litepdf.cz
    
    
------------------------------------------------------------------------------
    Check out the vibrant tech community on one of the world's most
    engaging tech sites, Slashdot.org! 
https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fsdm.link%2Fslashdot&data=02%7C01%7C%7C08f72d27a1eb4526088408d4d8f1c292%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636371980250993292&sdata=z%2B6nJU9jeBLfcT6Zf6fJwhOYw5JEZizBmLHvYCnsHdQ%3D&reserved=0
    _______________________________________________
    Podofo-users mailing list
    Podofo-users@lists.sourceforge.net
    
https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Flists.sourceforge.net%2Flists%2Flistinfo%2Fpodofo-users&data=02%7C01%7C%7C08f72d27a1eb4526088408d4d8f1c292%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636371980250993292&sdata=sWzuGkB3yg7Z3U%2F23MWWWkQUl9U9Me8A8XsD8bXOm8w%3D&reserved=0
    

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Podofo-users mailing list
Podofo-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/podofo-users

Reply via email to