You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Apr 12, 2021. It is now read-only.
Copy file name to clipboardExpand all lines: docs/getting_started.coffee.md
+12-8Lines changed: 12 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -201,13 +201,17 @@ settings in the `option` object when creating `PDFDocument`. By default, all ope
201
201
You need to explicitly allow certain operations.
202
202
203
203
* `ownerPassword` - the owner password (string value)
204
-
* `allowPrinting` - whether printing is allowed. Specify `"lowResolution"` to allow degraded printing, or `"highResolution"` to allow printing with high resolution
205
-
* `allowModifying` - whether modifying the file is allowed. Specify `true` to allow modifying document content
206
-
* `allowCopying` - whether copying text or graphics is allowed. Specify `true` to allow copying
207
-
* `allowAnnotating` - whether annotating, form filling is allowed. Specify `true` to allow annotating and form filling
208
-
* `allowFillingForms` - whether form filling and signing is allowed. Specify `true` to allow filling in form fields and signing
209
-
* `allowContentAccessibility` - whether copying text for accessibility is allowed. Specify `true` to allow copying for accessibility
210
-
* `allowDocumentAssembly` - whether assembling document is allowed. Specify `true` to allow document assembly
204
+
* `permissions` - the object specifying PDF file permissions
205
+
206
+
Following settings are allowed in `permissions` object:
207
+
208
+
* `printing` - whether printing is allowed. Specify `"lowResolution"` to allow degraded printing, or `"highResolution"` to allow printing with high resolution
209
+
* `modifying` - whether modifying the file is allowed. Specify `true` to allow modifying document content
210
+
* `copying` - whether copying text or graphics is allowed. Specify `true` to allow copying
211
+
* `annotating` - whether annotating, form filling is allowed. Specify `true` to allow annotating and form filling
212
+
* `fillingForms` - whether form filling and signing is allowed. Specify `true` to allow filling in form fields and signing
213
+
* `contentAccessibility` - whether copying text for accessibility is allowed. Specify `true` to allow copying for accessibility
214
+
* `documentAssembly` - whether assembling document is allowed. Specify `true` to allow document assembly
211
215
212
216
You can specify either user password, owner password or both passwords.
213
217
Behavior differs according to passwords you provides:
@@ -225,7 +229,7 @@ Behavior differs according to passwords you provides:
225
229
226
230
Note that PDF file itself cannot enforce access privileges.
227
231
When file is decrypted, PDF viewer applications have full access to the file content,
228
-
and it is up to them to respect permission settings.
232
+
and it is up to viewer applications to respect permission settings.
229
233
230
234
To choose encryption method, you need to specify PDF version.
231
235
PDFKit will choose best encryption method available in the PDF version you specified.
0 commit comments