PyMuPDF 1.24.2 DocumentationThe following snippet creates a new and encrypts it with separate user and owner passwords. Permissions are granted to print, copy and annotate, but no changes are allowed to someone authenticating with owner_pw=owner_pass, # set the owner password user_pw=user_pass, # set the user password permissions=perm, # set permissions ) Note: Taking it further Opening this document with some viewer (Nitro Reader 5) the encryption method specify the full range of options above (encryption, owner_pw, user_pw, permissions). An incremental save is not possible in this case. API reference • Document.save() 30 Chapter0 码力 | 565 页 | 6.84 MB | 1 年前3
PyMuPDF 1.12.2 documentationopenErrCode > 0 Document.outline first Outline item Document.pageCount number of pages Document.permissions permissions to access the document Class API class Document __init__(self[, filename]) Constructs encrypted, but still be password protected against changes - see the permissions property. Performing incremental saves if permissions["edit"] == False can lead to unpredictable results. Save to a new False to reflect the situation. Type: bool permissions Shows the permissions to access the document. Contains a dictionary likes this: >>> doc.permissions {'print': True, 'edit': True, 'note': True0 码力 | 387 页 | 2.70 MB | 1 年前3
MuPDF 1.22.0 Documentationdocument. • encrypt=rc4-40|rc4-128|aes-128|aes-256 Write encrypted document. • permissions=NUMBER Document permissions to grant when encrypting. 30 Chapter 3. MuPDF on the command line MuPDF Documentation document. • encrypt=rc4-40|rc4-128|aes-128|aes-256 Write encrypted document. • permissions=NUMBER Document permissions to grant when encrypting. • user-password=PASSWORD Password required to read document document. • encrypt=rc4-40|rc4-128|aes-128|aes-256 Write encrypted document. • permissions=NUMBER Document permissions to grant when encrypting. • user-password=PASSWORD Password required to read document0 码力 | 175 页 | 698.87 KB | 8 月前3
MuPDF 1.23.0 Documentationdocument. • encrypt=rc4-40|rc4-128|aes-128|aes-256 Write encrypted document. • permissions=NUMBER Document permissions to grant when encrypting. • user-password=PASSWORD Password required to read document document. • encrypt=rc4-40|rc4-128|aes-128|aes-256 Write encrypted document. • permissions=NUMBER Document permissions to grant when encrypting. • user-password=PASSWORD Password required to read document document. • encrypt=rc4-40|rc4-128|aes-128|aes-256 Write encrypted document. • permissions=NUMBER Document permissions to grant when encrypting. • user-password=PASSWORD Password required to read document0 码力 | 245 页 | 817.74 KB | 8 月前3
MuPDF 1.25.0 Documentationdocument. • encrypt=rc4-40|rc4-128|aes-128|aes-256 Write encrypted document. • permissions=NUMBER Document permissions to grant when encrypting. • user-password=PASSWORD Password required to read document document. • encrypt=rc4-40|rc4-128|aes-128|aes-256 Write encrypted document. • permissions=NUMBER Document permissions to grant when encrypting. • user-password=PASSWORD Password required to read document document. • encrypt=rc4-40|rc4-128|aes-128|aes-256 Write encrypted document. • permissions=NUMBER Document permissions to grant when encrypting. • user-password=PASSWORD Password required to read document0 码力 | 259 页 | 1.11 MB | 8 月前3
MuPDF 1.24.0 Documentationdocument. • encrypt=rc4-40|rc4-128|aes-128|aes-256 Write encrypted document. • permissions=NUMBER Document permissions to grant when encrypting. • user-password=PASSWORD Password required to read document document. • encrypt=rc4-40|rc4-128|aes-128|aes-256 Write encrypted document. • permissions=NUMBER Document permissions to grant when encrypting. • user-password=PASSWORD Password required to read document document. • encrypt=rc4-40|rc4-128|aes-128|aes-256 Write encrypted document. • permissions=NUMBER Document permissions to grant when encrypting. • user-password=PASSWORD Password required to read document0 码力 | 249 页 | 830.15 KB | 8 月前3
共 6 条
- 1













